/* ============================================================
   BASTIÁN MUÑOZ — style.css
   ============================================================ */

:root {
  --carbon: #2c2f36;
  --carbon-deep: #171a1f;
  --bone: #faf8f5;
  --paper: #f3efe7;
  --soft-gray: #e0e1e0;
  --sand: #c6b794;

  --text-soft: rgba(44, 47, 54, 0.76);
  --text-muted: rgba(44, 47, 54, 0.68);
  --line: rgba(44, 47, 54, 0.14);

  --max: 1560px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bone);
  color: var(--carbon);
  font-family: Satoshi, Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open,
body.mobile-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--carbon);
  color: var(--bone);
}

/* Accesibilidad */

a:focus-visible,
button:focus-visible,
.mobile-menu-btn:focus-visible,
.profile-modal-close:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 4px;
}

/* Tipografía */

.serif {
  font-family: "Source Serif Variable", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   UTILIDADES
   ============================================================ */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 22px;

  border-radius: 999px;
  border: 1px solid var(--carbon);

  background: transparent;
  color: var(--carbon);

  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;

  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--carbon);
  color: var(--bone);
}

.button.secondary {
  background: transparent;
  color: var(--carbon);
}

.eyebrow,
.section-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.eyebrow::before,
.section-label::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-right: 16px;
  vertical-align: middle;
  background: var(--sand);
}

.eyebrow::before {
  margin-right: 0;
}

/* ============================================================
   HEADER / NAVEGACIÓN WORDPRESS
   ============================================================ */

/* Ocultar navegación móvil en escritorio */
.mobile-navigation,
.mobile-top-nav,
.mobile-menu-panel {
  display: none;
}


/* Contenedor general del header */
.site-header {
  position: fixed;
  top: 8px;
  left: 58px;
  right: 58px;
  z-index: 720;

  pointer-events: none;

  transform: translateY(0);

  transition:
    transform 0.45s ease,
    opacity 0.35s ease;
}

body.header-hidden .site-header {
  transform: translateY(-120%);
}

.site-header:hover {
  transform: translateY(0);
}


/* ============================================================
   NAVEGACIÓN DE ESCRITORIO
   ============================================================ */

.desktop-navigation {
  width: 100%;

  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;

  pointer-events: none;
}


/* Logo */

.site-branding {
  width: 155px;

  pointer-events: auto;
}

.site-branding .custom-logo-link,
.small-logo {
  display: block;
  width: 155px;

  opacity: 0;
  transform: translateY(-8px);

  pointer-events: none;

  transition:
    opacity 0.4s ease 0.68s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.68s;
}

.site-branding .custom-logo,
.small-logo img {
  width: 100%;
  height: auto;
  display: block;
}

body.scrolled .site-branding .custom-logo-link,
body.scrolled .small-logo {
  opacity: 0.82;
  transform: translateY(0);

  pointer-events: auto;
}

body:not(.scrolled) .site-branding .custom-logo-link,
body:not(.scrolled) .small-logo {
  opacity: 0;
  transform: translateY(-8px);

  pointer-events: none;
}

body.scrolled .site-header:hover .site-branding .custom-logo-link,
body.scrolled .site-header:hover .small-logo {
  opacity: 1;
}

.areas-section {
  position: relative;
  padding: 120px 58px;
  background: var(--bone);
  color: var(--carbon);
  border-top: 1px solid var(--line);
}

.areas-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 70px;
}

.section-head h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
}
/* Zona derecha: menú + botón contacto */

.desktop-navigation-right {
  justify-self: end;

  display: flex;
  align-items: stretch;

  pointer-events: auto;
}


.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu-list li {
  margin: 0;
  padding: 0;
}

.footer-menu-list a {
  display: block;
  margin: 0 0 9px;
  color: #050505;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-menu-list a:hover {
  opacity: 0.55;
}
/* Contenedor del menú */

.site-nav {
  min-height: 48px;

  display: flex;
  align-items: center;

  padding: 0 18px;

  background: rgba(250, 248, 245, 0.76);
  border: 1px solid rgba(44, 47, 54, 0.12);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    opacity 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

body.scrolled .site-nav {
  opacity: 0.68;
}

.site-header:hover .site-nav,
.site-nav:focus-within {
  opacity: 1;
}

.site-header:hover .site-nav {
  background: rgba(250, 248, 245, 0.94);
  border-color: rgba(44, 47, 54, 0.2);
}


/* Limpiar estructura generada por WordPress */

.site-nav-list,
.mobile-menu-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.site-nav-list li,
.mobile-menu-list li {
  margin: 0;
  padding: 0;
}


/* Lista del menú desktop */

.site-nav-list {
  display: flex;
  align-items: stretch;
}

.site-nav-list > li {
  display: flex;
  align-items: stretch;
}


/* Links del menú desktop */

.site-nav-list > li > a {
  min-height: 46px;

  display: flex;
  align-items: center;

  padding: 0 18px;

  color: var(--carbon);

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.68;

  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.site-nav-list > li > a::before {
  content: "○";

  margin-right: 10px;

  font-size: 0.64rem;
  line-height: 1;
}

.site-nav-list > li > a:hover {
  opacity: 1;
  background: var(--carbon);
  color: var(--bone);
}

.site-main > article.page {
  margin-bottom: 0;
}
/* Botón Contacto de escritorio */

.desktop-navigation-right .nav-contact-button {
  min-height: 48px;

  display: flex;
  align-items: center;

  padding: 0 18px;

  border: 1px solid rgba(44, 47, 54, 0.12);
  border-left: 0;

  background: rgba(250, 248, 245, 0.76);
  color: var(--carbon);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.68;

  cursor: pointer;

  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.desktop-navigation-right .nav-contact-button::before {
  content: "○";

  margin-right: 10px;

  font-size: 0.64rem;
}

.desktop-navigation-right .nav-contact-button:hover {
  opacity: 1;

  background: var(--carbon);
  color: var(--bone);
  border-color: var(--carbon);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {

  .site-header {
    top: 12px;
    left: 18px;
    right: 18px;
  }

  .desktop-navigation {
    grid-template-columns: 138px 1fr;
    gap: 12px;
  }

  .site-branding,
  .site-branding .custom-logo-link,
  .small-logo {
    width: 138px;
  }

  .site-nav {
    overflow-x: auto;

    padding: 0 8px;
  }

  .site-nav-list > li > a {
    padding: 0 12px;

    font-size: 0.62rem;

    white-space: nowrap;
  }

  .desktop-navigation-right .nav-contact-button {
    padding: 0 12px;

    font-size: 0.62rem;

    white-space: nowrap;
  }
}


/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 640px) {

  .site-header {
    position: fixed;
    top: 16px;
    left: 18px;
    right: 18px;
    z-index: 720;

    display: block;

    pointer-events: none;

    transform: none !important;
  }


  /* Ocultar escritorio */

  .desktop-navigation {
    display: none;
  }


  /* Mostrar estructura móvil */

  .mobile-navigation {
    width: 100%;

    display: block;

    pointer-events: auto;
  }


  /* Barra superior móvil */

  .mobile-top-nav {
    width: 100%;

    display: grid !important;
    grid-template-columns: auto auto 42px;
    justify-content: end;
    gap: 4px;

    pointer-events: auto;
  }


  /* Inicio, contacto y hamburguesa */

  .mobile-top-nav a,
  .mobile-contact-button,
  .mobile-menu-btn {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    background: rgba(250, 248, 245, 0.94);
    border: 1px solid rgba(44, 47, 54, 0.16);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: var(--carbon);

    font-family: inherit;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .mobile-top-nav a::before,
  .mobile-contact-button::before {
    content: "○";

    margin-right: 7px;

    font-size: 0.54rem;
  }

  .mobile-contact-button {
    cursor: pointer;
  }


  /* Botón hamburguesa */

  .mobile-menu-btn {
    width: 42px;
    padding: 0;

    flex-direction: column;
    gap: 5px;

    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;

    width: 16px;
    height: 1px;

    background: var(--carbon);

    transition: transform 0.25s ease;
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }


  /* Panel móvil */

  .mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 690;

    display: block !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
  }

  body.mobile-menu-open .mobile-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }


  /* Fondo con blur */

  .mobile-menu-blur {
    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        180deg,
        rgba(44, 47, 54, 0.18),
        rgba(44, 47, 54, 0.54)
      ),
      rgba(250, 248, 245, 0.22);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }


  /* Contenido del panel */

  .mobile-menu-content {
    position: relative;
    z-index: 2;

    min-height: 100svh;

    padding: 110px 18px 34px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }


  /* Navegación generada por WordPress */

  .mobile-menu-links {
    width: 100%;
  }

  .mobile-menu-list {
    width: 100%;

    display: grid;
    gap: 4px;
  }

  .mobile-menu-list > li {
    display: block;
  }

  .mobile-menu-list > li > a {
    display: block;

    padding: 0;

    color: var(--bone);

    font-size: clamp(2.8rem, 14vw, 5.6rem);
    line-height: 0.88;
    letter-spacing: -0.085em;
    font-weight: 900;

    text-decoration: none;

    transition: color 0.25s ease;
  }

  .mobile-menu-list > li > a:hover,
  .mobile-menu-list > li.current-menu-item > a,
  .mobile-menu-list > li.current_page_item > a {
    color: var(--sand);
  }


  /* Botones adicionales del panel */

  .mobile-menu-actions {
    width: 100%;

    display: grid;
    gap: 4px;

    margin-top: 4px;
  }

  .mobile-menu-actions button {
    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--bone);

    font-family: inherit;
    font-size: clamp(2.8rem, 14vw, 5.6rem);
    line-height: 0.88;
    letter-spacing: -0.085em;
    font-weight: 900;
    text-align: left;

    cursor: pointer;

    transition: color 0.25s ease;
  }

  .mobile-menu-actions button:hover {
    color: var(--sand);
  }
}
/* ============================================================
   HERO INICIAL
   ============================================================ */

.hero {
  position: relative;
  height: 90vh;
  min-height: 90vh;
  background: var(--bone);
}

.hero-logo {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 500;

  width: min(74vw, 1120px);
  height: auto;

  transform: translate(-50%, -50%);
  transform-origin: center center;

  opacity: 1;
  pointer-events: none;

  will-change: left, top, width, transform, opacity;

  transition:
    left 0.8s ease,
    top 0.8s ease,
    width 0.8s ease,
    transform 0.8s ease,
    opacity 0.35s ease;
}

body.scrolled .hero-logo {
  left: 58px;
  top: 8px;

  width: 155px;

  transform: translate(0, 0);
  transform-origin: top left;

  opacity: 0;
}

.scroll-indicator {
  position: fixed;
  left: 50%;
  top: calc(46% + 220px);
  z-index: 510;

  transform: translateX(-50%);

  color: var(--carbon);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

body.scrolled .scroll-indicator {
  opacity: 0;
  transform: translateX(-50%) translateY(18px);
  pointer-events: none;
}
/* ============================================================
   ABOUT / HERO EDITORIAL
   ============================================================ */

.about-section {
  position: relative;
  z-index: 20;

  min-height: 100vh;
  padding: 118px 58px 58px;

  background: var(--bone);
  color: var(--carbon);

  overflow: hidden;
}

.about-inner {
  position: relative;
  z-index: 3;

  width: min(100%, var(--max));
  min-height: calc(100vh - 154px);
  margin: 0 auto;

  display: grid;
  grid-template-rows: auto 1fr auto;
}

.about-eyebrow {
  margin-top: 0;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 80px;
  align-items: center;
}

.about-hero-grid h1 {
  max-width: 820px;
  margin: 0;

  color: #050505;
  font-size: clamp(4.4rem, 9.5vw, 10.8rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  font-weight: 900;
}

.about-copy {
  max-width: 520px;
  align-self: center;
}

.about-copy p {
  margin: 0 0 34px;

  color: var(--text-soft);
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.about-card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-top: 72px;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-card-row div {
  min-height: 104px;
  padding: 24px 22px;

  border-right: 1px solid var(--line);
}

.about-card-row div:last-child {
  border-right: 0;
}

.about-card-row span {
  display: block;
  margin-bottom: 14px;

  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-card-row strong {
  color: #050505;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Modelo 3D / marca viva */

.about-model-bg {
  position: absolute;
  top: 4vh;
  right: -5vw;

  width: 46vw;
  height: 58vh;

  z-index: 1;

  opacity: 0;
  transform: translateX(80px) rotate(-8deg) scale(0.88);

  transition: opacity 0.9s ease, transform 0.9s ease;

  pointer-events: none;
  mix-blend-mode: multiply;
}

body.content-visible .about-model-bg {
  opacity: 0.24;
  transform: translateX(0) rotate(-8deg) scale(1);
}

.about-model-bg model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.9) contrast(1.08);
}

.about-soft-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(250, 248, 245, 1) 0%,
    rgba(250, 248, 245, 0.96) 45%,
    rgba(250, 248, 245, 0.64) 74%,
    rgba(250, 248, 245, 0.2) 100%
  );
}
/* ============================================================
   MANIFIESTO / EFECTO TIPOGRÁFICO
   ============================================================ */

.manifesto-section {
  position: relative;

  min-height: 100vh;
  padding: 110px 58px;

  display: flex;
  align-items: center;

  background: var(--carbon);
  color: var(--bone);

  overflow: hidden;
}

.manifesto-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.manifesto-label {
  margin-bottom: 42px;

  color: rgba(250, 248, 245, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.50em;
  text-transform: uppercase;
}

.manifesto-label::before {
  content: "";
  display: inline-block;

  width: 42px;
  height: 1px;

  margin-right: 16px;

  vertical-align: middle;
  background: var(--sand);
}

.manifesto-text {
  max-width: 1200px;
  margin: 0;

  font-family: "Source Serif Variable", Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;

  perspective: 1000px;
}

.manifesto-text .word {
  display: inline-block;
  white-space: nowrap;
}

.manifesto-text .char {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform;
}

.manifesto-text > span {
  color: var(--bone);
  font-style: italic;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.area-card {
  position: relative;

  min-height: 450px;
  padding: 30px;

  display: flex;
  flex-direction: column;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  background: transparent;
  color: var(--carbon);

  overflow: hidden;

  transition:
    background 0.32s ease,
    color 0.32s ease;
}

.area-card:hover {
  background: var(--carbon);
  color: var(--bone);
}

.area-number {
  position: relative;
  z-index: 3;

  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  transition: color 0.32s ease;
}

.area-card:hover .area-number {
  color: rgba(250, 248, 245, 0.68);
}

/* ÍCONOS SVG COMO MÁSCARA */

.discipline-icon {
  position: absolute;
  top: 28%;
  left: -110px;
  z-index: 1;

  display: block;

  width: min(68%, 360px);
  aspect-ratio: 1400 / 1080;

  color: var(--sand);
  background-color: currentColor;

  opacity: 0.92;

  mask-repeat: no-repeat;
  mask-position: left center;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  -webkit-mask-size: contain;

  transform: translateY(-50%) scale(1);

  transition:
    color 0.32s ease,
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.discipline-icon--illustration {
  mask-image: url("../../img/ilustracion.svg");
  -webkit-mask-image: url("../../img/ilustracion.svg");
}

.discipline-icon--design {
  mask-image: url("../../img/diseno.svg");
  -webkit-mask-image: url("../../img/diseno.svg");
}

.discipline-icon--web {
  mask-image: url("../../img/web.svg");
  -webkit-mask-image: url("../../img/web.svg");
}

.area-card:hover .discipline-icon {
  color: var(--sand);
  opacity: 1;

  transform: rotate(0deg) scale(1.04);
}

.area-card-content {
  position: relative;
  z-index: 3;

  margin-top: auto;
}

.area-card h3 {
  max-width: 280px;
  margin: 0 0 22px;

  font-size: clamp(2.2rem, 3vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.area-card p {
  max-width: 340px;
  margin: 0;

  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.025em;

  transition: color 0.32s ease;
}

.area-card:hover p {
  color: rgba(250, 248, 245, 0.76);
}

/* ============================================================
   PROCESO
   ============================================================ */

.process-section {
  position: relative;

  padding: 120px 58px;


  color: var(--carbon);

  border-top: 1px solid var(--line);
}

.process-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr;
  gap: 34px;
  align-items: start;

  padding: 34px 0;

  border-bottom: 1px solid var(--line);
}

.process-item span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.process-item h3 {
  margin: 0;

  color: #050505;
  font-size: clamp(1.8rem, 3vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 900;
}
/* ============================================================
   PROCESO / EFECTO 8
   ============================================================ */

.process-title-effect {
  position: relative;
}

.process-title-effect .word {
  display: inline-block;
  white-space: nowrap;
}

.process-title-effect .char {
  display: inline-block;
  min-width: 0.02em;
  will-change: opacity;
}
.process-item p {
  max-width: 620px;
  margin: 0;

  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.025em;
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
/* ============================================================
   SOBRE MÍ
   ============================================================ */

.about-profile-section {
  position: relative;

  padding: 120px 58px;

  background: var(--bone);
  color: var(--carbon);

  border-top: 1px solid var(--line);
  overflow: hidden;
}

.about-profile-inner {
  width: min(100%, var(--max));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 86px;
  align-items: center;
}

/* FOTO */

.about-profile-photo-wrap {
  position: relative;

  padding: 10px;

  border: 1px solid rgba(44, 47, 54, 0.18);
  background: var(--bone);
}

.about-profile-photo {
  width: 100%;
  height: 620px;

  display: block;

  object-fit: cover;
  object-position: center 22%;

  filter: grayscale(1) contrast(1.04);
}

/* COLUMNA DE TEXTO */

.about-profile-text {
  position: relative;

  min-height: 620px;

  display: flex;
  align-items: center;

  overflow: hidden;
}

/* MODELO DETRÁS DEL TEXTO */

.about-profile-model {
  position: absolute;
  top: 50%;
  right: -10%;

  width: 68%;
  height: 78%;

  transform: translateY(-50%) rotate(-8deg);

  opacity: 0.14;
  pointer-events: none;

  mix-blend-mode: multiply;
  filter: saturate(0.8) contrast(1.05);
}

/* DEGRADADO PARA QUE EL TEXTO SIEMPRE SE LEA */

.about-profile-text::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(250, 248, 245, 1) 0%,
    rgba(250, 248, 245, 0.96) 42%,
    rgba(250, 248, 245, 0.72) 72%,
    rgba(250, 248, 245, 0.14) 100%
  );

  pointer-events: none;
}

.about-profile-content {
  position: relative;
  z-index: 2;

  width: 100%;
}

.about-profile-text h2 {
  max-width: 900px;
  margin: 24px 0 38px;

  color: #050505;

  font-size: clamp(3rem, 6vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.about-profile-text p {
  max-width: 760px;
  margin: 0 0 24px;

  color: var(--text-soft);

  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.about-profile-text .button {
  margin-top: 18px;
}

/* ============================================================
   FOOTER GRANDE
   ============================================================ */

.site-footer-big {
  position: relative;

  min-height: 100vh;
  padding: 42px 58px 28px;

  background: var(--bone);
  color: var(--carbon);

  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-word {
  position: relative;
  z-index: 1;

  margin-left: -0.08em;

  color: #050505;
  font-size: clamp(7rem, 27vw, 31rem);
  line-height: 0.78;
  letter-spacing: -0.12em;
  font-weight: 900;
  text-transform: uppercase;

  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 2;

  width: min(100%, var(--max));
  margin: 0 auto;
  margin-top: clamp(12px, 3vw, 48px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: end;

  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-title h2 {
  max-width: 880px;
  margin: 34px 0 0;

  color: #050505;
  font-size: clamp(3rem, 6.2vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.footer-copy {
  max-width: 640px;
}

.footer-copy p {
  margin: 0 0 34px;

  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.45vw, 1.38rem);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;

  margin-top: 78px;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-col {
  min-height: 170px;
  padding: 26px 24px;

  border-right: 1px solid var(--line);
}

.footer-col:last-child {
  border-right: 0;
}

.footer-col h3 {
  margin: 0 0 22px;

  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;

  margin: 0 0 9px;

  color: #050505;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.footer-col a {
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 0.55;
}

.footer-bottom {
  margin-top: 26px;

  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;

  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-bottom a {
  text-align: right;
  transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
  opacity: 0.55;
}

/* ============================================================
   MODAL PERFIL — COMPLETO
   ============================================================ */

/* Bloquea el scroll general mientras el modal está abierto */

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: block;

  background: rgba(23, 26, 31, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.profile-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-modal-panel {
  position: absolute;
  inset: 18px;

  background: var(--carbon);
  color: var(--bone);

  border: 1px solid rgba(250, 248, 245, 0.12);

  overflow: hidden;

  opacity: 0;
  transform: translateY(30px) scale(0.992);

  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-modal.open .profile-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   SCROLL INTERNO
   ============================================================ */

.profile-modal-scroll {
  width: 100%;
  height: 100%;
  max-height: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior: contain;
  scroll-behavior: smooth;

  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;

  -webkit-overflow-scrolling: touch;
}

.profile-modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.profile-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.profile-modal-scroll::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: 999px;
}

/* ============================================================
   CABECERA Y CIERRE
   ============================================================ */

.profile-modal-header {
  position: fixed;
  top: 34px;
  left: 38px;
  z-index: 1020;

  display: flex;
  align-items: center;
  gap: 14px;

  pointer-events: none;
}

.profile-modal-header span {
  color: var(--sand);

  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-modal-header strong {
  color: rgba(250, 248, 245, 0.72);

  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-modal-close {
  position: fixed;
  top: 28px;
  right: 38px;
  z-index: 1030;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: 50%;

  background: rgba(23, 26, 31, 0.56);
  color: var(--bone);

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.profile-modal-close:hover {
  background: var(--bone);
  color: var(--carbon);
  transform: rotate(90deg);
}

.profile-modal-close:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 4px;
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

.profile-section {
  position: relative;

  min-height: calc(100vh - 36px);
  padding: 120px 58px 90px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}

.profile-section:last-child {
  border-bottom: 0;
}

.profile-section-intro {
  background: var(--carbon);
  color: var(--bone);
}

.profile-section-light {
  background: var(--bone);
  color: var(--carbon);

  border-color: var(--line);
}

.profile-section-dark {
  background: var(--carbon-deep);
  color: var(--bone);
}

/* Etiqueta superior de cada sección */

.profile-section-label {
  width: min(100%, var(--max));
  margin: 0 auto 46px;

  color: rgba(250, 248, 245, 0.64);

  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.profile-section-light .profile-section-label {
  color: var(--text-muted);
}

.profile-section-label::before {
  content: "";

  display: inline-block;

  width: 42px;
  height: 1px;

  margin-right: 16px;

  vertical-align: middle;
  background: var(--sand);
}

/* ============================================================
   PRESENTACIÓN
   ============================================================ */

.profile-intro-layout {
  width: min(100%, var(--max));
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

/* Foto */

.profile-intro-photo {
  position: relative;

  margin: 0;
  padding: 10px;

  border: 1px solid rgba(250, 248, 245, 0.2);
  background: rgba(250, 248, 245, 0.025);
}

.profile-intro-photo img {
  width: 100%;
  height: min(62vh, 640px);

  display: block;

  object-fit: cover;
  object-position: center 20%;

  filter: grayscale(1) contrast(1.04);
}

.profile-intro-photo figcaption {
  padding: 20px 4px 4px;
}

.profile-intro-photo strong,
.profile-intro-photo span {
  display: block;
}

.profile-intro-photo strong {
  margin-bottom: 8px;

  color: var(--bone);

  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.profile-intro-photo span {
  color: rgba(250, 248, 245, 0.58);

  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Contenido de presentación */

.profile-intro-content {
  min-width: 0;
}

.profile-manifesto-text {
  max-width: 920px;
  margin: 0;

  color: var(--bone);

  font-family: "Source Serif Variable", Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.7vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 500;

  perspective: 1000px;
}

.profile-manifesto-text .word {
  display: inline-block;
  white-space: nowrap;
}

.profile-manifesto-text .char {
  display: inline-block;

  transform-origin: 50% 100%;

  will-change: transform, opacity;
}

.profile-manifesto-text .serif {
  color: var(--sand);
}

/* Textos secundarios */

.profile-intro-copy {
  max-width: 900px;

  margin-top: 54px;
  padding-top: 34px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;

  border-top: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-intro-copy p {
  margin: 0;

  color: rgba(250, 248, 245, 0.7);

  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.025em;
}

/* ============================================================
   ENCABEZADOS GRANDES
   ============================================================ */

.profile-section-heading {
  width: min(100%, var(--max));
  margin: 0 auto 60px;
}

.profile-section-heading h2 {
  max-width: 1050px;
  margin: 0;

  color: #050505;

  font-size: clamp(3.2rem, 7vw, 8.5rem);
  line-height: 0.89;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.profile-section-heading--dark h2,
.profile-section-dark .profile-section-heading h2 {
  color: var(--bone);
}

/* ============================================================
   TRAYECTORIA — EFECTO TIPO PROCESO
   ============================================================ */

.profile-process-list {
  width: min(100%, var(--max));
  margin: 0 auto;

  border-top: 1px solid var(--line);
}

.profile-process-row {
  display: grid;
  grid-template-columns: 100px 0.8fr 1.2fr;
  gap: 38px;
  align-items: start;

  padding: 34px 0;

  border-bottom: 1px solid var(--line);
}

.profile-process-number {
  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.profile-process-row h3 {
  margin: 0;

  color: #050505;

  font-size: clamp(2rem, 3.7vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.profile-process-title .word {
  display: inline-block;
  white-space: nowrap;
}

.profile-process-title .char {
  display: inline-block;
  min-width: 0.02em;

  will-change: opacity, transform;
}

.profile-process-row p {
  max-width: 650px;
  margin: 0;

  color: var(--text-soft);

  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.62;
  letter-spacing: -0.025em;
}

/* ============================================================
   EXPERIENCIA LABORAL
   ============================================================ */

.profile-work-list {
  width: min(100%, var(--max));
  margin: 0 auto;

  border-top: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-work-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
  align-items: start;

  padding: 30px 0;

  border-bottom: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-work-date {
  padding-top: 5px;

  color: var(--sand);

  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.profile-work-content {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.35fr);
  gap: 10px 42px;
  align-items: start;
}

.profile-work-content h3 {
  grid-column: 1;
  grid-row: 1;

  margin: 0;

  color: var(--bone);

  font-size: clamp(1.55rem, 2.5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.profile-work-content strong {
  grid-column: 1;
  grid-row: 2;

  color: rgba(250, 248, 245, 0.52);

  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-work-content p {
  grid-column: 2;
  grid-row: 1 / span 2;

  max-width: 680px;
  margin: 0;

  color: rgba(250, 248, 245, 0.68);

  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: -0.02em;
}

/* ============================================================
   HABILIDADES LABORALES — FILAS
   ============================================================ */

.profile-skills-list {
  width: min(100%, var(--max));
  margin: 0 auto;

  border-top: 1px solid var(--line);
}

.profile-skill-row {
  display: grid;
  grid-template-columns: 90px 0.75fr 1.25fr;
  gap: 36px;
  align-items: start;

  padding: 32px 0;

  border-bottom: 1px solid var(--line);
}

.profile-skill-number {
  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.profile-skill-row h3 {
  margin: 0;

  color: #050505;

  font-size: clamp(1.8rem, 3.2vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.profile-skill-row ul {
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;

  list-style: none;
}

.profile-skill-row li {
  position: relative;

  padding: 0 0 12px 18px;

  color: var(--text-soft);

  font-size: 1rem;
  line-height: 1.5;

  border-bottom: 1px solid var(--line);
}

.profile-skill-row li::before {
  content: "○";

  position: absolute;
  top: 1px;
  left: 0;

  color: var(--sand);
  font-size: 0.65rem;
}

/* Botón final */

.profile-section-action {
  width: min(100%, var(--max));
  margin: 44px auto 0;
}

/* ============================================================
   COMPATIBILIDAD CON EL HTML ANTERIOR
   Evita que se rompa si todavía quedan clases viejas
   ============================================================ */

.profile-single-row {
  width: min(100%, var(--max));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.profile-single-row-heading {
  position: sticky;
  top: 120px;
}

.profile-single-row-heading > span {
  display: block;
  margin-bottom: 26px;

  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-single-row-heading h2 {
  max-width: 560px;
  margin: 0;

  font-size: clamp(3rem, 5.8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.078em;
  font-weight: 900;
}

.profile-section-dark .profile-single-row-heading h2 {
  color: var(--bone);
}

.profile-section-light .profile-single-row-heading h2 {
  color: #050505;
}

/* Compatibilidad con experiencia del HTML anterior */

.profile-experience-list {
  border-top: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-experience-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;

  padding: 30px 0;

  border-bottom: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-experience-list article > span {
  color: var(--sand);

  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-experience-list h3 {
  margin: 0 0 10px;

  color: var(--bone);

  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.profile-experience-list p {
  max-width: 680px;
  margin: 0;

  color: rgba(250, 248, 245, 0.64);

  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

/* Compatibilidad con habilidades del HTML anterior */

.profile-skills-content {
  display: grid;
  gap: 0;

  border-top: 1px solid var(--line);
}

.profile-skill-group {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;

  padding: 28px 0;

  border-bottom: 1px solid var(--line);
}

.profile-skill-group h3 {
  margin: 3px 0 0;

  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.profile-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-skill-tags span {
  padding: 11px 15px;

  border: 1px solid var(--line);
  border-radius: 999px;

  color: var(--carbon);

  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-skills-content > .button {
  justify-self: start;

  margin-top: 38px;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {
  .profile-modal-panel {
    inset: 10px;
  }

  .profile-section {
    min-height: auto;
    padding: 110px 32px 80px;
  }

  .profile-intro-layout {
    grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
    gap: 46px;
  }

  .profile-intro-photo img {
    height: 460px;
  }

  .profile-intro-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-process-row {
    grid-template-columns: 70px 0.75fr 1.25fr;
    gap: 24px;
  }

  .profile-work-row {
    grid-template-columns: 150px 1fr;
    gap: 28px;
  }

  .profile-work-content {
    grid-template-columns: 1fr;
  }

  .profile-work-content h3,
  .profile-work-content strong,
  .profile-work-content p {
    grid-column: 1;
    grid-row: auto;
  }

  .profile-work-content p {
    margin-top: 12px;
  }

  .profile-skill-row {
    grid-template-columns: 60px 0.65fr 1.35fr;
    gap: 24px;
  }

  .profile-single-row {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .profile-single-row-heading {
    position: relative;
    top: auto;
  }

  .profile-experience-list article {
    grid-template-columns: 150px 1fr;
    gap: 26px;
  }
}

/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 640px) {
  .profile-modal-panel {
    inset: 0;

    border: 0;
  }

  .profile-modal-header {
    top: 24px;
    left: 22px;
  }

  .profile-modal-header strong {
    display: none;
  }

  .profile-modal-close {
    top: 16px;
    right: 18px;
  }

  .profile-section {
    min-height: auto;
    padding: 100px 22px 70px;
  }

  .profile-section-label {
    margin-bottom: 36px;
  }

  /* Presentación */

  .profile-intro-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .profile-intro-photo {
    width: min(290px, 82%);
  }

  .profile-intro-photo img {
    height: 390px;
  }

  .profile-manifesto-text {
    font-size: clamp(2.6rem, 13vw, 4.8rem);
  }

  .profile-intro-copy {
    margin-top: 40px;
    padding-top: 26px;

    grid-template-columns: 1fr;
  }

  /* Títulos */

  .profile-section-heading {
    margin-bottom: 42px;
  }

  .profile-section-heading h2,
  .profile-single-row-heading h2 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  /* Trayectoria */

  .profile-process-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;

    padding: 27px 0;
  }

  .profile-process-row p {
    grid-column: 2;
  }

  /* Experiencia */

  .profile-work-row {
    grid-template-columns: 1fr;
    gap: 14px;

    padding: 26px 0;
  }

  .profile-work-content {
    grid-template-columns: 1fr;
  }

  .profile-work-content h3 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .profile-experience-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Habilidades */

  .profile-skill-row {
    grid-template-columns: 40px 1fr;
    gap: 14px;

    padding: 26px 0;
  }

  .profile-skill-row ul {
    grid-column: 2;

    grid-template-columns: 1fr;

    margin-top: 10px;
  }

  .profile-skill-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-single-row {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .profile-modal,
  .profile-modal-panel,
  .profile-modal-close {
    transition: none;
  }

  .profile-manifesto-text .char,
  .profile-process-title .char {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============================================================
   CABECERA
   ============================================================ */

.profile-modal-header {
  position: fixed;
  top: 34px;
  left: 38px;
  z-index: 1020;

  display: flex;
  align-items: center;
  gap: 14px;

  pointer-events: none;
}

.profile-modal-header span {
  color: var(--sand);

  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-modal-header strong {
  color: rgba(250, 248, 245, 0.72);

  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-modal-close {
  position: fixed;
  top: 28px;
  right: 38px;
  z-index: 1030;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: 50%;

  background: rgba(23, 26, 31, 0.42);
  color: var(--bone);

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.profile-modal-close:hover {
  background: var(--bone);
  color: var(--carbon);
  transform: rotate(90deg);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

.profile-section {
  position: relative;

  min-height: calc(100vh - 36px);
  padding: 120px 58px 90px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}

.profile-section:last-child {
  border-bottom: 0;
}

.profile-section-intro {
  background: var(--carbon);
  color: var(--bone);
}

.profile-section-light {
  background: var(--bone);
  color: var(--carbon);

  border-color: var(--line);
}

.profile-section-dark {
  background: var(--carbon-deep);
  color: var(--bone);
}

.profile-section-label {
  width: min(100%, var(--max));
  margin: 0 auto 46px;

  color: rgba(250, 248, 245, 0.64);

  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.profile-section-light .profile-section-label {
  color: var(--text-muted);
}

.profile-section-label::before {
  content: "";

  display: inline-block;

  width: 42px;
  height: 1px;

  margin-right: 16px;

  vertical-align: middle;
  background: var(--sand);
}

/* ============================================================
   PRESENTACIÓN
   ============================================================ */

.profile-intro-layout {
  width: min(100%, var(--max));
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

.profile-intro-photo {
  position: relative;

  margin: 0;
  padding: 10px;

  border: 1px solid rgba(250, 248, 245, 0.2);
}

.profile-intro-photo img {
  width: 100%;
  height: min(62vh, 640px);

  object-fit: cover;
  object-position: center 20%;

  filter: grayscale(1) contrast(1.04);
}

.profile-intro-photo figcaption {
  padding: 20px 4px 4px;
}

.profile-intro-photo strong,
.profile-intro-photo span {
  display: block;
}

.profile-intro-photo strong {
  margin-bottom: 8px;

  color: var(--bone);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.profile-intro-photo span {
  color: rgba(250, 248, 245, 0.58);

  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-intro-content {
  min-width: 0;
}

.profile-manifesto-text {
  max-width: 920px;
  margin: 0;

  color: var(--bone);

  font-family: "Source Serif Variable", Georgia, serif;
  font-size: clamp(2.7rem, 5.7vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 500;

  perspective: 1000px;
}

.profile-manifesto-text .word {
  display: inline-block;
  white-space: nowrap;
}

.profile-manifesto-text .char {
  display: inline-block;

  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.profile-intro-copy {
  max-width: 900px;

  margin-top: 54px;
  padding-top: 34px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;

  border-top: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-intro-copy p {
  margin: 0;

  color: rgba(250, 248, 245, 0.7);

  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.025em;
}

/* ============================================================
   TRAYECTORIA
   ============================================================ */

.profile-section-heading {
  width: min(100%, var(--max));
  margin: 0 auto 60px;
}

.profile-section-heading h2 {
  max-width: 1050px;
  margin: 0;

  color: #050505;

  font-size: clamp(3.2rem, 7vw, 8.5rem);
  line-height: 0.89;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.profile-process-list {
  width: min(100%, var(--max));
  margin: 0 auto;

  border-top: 1px solid var(--line);
}

.profile-process-row {
  display: grid;
  grid-template-columns: 100px 0.8fr 1.2fr;
  gap: 38px;
  align-items: start;

  padding: 34px 0;

  border-bottom: 1px solid var(--line);
}

.profile-process-number {
  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.profile-process-row h3 {
  margin: 0;

  color: #050505;

  font-size: clamp(2rem, 3.7vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.profile-process-title .word {
  display: inline-block;
  white-space: nowrap;
}

.profile-process-title .char {
  display: inline-block;
  min-width: 0.02em;

  will-change: opacity, transform;
}

.profile-process-row p {
  max-width: 650px;
  margin: 0;

  color: var(--text-soft);

  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.62;
  letter-spacing: -0.025em;
}

/* ============================================================
   EXPERIENCIA E HABILIDADES
   ============================================================ */

.profile-single-row {
  width: min(100%, var(--max));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.profile-single-row-heading {
  position: sticky;
  top: 120px;
}

.profile-single-row-heading > span {
  display: block;
  margin-bottom: 26px;

  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-single-row-heading h2 {
  max-width: 560px;
  margin: 0;

  font-size: clamp(3rem, 5.8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.078em;
  font-weight: 900;
}

.profile-section-dark .profile-single-row-heading h2 {
  color: var(--bone);
}

.profile-section-light .profile-single-row-heading h2 {
  color: #050505;
}

/* ============================================================
   EXPERIENCIA — UNA FILA POR TRABAJO
   ============================================================ */

.profile-experience-list {
  border-top: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-experience-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;

  padding: 30px 0;

  border-bottom: 1px solid rgba(250, 248, 245, 0.14);
}

.profile-experience-list article > span {
  color: var(--sand);

  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-experience-list h3 {
  margin: 0 0 10px;

  color: var(--bone);

  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.profile-experience-list p {
  max-width: 680px;
  margin: 0;

  color: rgba(250, 248, 245, 0.64);

  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

/* ============================================================
   HABILIDADES
   ============================================================ */

.profile-skills-content {
  display: grid;
  gap: 0;

  border-top: 1px solid var(--line);
}

.profile-skill-group {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;

  padding: 28px 0;

  border-bottom: 1px solid var(--line);
}

.profile-skill-group h3 {
  margin: 3px 0 0;

  color: var(--sand);

  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.profile-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-skill-tags span {
  padding: 11px 15px;

  border: 1px solid var(--line);
  border-radius: 999px;

  color: var(--carbon);

  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-skills-content > .button {
  justify-self: start;

  margin-top: 38px;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 980px) {
  .profile-modal-panel {
    inset: 10px;
  }

  .profile-section {
    min-height: auto;
    padding: 110px 32px 80px;
  }

  .profile-intro-layout {
    grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
    gap: 46px;
  }

  .profile-intro-photo img {
    height: 460px;
  }

  .profile-intro-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-process-row {
    grid-template-columns: 70px 0.75fr 1.25fr;
    gap: 24px;
  }

  .profile-single-row {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .profile-single-row-heading {
    position: relative;
    top: auto;
  }
}

/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 640px) {
  .profile-modal-panel {
    inset: 0;
  }

  .profile-modal-header {
    top: 24px;
    left: 22px;
  }

  .profile-modal-header strong {
    display: none;
  }

  .profile-modal-close {
    top: 16px;
    right: 18px;
  }

  .profile-section {
    padding: 100px 22px 70px;
  }

  .profile-intro-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .profile-intro-photo {
    width: min(290px, 82%);
  }

  .profile-intro-photo img {
    height: 390px;
  }

  .profile-manifesto-text {
    font-size: clamp(2.6rem, 13vw, 4.8rem);
  }

  .profile-intro-copy {
    margin-top: 40px;
    padding-top: 26px;
  }

  .profile-section-heading h2,
  .profile-single-row-heading h2 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .profile-process-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;

    padding: 27px 0;
  }

  .profile-process-row p {
    grid-column: 2;
  }

  .profile-experience-list article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-skill-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   PÁGINAS DE DISCIPLINA
   ============================================================ */

.discipline-hero {
  position: relative;
  min-height: 88vh;

  padding: 150px 58px 70px;

  display: flex;
  align-items: flex-end;

  background: var(--bone);
  color: var(--carbon);

  overflow: hidden;
}

.discipline-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.discipline-eyebrow {
  margin-bottom: 48px;

  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.discipline-eyebrow::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-right: 16px;
  vertical-align: middle;
  background: var(--sand);
}

.discipline-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
}

.discipline-hero h1 {
  margin: 0;

  color: #050505;
  font-size: clamp(5rem, 14vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.105em;
  font-weight: 900;
}

.discipline-hero p {
  max-width: 540px;
  margin: 0 0 16px;

  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.discipline-gallery-section {
  padding: 120px 58px;

  background: var(--bone);
  color: var(--carbon);

  border-top: 1px solid var(--line);
}

.discipline-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.discipline-card {
  position: relative;

  min-height: 380px;
  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: var(--paper);
  color: var(--carbon);

  border: 1px solid var(--line);

  overflow: hidden;
}

.discipline-card.large {
  grid-column: span 8;
  min-height: 520px;
}

.discipline-card.small {
  grid-column: span 4;
}

.discipline-card.medium {
  grid-column: span 6;
}

.discipline-card.dark {
  background: var(--carbon);
  color: var(--bone);
}

.discipline-card::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid currentColor;
  opacity: 0.12;
  pointer-events: none;
}

.discipline-card span {
  position: relative;
  z-index: 2;

  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.discipline-card.dark span {
  color: rgba(250, 248, 245, 0.72);
}

.discipline-card h3 {
  position: relative;
  z-index: 2;

  max-width: 520px;
  margin: 0;

  font-size: clamp(2rem, 4.2vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.discipline-info-section {
  padding: 120px 58px;

  background: var(--paper);
  color: var(--carbon);

  border-top: 1px solid var(--line);
}

.discipline-info-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 80px;
  align-items: start;
}

.discipline-info-grid aside {
  position: sticky;
  top: 120px;
}

.discipline-info-grid aside h2 {
  max-width: 520px;
  margin: 28px 0 0;

  color: #050505;
  font-size: clamp(2.6rem, 5vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.discipline-list {
  border-top: 1px solid var(--line);
}

.discipline-list article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 34px;

  padding: 32px 0;

  border-bottom: 1px solid var(--line);
}

.discipline-list span {
  color: var(--sand);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.discipline-list h3 {
  margin: 0 0 12px;

  color: #050505;
  font-size: clamp(1.7rem, 3vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.discipline-list p {
  max-width: 680px;
  margin: 0;

  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.025em;
}
.site-loader-center span {
  display: block;
  color: #2b2f38;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: center;
}

.site-loader-progress small {
  display: block;
  max-width: 18rem;
  margin-top: 0.45rem;
  color: #6c7078;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* ============================================================
   RESPONSIVE 980
   ============================================================ */

@media (max-width: 980px) {
  .site-header {
    top: 12px;
    left: 18px;
    right: 18px;

    grid-template-columns: 138px 1fr;
    gap: 12px;
  }

  .small-logo {
    width: 138px;
  }

  .site-nav {
    justify-self: end;
    overflow-x: auto;
    padding: 0 8px;
  }

  .site-nav a {
    padding: 0 12px;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .hero-logo {
    width: 88vw;
  }

  .scroll-indicator {
    top: calc(46% + 150px);
  }

  .about-section {
    padding: 110px 24px 40px;
  }

  .about-inner {
    min-height: auto;
  }

  .about-hero-grid,
  .section-head,
  .about-profile-inner,
  .discipline-hero-grid,
  .discipline-info-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-grid,
  .about-profile-inner,
  .discipline-hero-grid,
  .discipline-info-grid {
    gap: 44px;
  }

  .about-copy {
    max-width: 680px;
  }

  .about-card-row {
    grid-template-columns: 1fr 1fr;
  }

  .about-model-bg {
    top: 8vh;
    right: -20vw;
    width: 70vw;
    height: 42vh;
  }

  .manifesto-section,
  .areas-section,
  .process-section,
  .about-profile-section,
  .discipline-gallery-section,
  .discipline-info-section {
    padding: 100px 24px;
  }

  .section-head {
    gap: 28px;
    margin-bottom: 52px;
  }

 .discipline-icon {
  position: absolute;
  top: 38%;
  left: 30px;
  z-index: 1;

  display: block;

  width: min(58%, 360px);
  aspect-ratio: 1400 / 1080;

  color: var(--sand);
  background-color: currentColor;

  opacity: 0.92;

  mask-repeat: no-repeat;
  mask-position: left center;
  mask-size: contain;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  -webkit-mask-size: contain;

  transform: translateY(-50%) scale(1);

  transition:
    color 0.32s ease,
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.area-card:hover .discipline-icon {
  color: var(--sand);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
  .process-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 0;
  }

  .process-item p {
    max-width: 720px;
  }

  .about-profile-card {
    min-height: 320px;
  }

  .profile-modal-panel {
    inset: 0;
  }

  .profile-page {
    min-height: 100vh;
    padding: 110px 24px 70px;
  }

  .profile-intro-grid,
  .profile-columns {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .profile-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-modal-header {
    top: 24px;
    left: 24px;
  }

  .profile-modal-close {
    top: 20px;
    right: 24px;
  }

  .site-footer-big {
    min-height: auto;
    padding: 42px 24px 28px;
  }

  .footer-word {
    font-size: clamp(5.8rem, 24vw, 16rem);
    white-space: normal;
    line-height: 0.82;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col {
    border-bottom: 1px solid var(--line);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .discipline-hero {
    min-height: 76vh;
    padding: 130px 24px 60px;
  }

  .discipline-card.large,
  .discipline-card.medium,
  .discipline-card.small {
    grid-column: span 12;
  }

  .discipline-info-grid aside {
    position: relative;
    top: auto;
  }

  .discipline-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ============================================================
   RESPONSIVE 640 / MOBILE
   ============================================================ */

@media (max-width: 640px) {
  .site-header {
    position: fixed;
    top: 16px;
    left: 18px;
    right: 18px;
    z-index: 720;

    display: grid;
    grid-template-columns: 106px 1fr;
    gap: 8px;
    align-items: start;

    pointer-events: none;
    transform: none !important;
  }

  .site-nav {
    display: none !important;
  }

  .small-logo {
    position: relative;
    z-index: 730;

    width: 106px;

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;

    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  body.scrolled .small-logo {
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: auto;
  }

  body:not(.scrolled) .small-logo {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-top-nav {
    justify-self: end;

    display: grid !important;
    grid-template-columns: auto auto 42px;
    gap: 4px;

    pointer-events: auto;
  }

  .mobile-top-nav a,
  .mobile-menu-btn {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    background: rgba(250, 248, 245, 0.94);
    border: 1px solid rgba(44, 47, 54, 0.16);
    backdrop-filter: blur(12px);

    color: var(--carbon);

    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .mobile-top-nav a::before {
    content: "○";
    margin-right: 7px;
    font-size: 0.54rem;
  }

  .mobile-menu-btn {
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
  }

  .mobile-menu-btn span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--carbon);

    transition: transform 0.25s ease;
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 690;

    display: block !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  body.mobile-menu-open .mobile-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-blur {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(44, 47, 54, 0.18),
        rgba(44, 47, 54, 0.54)
      ),
      rgba(250, 248, 245, 0.22);

    backdrop-filter: blur(18px);
  }

  .mobile-menu-content {
    position: relative;
    z-index: 2;

    min-height: 100svh;
    padding: 110px 18px 34px;

    display: flex;
    align-items: flex-end;
  }

  .mobile-menu-links {
    width: 100%;

    display: grid;
    gap: 4px;
  }

  .mobile-menu-links a {
    display: block;

    color: var(--bone);
    text-decoration: none;

    font-size: clamp(2.8rem, 14vw, 5.6rem);
    line-height: 0.88;
    letter-spacing: -0.085em;
    font-weight: 900;
  }

  .mobile-menu-links a:hover {
    color: var(--sand);
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .hero-logo {
    width: 78vw;
  }

  .scroll-indicator {
    top: calc(46% + 118px);
    font-size: 10px;
  }

  .about-section {
    padding: 96px 24px 40px;
  }

  .about-hero-grid h1 {
    font-size: clamp(3.25rem, 17vw, 5.4rem);
  }

  .about-card-row {
    grid-template-columns: 1fr;
  }

  .about-card-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-card-row div:last-child {
    border-bottom: 0;
  }

  .about-model-bg {
    top: 10vh;
    right: -40vw;

    width: 110vw;
    height: 44vh;

    opacity: 0;
    mix-blend-mode: multiply;
  }

  body.content-visible .about-model-bg {
    opacity: 0.13;
    transform: translateX(0) rotate(-8deg) scale(1);
  }

  .manifesto-section,
  .areas-section,
  .process-section,
  .about-profile-section,
  .discipline-gallery-section,
  .discipline-info-section {
    padding: 84px 24px;
  }

  .manifesto-section {
    min-height: 86vh;
  }

  .manifesto-label {
    margin-bottom: 36px;
  }

  .manifesto-text {
    line-height: 1;
  }

  .section-head h2 {
    font-size: clamp(2.6rem, 14vw, 4.8rem);
  }

  .area-card {
    min-height: 260px;
    padding: 26px;
  }

  .process-item h3 {
    font-size: clamp(2rem, 12vw, 3.8rem);
  }

  .about-profile-text h2 {
    font-size: clamp(2.7rem, 14vw, 5rem);
  }

  .profile-page h2 {
    font-size: clamp(2.7rem, 14vw, 5.4rem);
  }

  .profile-copy p {
    font-size: clamp(1.3rem, 7vw, 2.2rem);
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .profile-modal-header strong {
    display: none;
  }

  .footer-word {
    font-size: clamp(4.5rem, 22vw, 8rem);
    letter-spacing: -0.09em;
  }

  .footer-title h2 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-col {
    border-right: 0;
  }

  .footer-bottom a {
    text-align: left;
  }

  .discipline-hero {
    min-height: 70vh;
    padding: 120px 24px 52px;
  }

  .discipline-hero h1 {
    font-size: clamp(4.4rem, 22vw, 7.4rem);
  }

  .discipline-card {
    min-height: 300px;
  }

  .discipline-card.large {
    min-height: 360px;
  }

  .discipline-card h3 {
    font-size: clamp(2.4rem, 13vw, 4.6rem);
  }
}

/* ============================================================
   REDUCED MOTION
   Evita movimiento continuo, pero no rompe el header
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .about-model-bg {
    transition: none;
  }

  .about-model-bg model-viewer {
    pointer-events: none;
  }
}


/* ============================================================
   AJUSTES FINALES DE RECORRIDO Y MODALES
   ============================================================ */

.site-nav .nav-contact-button,
.mobile-top-nav .mobile-contact-button,
.mobile-menu-links button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-nav .nav-contact-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--carbon);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.68;
  transition: opacity .25s ease, background .25s ease, color .25s ease;
}

.site-nav .nav-contact-button::before {
  content: "○";
  margin-right: 10px;
  font-size: .64rem;
}

.site-nav .nav-contact-button:hover {
  opacity: 1;
  background: var(--carbon);
  color: var(--bone);
}

.profile-page-manifesto {
  background: var(--carbon);
  color: var(--bone);
}

.profile-manifesto-text {
  max-width: 1220px;
  margin: 0;
  font-family: "Source Serif Variable", Georgia, serif;
  font-size: clamp(2.3rem, 5.2vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.profile-manifesto-text .serif {
  color: var(--sand);
  font-style: italic;
}
.profile-manifesto-text .char {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.profile-manifesto-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(250,248,245,.16);
  color: rgba(250,248,245,.62);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.profile-page-journey {
  align-items: flex-start;
}

.profile-journey-list {
  border-top: 1px solid var(--line);
}

.profile-journey-item {
  display: grid;
  grid-template-columns: 100px .8fr 1.2fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.profile-journey-item > span,
.profile-experience-list > article > span {
  color: var(--sand);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.profile-journey-item h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.profile-journey-item h3 .char {
  display: inline-block;
}

.profile-journey-item p {
  max-width: 640px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.profile-experience-list {
  border-top: 1px solid rgba(250,248,245,.14);
}

.profile-experience-list article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 46px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(250,248,245,.14);
}

.profile-experience-list h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.profile-experience-list p {
  max-width: 740px;
  margin: 0;
  color: rgba(250,248,245,.68);
  line-height: 1.6;
}

.profile-page-skills {
  background: var(--paper);
  color: var(--carbon);
}

.profile-page-skills .profile-page-label {
  color: var(--text-muted);
}

.profile-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.profile-skills-grid h3 {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.profile-skills-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.profile-skills-grid li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: -.025em;
}

.profile-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 54px;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  background: rgba(23,26,31,.78);
  backdrop-filter: blur(16px);
}

.contact-modal.open { display: block; }

.contact-modal-panel {
  position: absolute;
  inset: 18px;
  background: var(--bone);
  color: var(--carbon);
  overflow: hidden;
}

.contact-modal-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.contact-modal-close {
  position: fixed;
  top: 34px;
  right: 38px;
  z-index: 2110;

  box-sizing: border-box;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 50%;

  background: rgba(250, 248, 245, 0.84);
  color: var(--carbon);

  font-size: 2rem;
  line-height: 1;
  cursor: pointer;

  appearance: none;
  transition: transform 0.25s ease, background 0.25s ease;
}
.contact-modal-close:hover { transform: rotate(90deg); background: var(--sand); }

.contact-modal-header {
  position: fixed;
  top: 34px;
  left: 38px;
  z-index: 2110;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-modal-header span { color: var(--sand); }

.contact-modal-inner {
  width: min(100%, var(--max));
  min-height: 100%;
  margin: 0 auto;
  padding: 130px 58px 80px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.contact-modal-copy h2 {
  max-width: 760px;
  margin: 28px 0 30px;
  font-size: clamp(3.2rem, 7vw, 8rem);
  line-height: .88;
  letter-spacing: -.08em;
}

.contact-modal-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 18px;
}

.contact-form label { display: grid; gap: 10px; }
.contact-form label > span {
  color: var(--text-muted);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--carbon);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--carbon); }

.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form-full { grid-column: 1 / -1; }
.contact-form-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-form-actions a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .profile-journey-item { grid-template-columns: 70px 1fr; }
  .profile-journey-item p { grid-column: 2; }
  .profile-experience-list article { grid-template-columns: 1fr; gap: 14px; }
  .contact-modal-panel { inset: 0; }
  .contact-modal-inner { grid-template-columns: 1fr; gap: 54px; padding: 120px 24px 70px; }
  .profile-skills-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 640px) {
  .mobile-top-nav .mobile-contact-button {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: rgba(250,248,245,.94);
    border: 1px solid rgba(44,47,54,.16);
    color: var(--carbon);
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .mobile-menu-links button {
    display: block;
    padding: 0;
    text-align: left;
    color: var(--bone);
    font-size: clamp(2.8rem, 14vw, 5.6rem);
    line-height: .88;
    letter-spacing: -.085em;
    font-weight: 900;
  }
  .profile-manifesto-meta { flex-direction: column; }
  .profile-journey-item { grid-template-columns: 1fr; gap: 12px; }
  .profile-journey-item p { grid-column: 1; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form-full { grid-column: 1; }
  .contact-modal-header { top: 24px; left: 24px; }
  .contact-modal-close { top: 20px; right: 24px; }
}


/* Contacto siempre por encima de vistas de proyecto */
.contact-modal { z-index: 2200; }
.contact-modal.open { display: block; pointer-events: auto; }

/* ============================================================
   PANTALLA DE CARGA — AJAX / REST
   ============================================================ */

body.loader-active {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vh, 3.25rem);

  padding: 28px;

  background: var(--carbon);
  color: var(--bone);

  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.7s ease;
}

.site-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-stage {
  position: relative;

  width: clamp(17rem, 34vw, 28rem);
  height: clamp(17rem, 34vw, 28rem);

  display: grid;
  place-items: center;
}

.site-loader-circle {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;

  animation: site-loader-rotate 13s linear infinite;
}

.site-loader-circle text {
  fill: var(--bone);

  font-family: Satoshi, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-loader-center {
  position: relative;
  z-index: 2;

  width: clamp(5.4rem, 9vw, 7.5rem);
  height: clamp(5.4rem, 9vw, 7.5rem);

  display: grid;
  place-items: center;

  border: 1px solid rgba(250, 248, 245, 0.16);
  border-radius: 999px;

  background: rgba(250, 248, 245, 0.035);
  backdrop-filter: blur(8px);

  padding: clamp(1rem, 1.8vw, 1.35rem);
  overflow: hidden;
}

.site-loader-center img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.site-loader-progress {
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;

  color: rgba(250, 248, 245, 0.78);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.site-loader-progress > span {
  display: inline-block;
}

.site-loader-progress small {
  display: inline-block;
  margin: 0;

  color: rgba(250, 248, 245, 0.6);

  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.site-loader-enter {
  min-height: 40px;
  padding: 0 22px;
  margin: 0;

  border: 1px solid rgba(250, 248, 245, 0.32);
  border-radius: 999px;

  background: transparent;
  color: var(--bone);

  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  cursor: pointer;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.site-loader.is-ready .site-loader-enter {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-loader-enter:hover {
  background: var(--bone);
  color: var(--carbon);
}

.site-loader-status {
  position: static;

  max-width: 30rem;
  margin: -1.8rem 0 0;

  color: rgba(250, 248, 245, 0.52);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.site-loader.is-ready .site-loader-status {
  color: rgba(250, 248, 245, 0.64);
}

@keyframes site-loader-rotate {
  to {
    transform: rotate(360deg);
  }
}


html.loader-will-skip body.loader-active {
  overflow: auto !important;
}

html.loader-will-show body.loader-active {
  overflow: hidden;
}

html.loader-will-show body.loader-active #page {
  visibility: hidden;
}

html.loader-will-show body.loader-active .site-loader {
  visibility: visible;
}

@media (max-width: 700px) {
  .site-loader-stage {
    width: min(78vw, 22rem);
    height: min(78vw, 22rem);
  }

  .site-loader-center {
    width: 5.25rem;
    height: 5.25rem;
  }

  .site-loader-progress {
    max-width: 18rem;
    line-height: 1.45;
  }

  .site-loader-status {
    max-width: 18rem;
    margin-top: -1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader-circle {
    animation-duration: 28s;
  }

  .site-loader,
  .site-loader-enter {
    transition-duration: 0.01ms;
  }
}
/* ============================================================
   RESPONSIVE HOME - ÁREAS / DISCIPLINAS
   ============================================================ */

@media (max-width: 900px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-card {
    min-height: 320px;
    padding: 28px;
  }

  .area-card h3 {
    max-width: none;
    font-size: clamp(2.8rem, 13vw, 5rem);
    line-height: 0.92;
  }

  .area-card p {
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .discipline-icon {
    top: 36%;
    left: auto;
    right: 24px;
    width: min(42vw, 190px);
    transform: translateY(-50%) scale(1);
    opacity: 0.7;
  }

  .area-card:hover .discipline-icon {
    transform: translateY(-50%) scale(1.04);
  }
}

@media (max-width: 520px) {
  .areas-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .areas-grid {
    border-left: 1px solid var(--line);
  }

  .area-card {
    min-height: 300px;
    padding: 24px;
  }

  .area-card h3 {
    font-size: clamp(2.4rem, 15vw, 4.2rem);
    letter-spacing: -0.075em;
  }

  .area-card p {
    max-width: 78%;
    font-size: 0.98rem;
  }

  .discipline-icon {
    top: 34%;
    right: 18px;
    width: min(34vw, 140px);
  }
}
