/* =============================================
   TOKENS
============================================= */
:root {
  --night:  #0A0E1F;
  --bone:   #F0EDE5;
  --indigo: #1A2847;
  --sand:   #D4C4A8;
  --copper: #B8744A;
  --muted:  #888780;
  --dim:    #5F5E5A;
  --night-deep: #07090F;   /* Más oscuro que night — fondos secundarios de planes */
  --night-warm: #0F0C09;   /* Espresso — fondo sección proceso */
  --night-mid:  #0E1223;   /* Hover entre night y night-deep */
  --night-card: #0C1122;   /* Hover oscuro para cards de diagnóstico */

  --f-display: 'Fraunces', Georgia, serif;
  --f-ui:      'Inter', 'Helvetica Neue', sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  --pad:      10px;
  --max:      1100px;
  --header-h: 44px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── TYPE SCALE ──────────────────────────
     Fluid — para títulos y encabezados
  ─────────────────────────────────────────*/
  --fs-mega:       clamp(64px, 12vw, 88px);   /* CTA principal */
  --fs-hero:       clamp(40px, 11vw, 65px);   /* Hero title */
  --fs-title:      clamp(36px, 7vw, 52px);    /* Section titles */
  --fs-title-sm:   clamp(32px, 6vw, 48px);    /* Problema heading */
  --fs-heading-xl: clamp(30px, 4.5vw, 40px);  /* Strip titles */
  --fs-heading:    clamp(26px, 4vw, 34px);     /* Content headings */
  --fs-subhead:    clamp(22px, 3.5vw, 30px);   /* Card headings */
  --fs-subhead-sm: clamp(20px, 3vw, 24px);     /* Pain card titles */
  --fs-caption-lg: clamp(18px, 3.5vw, 26px);  /* Browser titles */
  --fs-caption-sm: clamp(17px, 3vw, 22px);     /* Sub-captions */
  --fs-caption:    clamp(16px, 2.2vw, 22px);   /* Nav labels, tab names */

  /* Fixed — prosa y UI */
  --fs-5xl:     28px;   /* Headings fijos grandes */
  --fs-4xl:     26px;   /* Headings fijos medianos */
  --fs-3xl:     24px;   /* Footer logo, fixed large */
  --fs-2xl:     22px;   /* Proceso arrow, accents */
  --fs-xl:      20px;   /* Work card titles */
  --fs-lg:      18px;   /* Trabajo note, editorial body */
  --fs-md:      16px;   /* Párrafos con énfasis */
  --fs-base:    15px;   /* Cuerpo base */
  --fs-sm:      14px;   /* Texto secundario */
  --fs-xs:      13px;   /* Texto pequeño */

  /* Fixed — UI / mono / etiquetas */
  --fs-ui-lg:  12px;   /* Nav links, meta */
  --fs-ui:     11px;   /* Tiny labels */
  --fs-ui-sm:  10px;   /* Micro mono */
  --fs-ui-xs:   9px;   /* Tags mono */
  --fs-ui-2xs:  8px;   /* Chips, badges */
  --fs-ui-3xs:  7px;   /* Micro-labels */
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--f-ui);
  font-size: var(--fs-base);
  line-height: 1.65;
  background: var(--night);
  color: var(--sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   UTILITIES
============================================= */
.accent { color: var(--copper); }
.mono   { font-family: var(--f-mono); }
.muted  { color: var(--muted); }
.dim    { color: var(--dim); }
.xs     { font-size: var(--fs-ui-xs); letter-spacing: 2px; }

/* =============================================
   FADE-UP ANIMATION
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.fade-from-top { transform: translateY(-24px); }
.fade-up.is-visible    { opacity: 1; transform: translateY(0); }

/* Hero entrance (CSS only, no JS scroll) */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn--down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__tag   { animation: heroIn 0.7s var(--ease-out) 0.05s both; }
.hero__title { animation: heroIn 0.8s var(--ease-out) 0.15s both; }
.hero__sub   { animation: heroIn 0.8s var(--ease-out) 0.28s both; }
.hero__ctas  { animation: heroIn 0.8s var(--ease-out) 0.40s both; }
.hero__foot  { animation: heroIn 0.8s var(--ease-out) 0.55s both; }

/* Al volver al hero desde abajo, los elementos bajan en lugar de subir */
.hero--replay-down .hero__tag,
.hero--replay-down .hero__title,
.hero--replay-down .hero__sub,
.hero--replay-down .hero__ctas,
.hero--replay-down .hero__foot { animation-name: heroIn--down; }

/* Tab panel transition */
@keyframes tabIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   LAYOUT
============================================= */
.s-dark  { background: var(--night); }
.s-dark-light { background: var(--indigo); }
.s-light { background: var(--bone); color: var(--dim); }

/* Servicios section — dark palette overrides */
.servicios-section .sec-label { color: var(--copper); }
.servicios-section .sec-title { color: var(--bone); }
.servicios-section .sec-title em { color: var(--sand); }

.section-block { padding: 40px 0; position: relative; z-index: 2; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =============================================
   SHARED COMPONENTS
============================================= */
.sec-label {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  letter-spacing: 3px;
  color: var(--copper);
  margin-bottom: 10px;
}

.sec-title {
  font-family: var(--f-display);
  font-size: var(--fs-title);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--indigo);
  margin-bottom: 20px;
}
.sec-title em { font-style: italic; color: var(--sand); }
.sec-title--dark { color: var(--night); }
.sec-title--dark em { color: var(--dim); }

.rule {
  border: none;
  height: 0.5px;
  background: var(--indigo);
}
.rule--sand { background: var(--sand); opacity: 0.35; }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.8; transform: translateY(-1px); }

.btn--copper {
  background: var(--copper);
  color: var(--night);
  padding: 14px 28px;
  border-radius: 24px;
}
.btn--ghost { color: var(--sand); padding: 14px 0; }
.btn--outline {
  border: 0.5px solid currentColor;
  color: var(--sand);
  padding: 14px 28px;
  border-radius: 24px;
  background: transparent;
}

/* =============================================
   HEADER + NAV
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--night);
  transition: box-shadow 0.4s ease, background 0.5s ease, backdrop-filter 0.5s ease, transform 0.35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 0 0 1px rgba(26, 40, 71, 0.566), 0 4px 24px rgba(0, 0, 0, 0.06);
}
.site-header.is-dimmed {
  background: rgba(10, 14, 31, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px var(--pad) 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  width: 220px;
  height: 50px;
  overflow: hidden;
}
.nav__logo em { font-size: var(--fs-ui); font-style: italic; color: var(--copper); margin-left: 4px; }

.nav__links { display: flex; gap: 28px; }

.nav__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav__links a {
  font-size: var(--fs-ui-lg);
  color: var(--sand);
  position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 0.5px;
  background: var(--copper);
  transition: width 0.3s var(--ease-out);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--bone); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }



/* =============================================
   HAMBURGER
============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--sand);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease, background 0.2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--copper); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--copper); }

/* =============================================
   HERO
============================================= */
.hero {
  background: var(--night);
  position: sticky;
  top: var(--header-h);
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 78% 12%, rgba(26,40,71,0.65) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__stars {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--pad) 0;
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
}

.hero__tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--fs-ui-xs);
  letter-spacing: 2px;
  color: var(--muted);
  border: 0.5px solid var(--indigo);
  border-radius: 12px;
  padding: 5px 12px;
  margin-bottom: 36px;
}

.hero__title {
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.03;
  color: var(--bone);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: var(--fs-md);
  color: var(--sand);
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero__ctas { display: flex; align-items: center; gap: 28px; }

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 28px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__foot-left { display: flex; flex-direction: column; gap: 4px; }

.hero__foot-bar {
  width: 100px;
  height: 0.5px;
  background: var(--copper);
  margin-bottom: 8px;
}

/* =============================================
   TERRITORIO STRIP
============================================= */
.territorio-strip {
  background: var(--copper);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.territorio-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}

.territorio-strip__number {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(72px, 14vw, 128px);
  font-weight: 300;
  line-height: 1;
  color: var(--night);
  letter-spacing: -3px;
}

.territorio-strip__coords {
  display: block;
  font-size: var(--fs-ui-lg);
  letter-spacing: 3px;
  color: rgba(10, 14, 31, 0.5);
  margin-top: 14px;
}

.territorio-strip__manifesto {
  font-family: var(--f-display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 300;
  color: var(--night);
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.territorio-strip__manifesto em {
  font-style: italic;
  opacity: 0.65;
}

.territorio-strip__sub {
  font-family: var(--f-ui);
  font-size: var(--fs-sm);
  color: rgba(10, 14, 31, 0.55);
  line-height: 1.7;
  max-width: 42ch;
}

.territorio-strip__horizon {
  display: block;
  width: 100%;
  height: 40px;
}

.horizon-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2s var(--ease-out);
}

.territorio-strip.is-visible .horizon-path {
  stroke-dashoffset: 0;
}

@media (max-width: 600px) {
  .territorio-strip__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .territorio-strip__sub {
    max-width: 100%;
  }
}

/* =============================================
   02 · EL PROBLEMA
============================================= */
.problema__intro { margin-bottom: 10px; }

.problema__question {
  font-family: var(--f-display);
  font-size: var(--fs-title-sm);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 15px;
}

.problema__context {
  font-size: var(--fs-md);
  color: var(--sand);
  line-height: 1.7;
  margin:auto;
}

.pain-card__num {
  font-size: var(--fs-ui-lg);
  letter-spacing: 3px;
  color: var(--copper);
  display: block;
  margin-bottom: 10px;
}

.pain-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-subhead-sm);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.pain-card__desc {
  font-size: var(--fs-md);
  color: var(--sand);
  line-height: 1.65;
}

/* =============================================
   03 · SERVICIOS
============================================= */



/* ── Navegación ─────────────────────────── */
.svc-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1px;
  background: rgba(0, 0, 0, 0.3);
}

.svc-tab {
  background: rgba(10, 14, 31, 0.45);
  border: none;
  cursor: pointer;
  padding: 10px 10px 10px;
  text-align: left;
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}

.svc-tab::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.svc-tab--active::after { transform: scaleX(1); }
.svc-tab:hover::after   { transform: scaleX(1); }

.svc-tab:hover                    { background: rgba(10, 14, 31, 0.6); }
.svc-tab--active                  { background: rgba(10, 14, 31, 0.68); }
.svc-tab:focus,
.svc-tab:focus-visible            { outline: none; }

.svc-tab__n {
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  letter-spacing: 3px;
  color: var(--copper);
  opacity: 0.55;
  display: block;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}
.svc-tab--active .svc-tab__n { opacity: 1; }

.svc-tab__name {
  font-family: var(--f-display);
  font-size: var(--fs-caption);
  color: var(--muted);
  display: block;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.svc-tab--active .svc-tab__name { color: var(--bone); }

/* ── Panels ─────────────────────────────── */
.svc-panel {
  display: none;
  overflow: visible;
  padding: 24px 30px 42px;
}
.svc-panel--active {
  display: block;
}

.svc-panel--active .diag-intro {
  animation: svc-in 0.4s var(--ease-out);
}

@keyframes svc-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   04 · PROGRAMAS
============================================= */
.programas-section {
  background: var(--night);
  color: var(--sand);
}

/* Copper accent line at section top */
.programas-section::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 116, 74, 0.65) 28%,
    rgba(184, 116, 74, 0.9) 50%,
    rgba(184, 116, 74, 0.65) 72%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle warm radial glow behind featured card */
.programas-section::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(184, 116, 74, 0.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}


.programas-section .sec-label {
  color: var(--copper);
  position: relative;
  z-index: 1;
}

.programas-section .sec-title {
  color: var(--bone);
  position: relative;
  z-index: 1;
}

.programas-section .sec-title em { color: var(--copper); }

.programas__header { margin-bottom: 0; }

.programas__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1px;
  background: rgba(184, 116, 74, 0.12);
  border: 1px solid rgba(184, 116, 74, 0.12);
  margin-bottom: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Base card */
.programa {
  background: var(--night);
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, background 0.35s ease;
}

/* Shimmer sweep al hacer hover */
.programa::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(184, 116, 74, 0.05) 50%,
    transparent 100%
  );
  transition: left 0.85s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.programa:hover::after {
  left: 150%;
}

/* Columnas secundarias — atenuadas */
.programa--secondary {
  background: var(--night-deep);
}

/* Línea copper top para secundarias en hover */
.programa--secondary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,116,74,0.55) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.programa--secondary:hover::before {
  opacity: 1;
}

.programa--secondary:hover {
  transform: translateY(-5px);
  background: var(--night-mid);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.programa--secondary:hover .programa__name {
  opacity: 0.85;
}

.programa--secondary:hover .programa__features {
  opacity: 0.9;
}

.programa--secondary .programa__name {
  font-size: clamp(22px, 3vw, 28px);
  opacity: 0.6;
}

.programa--secondary .programa__features {
  opacity: 0.7;
}

/* Plan central — el correcto */
.programa--central {
  background: var(--night);
  border-top: 2px solid var(--copper);
  padding-top: 34px;
}

.programa--central:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(184, 116, 74, 0.1);
  background: var(--night-card);
}

.programa--central .programa__name {
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--bone);
}

.programa__badge { display: none; }

.programa__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.programa__num { font-size: var(--fs-ui-lg); letter-spacing: 3px; color: var(--copper); }
.programa__cat { font-size: var(--fs-ui-lg); letter-spacing: 2px; color: var(--muted); }

.programa__name {
  font-family: var(--f-display);
  font-size: var(--fs-title);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.programa__rule { height: 0.5px; background: rgba(26, 40, 71, 0.55); margin-bottom: 20px; }

.programa__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.programa__features li {
  font-size: var(--fs-ui-lg);
  color: var(--sand);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.programa__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: var(--fs-ui-sm);
}

.programa__cta { margin-top: auto; align-self: flex-start; }

.programas__note {
  font-family: var(--f-mono);
  font-size: var(--fs-ui-xs);
  letter-spacing: 1px;
  color: var(--muted);
  text-align: center;
  line-height: 2.2;
  position: relative;
  z-index: 1;
}

/* =============================================
   FONDO ESPRESSO — sección proceso
============================================= */
.s-ember {
  background-color: var(--night-warm);
}

/* Copper line at top of Proceso section */
#proceso::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 116, 74, 0.65) 28%,
    rgba(184, 116, 74, 0.9) 50%,
    rgba(184, 116, 74, 0.65) 72%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Copper line at top of Estudio section */
#estudio::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 116, 74, 0.45) 28%,
    rgba(184, 116, 74, 0.65) 50%,
    rgba(184, 116, 74, 0.45) 72%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* =============================================
   06 · PROCESO — cuadrícula de ruta
============================================= */
#proceso {
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding: 0;
}

#proceso .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 60px;
}

#proceso .sec-label { flex-shrink: 0; }
#proceso .sec-title { flex-shrink: 0; margin-bottom: 0; color: var(--bone); }

.proceso__track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border-top: 1px solid rgba(184, 116, 74, 0.3);
}

.proceso__col {
  padding: 36px 36px 0 0;
  border-right: 1px solid rgba(184, 116, 74, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background 0.35s ease;
  cursor: default;
}

.proceso__col:last-child {
  border-right: none;
  padding-right: 0;
}

.proceso__col.is-visible {
  opacity: 1;
  transform: none;
}

.proceso__col:hover {
  background: rgba(184, 116, 74, 0.04);
}

.proceso__col:hover .proceso__index {
  -webkit-text-stroke-color: rgba(184, 116, 74, 0.65);
}

.proceso__col:hover .proceso__step-title {
  color: #fff;
}

.proceso__index {
  font-family: var(--f-display);
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 116, 74, 0.22);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 28px;
  transition: -webkit-text-stroke-color 0.4s ease;
  user-select: none;
}

.proceso__step-title {
  font-family: var(--f-display);
  font-size: var(--fs-heading);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  transition: color 0.35s ease;
}

.proceso__step-desc {
  font-size: var(--fs-sm);
  color: var(--sand);
  line-height: 1.75;
  opacity: 0.8;
  max-width: 260px;
}

/* =============================================
   07 · ESTUDIO
============================================= */
#estudio {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding: 0;
}

#estudio .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 24px;
}

#estudio .sec-label       { flex-shrink: 0; }
#estudio .estudio__layout { flex: 1; min-height: 0; }
#estudio .rule            { flex-shrink: 0; margin: 0; }
#estudio .estudio__foot   { flex-shrink: 0; }

.estudio__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-bottom: 52px;
  align-items: stretch;
}

.estudio__identity {
  background: var(--night);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.estudio__identity::before {
  content: '';
  display: block;
  height: 2.5px;
  background: var(--copper);
  flex-shrink: 0;
}

.estudio__monogram {
  flex: 1;
  font-family: var(--f-display);
  font-size: clamp(72px, 9vw, 96px);
  font-weight: 300;
  color: var(--bone);
  letter-spacing: -0.05em;
  line-height: 1;
  padding: 24px 28px 20px;
  display: flex;
  align-items: flex-end;
}

.estudio__identity-meta {
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(184, 116, 74, 0.15);
}

.estudio__identity-name {
  font-size: var(--fs-ui-xs);
  letter-spacing: 2px;
  color: var(--sand);
  margin-bottom: 3px;
}

.estudio__identity-role {
  font-size: var(--fs-ui-2xs);
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 16px;
}

.estudio__identity-geo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.estudio__geo-coords {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--dim);
}

.estudio__geo-elev {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--copper);
}

.estudio__title {
  font-family: var(--f-display);
  font-size: var(--fs-heading);
  font-weight: 400;
  color: var(--night);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.estudio__body {
  font-size: var(--fs-xs);
  color: var(--dim);
  line-height: 1.8;
  margin-bottom: 14px;
}

.estudio__bio {
  font-size: var(--fs-ui-lg);
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.estudio__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

/* =============================================
   TERRITORIO CARD
============================================= */
.territorio-card {
  background: var(--night);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.territorio-card svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Scanline — textura de pantalla analógica */
.territorio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  border-radius: 6px;
}

/* Pulso de ubicación GPS */
@keyframes location-ping {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(5); opacity: 0; }
}

.territorio-card .location-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: location-ping 3s var(--ease-out) infinite;
}

/* =============================================
   ANIMACIONES CIELO — twinkle
============================================= */
@keyframes twinkle-a {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.18; }
}
@keyframes twinkle-b {
  0%, 100% { opacity: 0.65; }
  35%      { opacity: 0.15; }
  70%      { opacity: 0.45; }
}
@keyframes twinkle-c {
  0%, 100% { opacity: 0.8; }
  55%      { opacity: 0.22; }
}

.star-twinkle--a { animation: twinkle-a 5.5s ease-in-out infinite; }
.star-twinkle--b { animation: twinkle-b 7.2s ease-in-out infinite 1.8s; }
.star-twinkle--c { animation: twinkle-c 4.8s ease-in-out infinite 3.1s; }

/* =============================================
   08 · CTA FINAL
============================================= */
#contacto {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding: 0;
}

#contacto .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-final { position: relative; overflow: hidden; }

.cta-final__stars {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.cta-final .sec-label { text-align: center; }

.cta-final__title {
  font-family: var(--f-display);
  font-size: var(--fs-mega);
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--bone);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.cta-final__sub {
  font-family: var(--f-display);
  font-size: clamp(17px, 3vw, 22px);
  font-style: italic;
  color: var(--sand);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.cta-final__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-final__email {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* =============================================
   FOOTER
============================================= */
.footer { padding-top: 40px; position: relative; z-index: 2; }
.footer .rule { margin-bottom: 36px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer__grid p {
  font-size: var(--fs-ui);
  color: var(--sand);
  line-height: 2;
}

.footer__logo {
  font-family: var(--f-display);
  font-size: var(--fs-3xl);
  color: var(--bone);
  margin-bottom: 6px;
  line-height: 1;
}
.footer__logo em { font-size: var(--fs-xs); font-style: italic; color: var(--sand); margin-left: 4px; }

.footer__tagline { font-size: var(--fs-ui); color: var(--sand); line-height: 1.6; }
.footer__tagline--sub { color: var(--muted); font-style: italic; }

.footer__col-label {
  font-size: var(--fs-ui-2xs);
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 28px;
  color: var(--dim);
}

/* =============================================
   HERO PARTICLES + CURSOR GLOW
============================================= */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__cursor-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 116, 74, 0.07) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* =============================================
   HERO VIDEO
============================================= */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero__video.is-loaded { opacity: 1; }

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,14,31,0.76) 0%,
    rgba(10,14,31,0.44) 28%,
    rgba(10,14,31,0.34) 52%,
    rgba(10,14,31,0.64) 78%,
    rgba(10,14,31,0.95) 100%
  );
  z-index: 0;
  pointer-events: none;
}


/* =============================================
   CAROUSEL — PROBLEMA
============================================= */
.problema-carousel {
  position: relative;
  margin-top: 16px;
}

.problema-carousel__viewport {
  overflow: hidden;
  border-radius: 8px;
}

.problema-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 300px;
  background: var(--indigo);
}

.carousel-slide__visual {
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 0.5px solid rgba(26, 40, 71, 0.8);
}

.carousel-slide__visual svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.carousel-slide__visual--media {
  padding: 0;
  overflow: hidden;
}

.carousel-slide__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide__content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.carousel-slide__content .pain-card__num {
  font-size: var(--fs-ui);
  letter-spacing: 3px;
  color: var(--copper);
}

.carousel-slide__content .pain-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-subhead);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.carousel-slide__content .pain-card__desc {
  font-size: var(--fs-base);
  color: var(--sand);
  line-height: 1.7;
  max-width: 400px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0 8px;
}

.carousel-btn {
  background: none;
  border: 0.5px solid var(--indigo);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184, 116, 74, 0.08);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  border: 0.5px solid var(--dim);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.carousel-dot--active {
  background: var(--copper);
  border-color: var(--copper);
  transform: scale(1.4);
}

.carousel-progress-bar {
  height: 1px;
  background: var(--indigo);
  margin-top: 4px;
  border-radius: 1px;
  overflow: hidden;
}

.carousel-progress-bar__fill {
  height: 100%;
  background: var(--copper);
  width: 0%;
  transition: width linear;
  border-radius: 1px;
}

/* =============================================
   SERVICIOS — DETAILED BLOCKS
============================================= */
.servicio {
  padding: 20px 28px;
}

.servicio__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.servicio__num {
  font-size: var(--fs-md);
  letter-spacing: 3px;
  color: var(--copper);
}

.servicio__tag {
  font-size: var(--fs-md);
  letter-spacing: 3px;
  color: var(--muted);
}

.servicio__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.servicio--flip .servicio__body {
  grid-template-columns: 1fr 1fr;
}

.servicio--flip .servicio__visual { order: -1; }

.servicio__title {
  font-family: var(--f-display);
  font-size: clamp(16px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.servicio__title em { font-style: italic; color: var(--copper); }

.servicio__desc {
  font-size: var(--fs-lg);
  color: var(--sand);
  line-height: 1.5;
  margin-bottom: 18px;
}

.servicio__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.servicio__features li {
  padding-left: 20px;
  position: relative;
}

.servicio__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: var(--fs-ui);
  top: 3px;
}

.servicio__features strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--bone);
  margin-bottom: 3px;
}

.servicio__features span {
  font-size: var(--fs-ui-lg);
  color: var(--muted);
  line-height: 1.6;
}

.servicio__media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--night);
  align-self: stretch;
}

.servicio__media svg {
  display: block;
  width: 100%;
  height: auto;
}

.servicio__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-rule {
  margin: 0;
}

/* =============================================
   DIAGNÓSTICO — schema cards
============================================= */
.diag-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.diag-intro > * { min-width: 0; }

.diag-intro {
  margin-bottom: 18px;
  background-color: transparent;
}

.diag-intro .servicio__title,
.diag-intro .servicio__desc {
  margin-bottom: 0;
}

.diag-cards {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.diag-card {
  background: var(--night);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Infographic columns layout */
.diag-infog__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--indigo);
}


.diag-infog__circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(184, 116, 74, 0.35);
  background: rgba(184, 116, 74, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.diag-infog__circle svg {
  width: 44px;
  height: 44px;
}

.diag-infog__circle--result {
  width: 68px;
  height: 68px;
  margin-bottom: 0;
}

.diag-infog__circle--result svg {
  width: 36px;
  height: 36px;
}

.diag-card { transform-style: preserve-3d; }

.diag-card:hover { background: var(--night-card); }

/* Sheen de tilt 3D */
.diag-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}


.diag-card__n {
  font-size: var(--fs-xs);
  letter-spacing: 3px;
  color: var(--copper);
}

.diag-card__tag {
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  color: var(--muted);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.diag-card:hover .diag-card__tag {
  color: var(--bone);
  text-shadow: 0 0 8px rgba(240, 237, 229, 0.6), 0 0 18px rgba(184, 116, 74, 0.35);
}

.diag-card__desc {
  font-size: var(--fs-xs);
  color: var(--sand);
  line-height: 1.65;
  flex: 1;
}

/* =============================================
   SERVICIOS — Step Cards
============================================= */
.svc-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.svc-intro .servicio__title,
.svc-intro .servicio__desc { margin-bottom: 0; }

.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.svc-steps::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(184, 116, 74, 0.55) 0%,
    rgba(184, 116, 74, 0.18) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.svc-step {
  padding: 36px 28px 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.svc-step:last-child { border-right: none; }

.svc-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: 2;
}

.svc-step:hover::after { transform: scaleX(1); }
.svc-step:hover { background: rgba(26, 40, 71, 0.22); }

.svc-step__n {
  font-family: var(--f-mono);
  font-size: var(--fs-ui-xs);
  letter-spacing: 3px;
  color: var(--copper);
  opacity: 0.65;
  display: block;
  margin-bottom: 22px;
}

.svc-step__icon {
  width: 38px;
  height: 38px;
  display: block;
  margin-bottom: 22px;
}

.svc-step__label {
  font-family: var(--f-mono);
  font-size: var(--fs-ui-sm);
  letter-spacing: 2.5px;
  color: var(--bone);
  display: block;
  margin-bottom: 12px;
}

.svc-step__desc {
  font-size: var(--fs-sm);
  color: var(--sand);
  line-height: 1.75;
  opacity: 0.8;
}

.svc-step__wm {
  font-family: var(--f-display);
  font-size: 100px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -5px;
  color: rgba(184, 116, 74, 0.05);
  position: absolute;
  bottom: 0;
  right: 10px;
  pointer-events: none;
  user-select: none;
}

/* =============================================
   VIEWPORT SECTIONS — 100vh fit
============================================= */

#problema,
#servicios,
#programas {
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* ── PROBLEMA ─────────────────────────────── */
#problema .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 12px;
}

#problema .sec-label       { flex-shrink: 0; }
#problema .problema__intro { flex-shrink: 0; margin-bottom: 12px; }

.problema-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
}

.problema-carousel__viewport { flex: 1; min-height: 0; }
.carousel-slide               { height: 100%; }
.carousel-slide__visual       { height: 100%; }
.carousel-controls            { flex-shrink: 0; padding: 12px 0 4px; }
.carousel-progress-bar        { flex-shrink: 0; }

/* ── PROGRAMAS ────────────────────────────── */
#programas .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 12px;
}

#programas .sec-label          { flex-shrink: 0; }
#programas .programas__header  { flex-shrink: 0; margin-bottom: 14px; }
#programas .programas__grid    {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  align-items: stretch;
}
#programas .programa           { padding: 18px 18px 16px; height: 100%; }
#programas .programa__name     { font-size: var(--fs-4xl); margin-bottom: 10px; }
#programas .programa__rule     { margin-bottom: 12px; }
#programas .programa__features { margin-bottom: 14px; gap: 7px; }
#programas .programas__note    { flex-shrink: 0; padding: 6px 0; }

/* ── SERVICIOS ────────────────────────────── */
#servicios .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 12px;
}

#servicios .sec-label { flex-shrink: 0; }
#servicios .sec-title { flex-shrink: 0; margin-bottom: 12px; }

#servicios .svc-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#servicios .svc-nav { flex-shrink: 0; }

/* Reducir tamaños internos para que todo quepa en 100vh */
#servicios .svc-panel {
  flex: 1;
  overflow: visible;
  min-height: 0;
  padding: 20px 40px 20px;
}
#servicios .diag-intro         { margin-bottom: 12px; }
#servicios .servicio__title    { font-size: var(--fs-heading-xl); line-height: 1; margin-bottom: 10px; }
#servicios .servicio__desc     { font-size: var(--fs-lg); line-height: 1.55; margin-bottom: 0; }
#servicios .diag-card          { padding: 16px 16px 14px; }
#servicios .diag-infog__circle { width: 60px; height: 60px; margin-bottom: 6px; }
#servicios .diag-infog__circle svg { width: 32px; height: 32px; }

/* ── SCROLL SNAP — desktop only ─────────────── */
@media (min-width: 821px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero {
    scroll-snap-align: start;
  }

  #problema,
  #servicios,
  #programas {
    scroll-snap-align: end;
  }

  #proceso {
    scroll-snap-align: end;
  }
}

/* =============================================
   FOOTER LOGO IMAGE
============================================= */
.footer__logo-img {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer__social-link {
  color: var(--copper);
  transition: opacity 0.2s;
  text-decoration: none;
  font-family: var(--f-mono);
}

.footer__social-link:hover { opacity: 0.7; }

/* =============================================
   RESPONSIVE — TABLET (≤ 820px)
============================================= */
@media (max-width: 820px) {
  .estudio__layout { grid-template-columns: 200px 1fr; }

  .programas__grid {
    grid-template-columns: 1fr;
  }
  .programa:hover { transform: none; box-shadow: none; background: revert; }

  /* Servicios */
  .svc-nav { grid-template-columns: repeat(3, 1fr); gap: 0 1px; }
  .svc-tab { padding: 14px 12px 16px; }
  .svc-tab__n { margin-bottom: 6px; }
  .svc-tab__name { font-size: var(--fs-xs); letter-spacing: -0.02em; }
  .svc-panel { padding: 28px 24px 36px; }

  /* Diagnóstico infographic */
  .diag-intro { grid-template-columns: 1fr; gap: 12px; }
  .diag-infog__cols { grid-template-columns: repeat(2, 1fr); }

  /* Step Cards */
  .svc-intro { grid-template-columns: 1fr; gap: 12px; }
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-step { border-right: 1px solid rgba(255,255,255,0.05); }
  .svc-step:nth-child(even) { border-right: none; }
  .svc-step:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.05); }

  /* Programas — reset viewport-height */
  #programas                   { height: auto; overflow: visible; }
  #programas .programas__grid  { align-items: start; }
  #programas .programa         { height: auto; }

  /* Proceso — reset viewport-height */
  #proceso { height: auto; overflow: visible; }

  /* Estudio / CTA — reset viewport-height */
  #estudio  { height: auto; overflow: visible; padding: 40px 0; }
  #estudio .container { flex: none; display: block; }
  #contacto { height: auto; overflow: visible; padding: 40px 0; }
  #contacto .container { flex: none; display: block; }

  /* Carousel — reset heights fijadas por viewport-sections */
  .carousel-slide         { grid-template-columns: 1fr; min-height: auto; height: auto; }
  .carousel-slide__visual { min-height: 220px; height: auto; border-right: none; border-bottom: 0.5px solid rgba(26, 40, 71, 0.8); }
  .carousel-slide__content { overflow: hidden; padding: 28px 20px; }
  .problema-carousel__viewport { flex: none; min-height: 300px; width: 100%; max-width: 100%; overflow: hidden; }
  .problema-carousel__track    { max-width: 100%; }
  .problema-carousel          { flex: none; }
  #problema                   { height: auto; overflow: visible; }
  #problema .container        { overflow: visible; }

  .proceso__track {
    grid-template-columns: repeat(2, 1fr);
  }
  .proceso__col:nth-child(2) {
    border-right: none;
  }
  .proceso__col:nth-child(3),
  .proceso__col:nth-child(4) {
    border-top: 1px solid rgba(184, 116, 74, 0.12);
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
============================================= */
@media (max-width: 600px) {

  /* En mobile, las secciones usan altura dinámica (no fija)
     para evitar que el chrome del browser recorte el contenido */
  #problema,
  #servicios,
  #programas {
    height: auto;
    min-height: calc(100svh - var(--header-h));
    overflow: visible;
  }

  #proceso {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  #proceso .container { overflow: visible; padding-top: 16px; padding-bottom: 32px; }

  /* Cols siempre visibles en mobile (sin JS) */
  .proceso__col { opacity: 1 !important; transform: none !important; }
  .proceso__track { grid-template-columns: 1fr; margin-top: 20px; }
  .proceso__col {
    border-right: none !important;
    border-top: 1px solid rgba(184, 116, 74, 0.15);
    padding: 16px 0;
  }
  .proceso__col:nth-child(3),
  .proceso__col:nth-child(4) { border-top: 1px solid rgba(184, 116, 74, 0.15); }
  .proceso__index { font-size: clamp(36px, 10vw, 48px); margin-bottom: 8px; }
  .proceso__step-title { font-size: var(--fs-subhead-sm); margin-bottom: 8px; }
  .proceso__step-desc { font-size: var(--fs-xs); }

  #problema .container,
  #servicios .container,
  #programas .container { overflow: visible; }

  #programas .programas__grid { align-items: start; }
  #programas .programa        { height: auto; }

  #servicios .svc-wrapper { overflow: visible; }
  #servicios .svc-panel   { overflow-y: visible; flex: none; }
  #servicios .svc-panel   { padding: 20px 16px 24px; }


  /* Ocultar header al hacer scroll down (fuera del hero) */
  .site-header.header--hidden { transform: translateY(-100%); }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--night);
    flex-direction: column;
    gap: 0;
    padding: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
    border-bottom: 0.5px solid var(--indigo);
    z-index: 99;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__links li { border-top: 0.5px solid var(--indigo); }
  .nav__links a {
    display: block;
    padding: 18px var(--pad);
    font-size: var(--fs-base);
    letter-spacing: 0.5px;
  }
  .nav__links a::after { display: none; }

  /* Hero */
  .hero__body { padding-top: 60px; }
  .hero__video { object-position: center 68%; }
  .hero__sub br { display: none; }
  .hero__ctas { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Carousel mobile */
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-slide__visual { min-height: 200px; border-right: none; border-bottom: 0.5px solid rgba(26,40,71,0.8); }
  .carousel-slide__content { padding: 28px 20px; }

  /* Estudio */
  .estudio__layout { grid-template-columns: 1fr; align-items: start; }
  .estudio__identity { flex-direction: row; min-height: auto; border-radius: 6px; }
  .estudio__identity::before { width: 2.5px; height: auto; flex-shrink: 0; }
  .estudio__monogram { font-size: 56px; padding: 20px 20px 20px 24px; align-items: center; flex: none; }
  .estudio__identity-meta { border-top: none; border-left: 1px solid rgba(184, 116, 74, 0.15); padding: 20px; display: flex; flex-direction: column; justify-content: center; }

  /* CTA */
  .cta-final__buttons { flex-direction: column; align-items: center; gap: 12px; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  /* Tabs */
  .tab-btn { padding: 10px 16px; }
  .tab-btn__label { font-size: var(--fs-md); }
  .servicio { padding: 16px; }

  /* Cards horizontales en mobile */
  .diag-infog__cols { grid-template-columns: 1fr; }

  .diag-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: start;
    text-align: left;
    padding: 16px;
    gap: 4px 14px;
  }

  .diag-infog__circle {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    align-self: start;
    margin-top: 2px;
  }

  .diag-infog__circle svg { width: 26px; height: 26px; }

  .diag-card__n { display: none; }

  .diag-card__tag {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--fs-ui-xs);
    align-self: end;
    padding-bottom: 3px;
  }

  .diag-card__desc {
    grid-column: 2;
    grid-row: 2;
    font-size: var(--fs-xs);
    line-height: 1.5;
    align-self: start;
  }

  /* ── SCROLL SNAP — desactivado en mobile (secciones height:auto generan saltos) ── */
  html {
    scroll-snap-type: none;
  }

  .hero,
  #problema,
  #servicios,
  #programas {
    scroll-snap-align: none;
  }
}
