:root {
  --deep-blue: #101544;
  --deep-blue-dark: #0a0e2a;
  --off-white: #EEEDE9;
  --pink: #ECC7DD;
  --text-secondary: #4A5080;
  --text-tertiary: #8A90B0;
  --border-light: #D0D2DF;
  --border-dark: #2A3070;
  --surface-2: #E8E9F0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
  --gutter: clamp(24px, 5vw, 56px);
}

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

/* Protección global contra scroll horizontal en móvil.
   - overflow-x: hidden en html + body sella el scroll en iOS Safari, donde
     a veces el viewport (html) sigue desplazándose lateralmente aunque el
     body lo clipee.
   - max-width: 100% asegura que ni html ni body crezcan más que el viewport
     por culpa de un descendiente desbordado.
   - max-width:100% en media (img/svg/video/iframe) evita que un asset con
     intrinsic width grande agrande el contenedor.
   No hay elementos sticky en la web (solo nav fixed), así que poner
   overflow-x en html no rompe sticky positioning. */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }

/* background-color: deep-blue para que, si en algún rubber-band scroll queda
   un resquicio arriba antes del hero, se vea el azul del nav y no blanco.
   overscroll-behavior-y: none mata el rebote elástico arriba/abajo. */
html {
  scroll-behavior: smooth;
  background-color: #101544;
  overscroll-behavior-y: none;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--deep-blue);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-top: 72px;
  font-feature-settings: "ss01", "cv11";
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
::selection { background: var(--pink); color: var(--deep-blue); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
a { color: inherit; }

/* ==================== NAV ==================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #101544;
  /* En lugar de border-bottom: con box-shadow evitamos la hendidura sub-píxel
     en pantallas HiDPI por la que se colaba el off-white del body. */
  border-bottom: none;
  box-shadow: 0 1px 0 #2A3070;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo img {
  width: 120px;
  height: auto;
  display: block;
}

.nav-logo {
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  width: 100px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #EEEDE9;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.005em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover {
  color: #ECC7DD;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid #EEEDE9;
  color: #EEEDE9;
  background: transparent;
  padding: 9px 18px !important;
  border-radius: 6px;
  font-size: 13px !important;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-cta:hover {
  background: #EEEDE9;
  color: #101544;
}

/* ==================== NAV DROPDOWN (Servicios) ==================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #101544;
  border: 1px solid #2A3070;
  border-radius: 8px;
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.nav-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
  gap: 2px;
}

.nav-submenu-item:hover {
  background: #1C2560;
}

.nav-submenu-item::after { content: none !important; }

.nav-submenu-item .submenu-label {
  font-size: 14px;
  font-weight: 500;
  color: #EEEDE9;
  font-family: inherit;
}

.nav-submenu-item .submenu-desc {
  font-size: 12px;
  color: #8A90B0;
  font-family: inherit;
}

/* ==================== TYPOGRAPHY ==================== */
.display, h1, h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.h-section {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-block;
}
.eyebrow-on-blue { color: rgba(238, 237, 233, 0.55); }
p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 64ch;
}
p.body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 62ch;
}
.on-blue p.lead, .on-blue p.body { color: rgba(238, 237, 233, 0.78); }

/* ==================== SECTIONS ==================== */
section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  overflow: clip;
}
.container { max-width: var(--max-width); margin: 0 auto; position: relative; }
.section-light { background: var(--off-white); color: var(--deep-blue); }
.section-dark { background: var(--deep-blue); color: var(--off-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--off-white); }

/* Decorative parallax shapes */
.deco { position: absolute; pointer-events: none; z-index: 0; will-change: transform; }
.deco-circle {
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.18;
}
.section-light .deco-circle { border-color: var(--border-light); }
.section-dark .deco-circle { border-color: var(--border-dark); opacity: 0.55; }
.deco-letter {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(280px, 40vw, 620px);
  line-height: 0.8;
  opacity: 0.05;
  user-select: none;
}

/* ==================== HOME HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(100px, 12vh, 140px) var(--gutter) 48px;
  position: relative;
  overflow: clip;
  /* Fallback: si la imagen tarda o falla, se ve el azul de marca y no el
     off-white del body que se colaba a través del overlay ::before (82%). */
  background-color: #101544;
  background-image: url('assets/web/Proyectos/Padel Courts Deluxe/hero-home.webp');
  background-size: cover;
  background-position: center center;
}
.hero-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 68, 0.82);
  z-index: 1;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero-photo-credit {
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-size: 11px;
  color: rgba(238, 237, 233, 0.4);
  letter-spacing: 0.02em;
  z-index: 2;
  max-width: 60%;
  text-align: right;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .hero-photo-credit {
    font-size: 10px;
    line-height: 1.4;
    max-width: calc(100% - 32px);
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: right;
  }
}
.hero .deco-letter { position: absolute; bottom: -16vw; right: -6vw; color: var(--off-white); z-index: 0; }
.hero .deco-circle { top: 16vh; right: -240px; z-index: 0; }
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  color: rgba(238, 237, 233, 0.65);
  z-index: 2;
  position: relative;
}
.hero-meta .meta-right {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-meta .meta-right::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: clamp(48px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 28ch;
  color: var(--off-white);
  position: relative;
  z-index: 2;
}
.hero h1 em { font-style: italic; color: var(--off-white); font-weight: 500; }
.hero h1 .dim { color: var(--text-tertiary); font-style: normal; font-weight: 500; }
.hero-foot {
  z-index: 2;
  position: relative;
}
.hero p.lead {
  color: rgba(238, 237, 233, 0.78);
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  margin: 0 0 48px 0;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
@media (max-width: 768px) {
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .hero-cta-row > * { width: auto; }
}
.btn-secondary-hero {
  background: transparent;
  border: 1px solid var(--off-white);
  color: var(--off-white);
  padding: 16px 26px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}
.btn-secondary-hero:hover { opacity: 0.85; }

/* ==================== PAGE HERO (inner pages) ==================== */
.page-hero {
  padding: clamp(140px, 20vh, 220px) var(--gutter) clamp(80px, 12vh, 120px);
  position: relative;
  overflow: clip;
}
.page-hero .breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.page-hero.section-dark .breadcrumb { color: rgba(238, 237, 233, 0.55); }
.page-hero .breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.page-hero .breadcrumb a:hover { opacity: 1; }
.page-hero .breadcrumb .sep { opacity: 0.4; }
.page-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  max-width: 16ch;
  position: relative;
  z-index: 2;
}
.page-hero h1 em { font-style: italic; color: inherit; }
.page-hero .lead { max-width: 60ch; position: relative; z-index: 2; }
.page-hero.section-dark .lead { color: rgba(238, 237, 233, 0.78); }
.page-hero .deco-letter { position: absolute; bottom: -12vw; right: -6vw; z-index: 0; }
.page-hero.section-dark .deco-letter { color: var(--off-white); }
.page-hero.section-light .deco-letter { color: var(--border-light); opacity: 0.5; }
.page-hero .deco-circle { top: 16vh; right: -260px; z-index: 0; }

/* ==================== CTA buttons ==================== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--off-white);
  color: var(--deep-blue);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid var(--off-white);
  white-space: nowrap;
}
.cta .arrow { transition: transform 0.4s var(--ease); display: inline-block; }
.cta:hover { transform: translateY(-2px); background: var(--pink); border-color: var(--pink); }
.cta:hover .arrow { transform: translateX(4px); }
.cta-outline {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(238, 237, 233, 0.32);
}
.cta-outline:hover { background: var(--pink); border-color: var(--pink); color: var(--deep-blue); }
.cta-on-light {
  background: var(--deep-blue);
  color: var(--off-white);
  border-color: var(--deep-blue);
}
.cta-on-light:hover { background: var(--pink); border-color: var(--pink); color: var(--deep-blue); }
.cta-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease), color 0.4s var(--ease);
}
.cta-text:hover { gap: 16px; color: var(--pink); }

/* ==================== STAGGER REVEAL ==================== */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.reveal-word.in > span { transform: translateY(0); opacity: 1; }
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.fade-in.in { opacity: 1; transform: translateY(0); }
.scale-in {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.scale-in.in { opacity: 1; transform: scale(1); }

/* ==================== SECTION HEADER ==================== */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: clamp(56px, 8vw, 96px);
  align-items: start;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head .index {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.section-dark .section-head .index {
  color: rgba(238, 237, 233, 0.55);
  border-top-color: rgba(238, 237, 233, 0.18);
}
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head .head-after { margin-top: 24px; max-width: 56ch; }

/* ==================== PROBLEMA ==================== */
.problema { padding-bottom: clamp(48px, 6vw, 72px); }
.problema .deco-circle { top: 30%; left: -260px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px);
  margin-bottom: 64px;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }
.problem-card { border-top: 1px solid var(--border-light); padding-top: 28px; }
.problem-card .problem-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
  display: block;
}
.problem-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.problem-card p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; }
.problem-card .result {
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--deep-blue);
  font-weight: 500;
  line-height: 1.5;
}

/* ==================== COMPARE ==================== */
.compare { margin-bottom: 96px; }
.compare-header {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.compare-header .lbl-other {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.compare-header .vs {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 18px; text-align: center; color: var(--text-tertiary);
}
.compare-header .lbl-flode {
  font-family: 'Instrument Serif', serif;
  font-size: 32px; line-height: 1;
  color: var(--deep-blue); letter-spacing: -0.01em;
}
.compare-header .lbl-flode .dot { color: var(--pink); }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
  gap: 16px;
  transition: background 0.4s var(--ease);
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(232, 233, 240, 0.5); }
.compare-row .other { color: var(--text-tertiary); font-size: 15px; line-height: 1.55; }
.compare-row .sep { text-align: center; color: var(--border-light); font-size: 14px; }
.compare-row .flode { color: var(--deep-blue); font-size: 15.5px; font-weight: 500; line-height: 1.55; }
@media (max-width: 720px) {
  .compare-header, .compare-row { grid-template-columns: 1fr; }
  .compare-header .vs, .compare-row .sep { display: none; }
  .compare-header .lbl-other, .compare-header .lbl-flode { margin-bottom: 8px; }
  .compare-row .other { padding-bottom: 8px; }
}

/* ==================== PULL QUOTE ==================== */
.pull-quote {
  border-left: 2px solid var(--border-dark);
  padding: 8px 0 8px 28px;
  max-width: 56ch;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.22;
  color: var(--deep-blue);
  margin-top: 40px;
  letter-spacing: -0.01em;
}
.pull-quote.on-blue { color: var(--off-white); border-color: rgba(236, 199, 221, 0.4); }
.pull-quote.pink-border { border-color: var(--pink); border-width: 3px; }

/* ==================== METODO ==================== */
.metodo .deco-letter { top: 8%; left: -8vw; color: var(--border-light); }
.metodo .intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .metodo .intro-grid { grid-template-columns: 1fr; gap: 32px; } }
.metodo .intro-text strong { color: var(--deep-blue); font-weight: 500; display: block; margin-bottom: 14px; font-size: 17px; }

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 4vw, 72px) clamp(48px, 5vw, 80px);
  margin-bottom: 64px;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  position: relative;
  transition: padding-left 0.5s var(--ease);
}
.step:hover { padding-left: 8px; }
.step .num {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.2em; margin-bottom: 18px;
  display: block; text-transform: uppercase;
}
.step h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.step p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; }
.step .entregable {
  font-size: 14px; line-height: 1.55;
  color: var(--deep-blue);
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.step .entregable strong { font-weight: 600; }

/* ==================== DIAGNOSTIC ISLAND ==================== */
.diagnostic-island {
  background: var(--deep-blue);
  color: var(--off-white);
  border-radius: 28px;
  padding: clamp(48px, 6vw, 96px);
  border: 2px solid var(--pink);
  position: relative;
  overflow: hidden;
}
.diagnostic-island .deco-circle {
  border-color: rgba(236, 199, 221, 0.18);
  width: 380px; height: 380px;
  top: -140px; right: -140px;
  opacity: 1;
}
.diagnostic-island .island-eyebrow {
  color: var(--pink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 28px;
}
.diagnostic-island h2,
.diagnostic-island h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
  max-width: 22ch;
}
.diagnostic-island h2 em,
.diagnostic-island h3 em { font-style: italic; color: var(--off-white); font-weight: 400; }
.diagnostic-island p.lead { color: rgba(238, 237, 233, 0.78); margin-bottom: 40px; max-width: 60ch; }
.diagnostic-list {
  list-style: none; margin-bottom: 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 40px; max-width: 760px;
}
@media (max-width: 720px) { .diagnostic-list { grid-template-columns: 1fr; } }
.diagnostic-list li {
  padding-left: 22px; position: relative;
  color: rgba(238, 237, 233, 0.85);
  font-size: 15.5px; line-height: 1.55;
}
.diagnostic-list li::before {
  content: ''; position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
}
.diagnostic-island .closing { font-size: 15.5px; color: rgba(238, 237, 233, 0.78); margin-bottom: 36px; max-width: 60ch; }
.diagnostic-island .closing strong { color: var(--off-white); font-weight: 500; }

/* ==================== CASES (home featured stories) ==================== */
.casos .intro p + p { margin-top: 16px; }
.case {
  padding: clamp(56px, 6vw, 96px) 0;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  transition: padding-left 0.5s var(--ease);
}
.case:last-of-type { border-bottom: 1px solid var(--border-light); }
.case-head {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .case-head { grid-template-columns: 1fr; gap: 16px; } }
.case-meta .case-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-block; margin-bottom: 10px;
}
.case-meta .case-tag.pink {
  background: var(--pink); color: var(--deep-blue);
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.14em;
}
.case-meta h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05; font-weight: 400;
  color: var(--deep-blue); margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.case-meta .case-discipline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
}
.case-stat { text-align: right; min-width: 200px; }
.case-stat .stat-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  color: var(--deep-blue);
  letter-spacing: -0.025em;
  display: block; margin-bottom: 4px;
}
.case-stat .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
}
@media (max-width: 880px) { .case-stat { text-align: left; } }
.case-body-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 880px) { .case-body-grid { grid-template-columns: 1fr; gap: 32px; } }
.case-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.3; max-width: 28ch;
  font-weight: 400; color: var(--deep-blue);
  letter-spacing: -0.005em;
}
.case-detail .case-block-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px; display: block;
}
.case-detail .decisions { list-style: none; margin-bottom: 36px; }
.case-detail .decisions li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  color: var(--text-secondary);
  font-size: 15.5px; line-height: 1.5;
}
.case-detail .decisions li:first-child { padding-top: 0; }
.case-detail .decisions li:first-child::before { top: 7px; }
.case-detail .decisions li::before {
  content: ''; position: absolute;
  left: 0; top: 22px;
  width: 14px; height: 1px;
  background: var(--text-tertiary);
}
.case-detail .decisions li:last-child { border-bottom: none; }
.case-result {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
}
.case-result .res-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18; color: var(--deep-blue);
  margin-bottom: 12px; letter-spacing: -0.012em;
}
.case-result p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.case-result p + p { margin-top: 6px; }
.case-quote {
  border-left: 1.5px solid var(--border-light);
  padding: 4px 0 4px 22px;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  color: var(--deep-blue);
  max-width: 60ch;
}

.counter { display: inline-block; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ==================== PARA QUIÉN ==================== */
.para-quien .deco-circle { bottom: 10%; right: -200px; }
.quien-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 64px;
}
@media (max-width: 880px) { .quien-grid { grid-template-columns: 1fr; gap: 56px; } }
.quien-col h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  margin-bottom: 32px;
  color: var(--off-white);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.quien-col h3 em { font-style: italic; }
.quien-list { list-style: none; }
.quien-list li {
  padding: 22px 0 22px 28px;
  border-top: 1px solid rgba(238, 237, 233, 0.14);
  position: relative;
}
.quien-list li:last-child { border-bottom: 1px solid rgba(238, 237, 233, 0.14); }
.quien-list li .label {
  color: var(--off-white);
  font-weight: 500;
  font-size: 15.5px; line-height: 1.45;
  margin-bottom: 6px;
}
.quien-list li .sub {
  color: rgba(238, 237, 233, 0.6);
  font-size: 14.5px; line-height: 1.5;
}
.quien-list.si li::before {
  content: ''; position: absolute;
  left: 0; top: 30px;
  width: 10px; height: 10px;
  background: var(--pink);
  border-radius: 50%;
}
.quien-list.no li::before {
  content: ''; position: absolute;
  left: 0; top: 33px;
  width: 14px; height: 1px;
  background: rgba(238, 237, 233, 0.35);
}

.como-trabajamos {
  border-top: 1px solid rgba(238, 237, 233, 0.14);
  padding-top: 56px;
  margin-bottom: 64px;
}
.como-trabajamos .label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(238, 237, 233, 0.5);
  margin-bottom: 24px; display: block;
}
.como-trabajamos .pasos {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
  color: var(--off-white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.como-trabajamos .pasos span { color: var(--pink); font-style: italic; }
.como-trabajamos p { color: rgba(238, 237, 233, 0.72); max-width: 56ch; font-size: 15.5px; }

/* Para quién — contacto (light bg, compact) */
.para-quien-contacto .pq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 40px;
}
@media (max-width: 880px) { .para-quien-contacto .pq-grid { grid-template-columns: 1fr; gap: 40px; } }
.para-quien-contacto .pq-col h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--deep-blue);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.para-quien-contacto .pq-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.para-quien-contacto .pq-col li {
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--border-light);
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--deep-blue);
}
.para-quien-contacto .pq-col li:last-child { border-bottom: 1px solid var(--border-light); }
.para-quien-contacto .pq-si li::before {
  content: ''; position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
}
.para-quien-contacto .pq-no li::before {
  content: ''; position: absolute;
  left: 0; top: 25px;
  width: 12px; height: 1px;
  background: var(--text-tertiary);
}
.para-quien-contacto .pq-cierre {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--deep-blue);
  text-align: center;
  margin-top: 24px;
}

/* Servicio intro — párrafo único integrado al sistema */
.servicio-intro {
  max-width: 64ch;
  margin: 0 auto;
}
.servicio-intro p {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--deep-blue);
  letter-spacing: -0.012em;
}

/* ==================== TESTIMONIOS ==================== */
.testimonios h2 em { font-style: italic; color: var(--text-secondary); }
.testimonios .footnote {
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-bottom: 64px;
}
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 48px);
  margin-bottom: 64px;
}
@media (max-width: 880px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--surface-2);
  border-radius: 22px;
  padding: clamp(32px, 3.5vw, 48px);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.testi-card:hover { transform: translateY(-4px); background: #DFE0EA; }
.testi-card .quote-mark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 64px; line-height: 0.6;
  color: var(--pink);
  margin-bottom: 16px; display: block;
}
.testi-card blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  color: var(--deep-blue);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.testi-card .author { border-top: 1px solid var(--border-light); padding-top: 18px; }
.testi-card .author .name { font-weight: 600; font-size: 14.5px; color: var(--deep-blue); margin-bottom: 2px; }
.testi-card .author .org { font-size: 13.5px; color: var(--text-secondary); }

/* ==================== CTA FINAL ==================== */
.cta-final { overflow: clip; }
.cta-final .container { max-width: 1080px; }
.cta-final h2 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  max-width: 16ch;
}
.cta-final h2 em { font-style: italic; color: inherit; }
.cta-final p.lead { color: rgba(238, 237, 233, 0.78); margin-bottom: 48px; max-width: 60ch; }
.cta-final .pull {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.2;
  color: var(--off-white);
  border-left: 2px solid var(--pink);
  padding: 6px 0 6px 28px;
  margin-bottom: 56px;
  max-width: 56ch;
  letter-spacing: -0.012em;
}
.cta-final .footnote {
  margin-top: 56px;
  font-style: italic;
  font-size: 14px;
  color: rgba(238, 237, 233, 0.55);
  max-width: 60ch;
  line-height: 1.55;
}
.cta-final .deco-letter { bottom: -12vw; right: -8vw; color: var(--off-white); }
.cta-final .deco-circle { top: -200px; left: -200px; }

/* ==================== FORM ==================== */
.form-wrap { max-width: 720px; }
.form-wrap.wide { max-width: 880px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.section-dark .field label { color: rgba(238, 237, 233, 0.55); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--deep-blue);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(236, 199, 221, 0.05);
}
.field textarea { min-height: 140px; resize: vertical; }
.section-dark .field input, .section-dark .field textarea, .section-dark .field select {
  border-color: rgba(238, 237, 233, 0.18);
  color: var(--off-white);
}
.section-dark .field input::placeholder, .section-dark .field textarea::placeholder { color: rgba(238, 237, 233, 0.3); }
.section-dark .field input:focus, .section-dark .field textarea:focus, .section-dark .field select:focus {
  background: rgba(236, 199, 221, 0.06);
}
.field-options {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.field-options label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
  font-weight: 400;
}
.section-dark .field-options label { border-color: rgba(238, 237, 233, 0.18); color: rgba(238, 237, 233, 0.78); }
.field-options input { display: none; }
.field-options label:has(input:checked) {
  border-color: var(--pink);
  background: rgba(236, 199, 221, 0.18);
  color: var(--deep-blue);
}
.section-dark .field-options label:has(input:checked) { color: var(--pink); }
.form-submit { margin-top: 32px; }
.form-note {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-top: 24px;
  font-style: italic;
}
.section-dark .form-note { color: rgba(238, 237, 233, 0.5); }

/* ==================== FAQ ==================== */
.faq {
  display: block;
}
.faq-item {
  border-top: 1px solid var(--border-light);
}
.faq-item:last-child { border-bottom: 1px solid var(--border-light); }
.section-dark .faq-item { border-color: rgba(238, 237, 233, 0.14); }
.faq-q {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.012em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-weight: 400;
  padding: 28px 0;
  list-style: none;
  line-height: 1.2;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.section-dark .faq-q::after { color: rgba(238, 237, 233, 0.55); }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 65ch;
  padding-bottom: 32px;
}
.section-dark .faq-a { color: rgba(238, 237, 233, 0.7); }

/* ==================== VALUE GRID (for manifesto, diagnostico) ==================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 3.5vw, 64px);
}
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr; } }
.value-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .value-grid.cols-2 { grid-template-columns: 1fr; } }
.value-card { border-top: 1px solid var(--border-light); padding-top: 32px; }
.section-dark .value-card { border-top-color: rgba(238, 237, 233, 0.18); }
.value-card .v-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px; display: block;
}
.section-dark .value-card .v-num { color: rgba(238, 237, 233, 0.55); }
.value-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.value-card p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.55; max-width: 38ch; }
.section-dark .value-card p { color: rgba(238, 237, 233, 0.7); }

/* ==================== BIG STAT (case detail) ==================== */
.big-stat {
  text-align: center;
  padding: clamp(56px, 8vw, 120px) 0;
}
.big-stat .v {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: block;
  color: var(--deep-blue);
}
.section-dark .big-stat .v { color: var(--off-white); }
.big-stat .l {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 20px; display: block;
}
.section-dark .big-stat .l { color: rgba(238, 237, 233, 0.55); }

/* ==================== CASES GALLERY (casos.html) ==================== */
.cases-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 720px) { .cases-gallery { grid-template-columns: 1fr; } }
.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  transition: background 0.4s var(--ease);
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gallery-card:nth-child(2n) { border-right: none; }
@media (max-width: 720px) { .gallery-card { border-right: none !important; } }

/* casos.html — CTA puente intermedio dentro del grid:
   al introducir un grid item full-width, la paridad de nth-child se desplaza.
   Estas reglas restablecen el border-right correcto de cada columna. */
.cases-gallery .cta-puente ~ .gallery-card { border-right: 1px solid var(--border-light); }
.cases-gallery .cta-puente ~ .gallery-card:nth-child(2n+1) { border-right: none; }
.cases-gallery > .gallery-card:last-child { border-right: none; }
.gallery-card:hover { background: rgba(232, 233, 240, 0.4); }
.gallery-card:hover .gc-arrow { transform: translate(8px, -8px); }
.gallery-card .gc-stat {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  display: block;
  color: var(--deep-blue);
}
.gallery-card .gc-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 4px;
  line-height: 1.05;
}
.gallery-card .gc-disc {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.gallery-card .gc-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 12px;
}
.gallery-card .gc-arrow {
  position: absolute;
  top: clamp(40px, 4vw, 64px);
  right: clamp(40px, 4vw, 64px);
  font-size: 20px;
  color: var(--deep-blue);
  transition: transform 0.4s var(--ease);
  font-family: 'Inter', sans-serif;
}

/* ==================== CASE DETAIL PAGE ==================== */
.case-hero { padding: clamp(140px, 20vh, 220px) var(--gutter) clamp(60px, 8vh, 100px); position: relative; overflow: clip; }
.case-hero .breadcrumb {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 32px; color: rgba(238, 237, 233, 0.55);
  position: relative; z-index: 2;
}
.case-hero .breadcrumb a { color: inherit; text-decoration: none; opacity: 0.75; transition: opacity 0.3s var(--ease); }
.case-hero .breadcrumb a:hover { opacity: 1; }
.case-hero .breadcrumb .sep { opacity: 0.4; }
.case-hero .case-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
  position: relative; z-index: 2;
}
@media (max-width: 720px) { .case-hero .case-title-row { grid-template-columns: 1fr; gap: 16px; } }
.case-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.case-hero .case-discipline-large {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--pink);
  white-space: nowrap;
}
.case-hero .case-tag-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(238, 237, 233, 0.65);
  position: relative; z-index: 2;
  padding-top: 28px;
  border-top: 1px solid rgba(238, 237, 233, 0.18);
}
.case-hero .case-tag-row > div .lbl { color: rgba(238, 237, 233, 0.4); display: block; margin-bottom: 6px; font-size: 11px; }
.case-hero .case-tag-row > div .val { color: var(--off-white); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.case-hero .deco-letter { position: absolute; bottom: -12vw; right: -6vw; color: var(--off-white); z-index: 0; }
.case-hero .deco-circle { top: 16vh; right: -260px; z-index: 0; }

.case-section { padding: clamp(80px, 12vw, 140px) var(--gutter); }
.case-section .container { max-width: 980px; }
.case-section h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 32px;
  max-width: 22ch;
}
.case-section .lead { margin-bottom: 32px; max-width: 60ch; }
.case-section .body-text p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.65; max-width: 60ch; margin-bottom: 18px; }
.section-dark.case-section .body-text p { color: rgba(238, 237, 233, 0.78); }

.decision-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 40px;
}
.decision-list li {
  padding: 28px 0 28px 56px;
  border-top: 1px solid var(--border-light);
  position: relative;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--deep-blue);
  line-height: 1.4;
  font-weight: 500;
}
.section-dark .decision-list li { border-top-color: rgba(238, 237, 233, 0.14); color: var(--off-white); }
.decision-list li:last-child { border-bottom: 1px solid var(--border-light); }
.section-dark .decision-list li:last-child { border-bottom-color: rgba(238, 237, 233, 0.14); }
.decision-list li::before {
  content: counter(decisions, decimal-leading-zero);
  counter-increment: decisions;
  position: absolute;
  left: 0; top: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
}
.section-dark .decision-list li::before { color: rgba(238, 237, 233, 0.5); }
.decision-list { counter-reset: decisions; }

/* ==================== NEXT/PREV NAV ==================== */
.next-prev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-light);
}
.section-dark .next-prev { border-color: rgba(238, 237, 233, 0.14); }
.np-link {
  padding: 48px var(--gutter);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.4s var(--ease);
  border-right: 1px solid var(--border-light);
}
.np-link:last-child { border-right: none; }
.section-dark .np-link { border-right-color: rgba(238, 237, 233, 0.14); }
.np-link:hover { background: rgba(232, 233, 240, 0.5); }
.section-dark .np-link:hover { background: rgba(238, 237, 233, 0.04); }
.np-link .np-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: block;
}
.section-dark .np-link .np-label { color: rgba(238, 237, 233, 0.55); }
.np-link .np-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.np-link.next { text-align: right; }

/* ==================== MANIFESTO BIG QUOTE ==================== */
.manifesto-quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote em { font-style: italic; color: inherit; }

/* ==================== BELIEFS list (manifesto) ==================== */
.beliefs {
  list-style: none;
  counter-reset: beliefs;
}
.beliefs li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  align-items: start;
}
.beliefs li:last-child { border-bottom: 1px solid var(--border-light); }
.section-dark .beliefs li { border-top-color: rgba(238, 237, 233, 0.14); }
.section-dark .beliefs li:last-child { border-bottom-color: rgba(238, 237, 233, 0.14); }
@media (max-width: 720px) { .beliefs li { grid-template-columns: 1fr; gap: 12px; } }
.beliefs li::before {
  counter-increment: beliefs;
  content: counter(beliefs, decimal-leading-zero);
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  padding-top: 8px;
}
.section-dark .beliefs li::before { color: rgba(238, 237, 233, 0.55); }
.beliefs li .b-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.beliefs li .b-text {
  color: var(--text-secondary);
  font-size: 16px; line-height: 1.6;
  max-width: 56ch;
}
.section-dark .beliefs li .b-text { color: rgba(238, 237, 233, 0.72); }

/* ==================== CONTACT LARGE LINK ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-block .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(238, 237, 233, 0.55);
  margin-bottom: 16px;
  display: block;
}
.contact-block .big-link {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--off-white);
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s var(--ease);
}
.contact-block .big-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: rgba(238, 237, 233, 0.3);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.contact-block .big-link:hover { color: var(--pink); }
.contact-block .big-link:hover::after { transform: scaleX(1); background: var(--pink); }
.contact-block p { color: rgba(238, 237, 233, 0.7); font-size: 15.5px; line-height: 1.6; max-width: 36ch; margin-top: 24px; }

/* ==================== PROCESS STEPS (diagnostico) ==================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-light);
}
.section-dark .process-steps { border-top-color: rgba(238, 237, 233, 0.18); }
@media (max-width: 880px) { .process-steps { grid-template-columns: 1fr; } }
.process-step {
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--border-light);
  position: relative;
}
.section-dark .process-step { border-right-color: rgba(238, 237, 233, 0.18); }
.process-step:last-child { border-right: none; }
@media (max-width: 880px) {
  .process-step { border-right: none; border-bottom: 1px solid var(--border-light); }
  .section-dark .process-step { border-bottom-color: rgba(238, 237, 233, 0.18); }
  .process-step:last-child { border-bottom: none; }
}
.process-step .ps-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: #D0D2DF;
  display: block;
  margin-bottom: 24px;
}
.process-step h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.section-dark .process-step h3 { color: var(--off-white); }
.process-step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 36ch;
}
.section-dark .process-step p { color: rgba(238, 237, 233, 0.72); }

/* ==================== FOOTER ==================== */
footer {
  background: #101544;
  color: #8A90B0;
  padding: 80px var(--gutter) 48px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { margin-bottom: 56px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 237, 233, 0.4);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { font-size: 14px; line-height: 2; }
.footer-col a { text-decoration: none; transition: color 0.3s var(--ease); }
.footer-col-nav li, .footer-col-nav a { color: #EEEDE9; }
.footer-col-services li, .footer-col-services a { color: #8A90B0; }
.footer-col-contact li, .footer-col-contact a { color: #8A90B0; }
.footer-col a:hover { color: var(--pink); }
.footer-col .placeholder-tag { color: #ECC7DD; font-style: italic; }
.footer-bottom {
  border-top: 1px solid #2A3070;
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #8A90B0;
}

/* ==================== SERVICES GRID 2x2 ==================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--off-white);
  padding: clamp(48px, 5vw, 80px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  position: relative;
  min-height: 420px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  outline: 1px solid transparent;
  outline-offset: -1px;
}
.service-card:hover {
  background: #F4F3EF;
  outline-color: var(--deep-blue);
  z-index: 1;
}
.service-card .sc-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  display: block;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
  font-weight: 400;
}
.service-card:hover .sc-arrow { color: var(--pink); transform: translateX(8px); }
.service-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
  color: var(--deep-blue);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 42ch;
}
.service-card .sc-list {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 36px;
  display: block;
}
.service-card .sc-list span { color: var(--pink); margin: 0 10px; }
.service-card .sc-cta {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--deep-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--deep-blue);
  align-self: flex-start;
  transition: gap 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card:hover .sc-cta { gap: 16px; color: var(--pink); border-bottom-color: var(--pink); }

/* ==================== SIDE BLOCKS ==================== */
.side-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 880px) { .side-blocks { grid-template-columns: 1fr; gap: 48px; } }
.side-block { border-top: 1px solid var(--border-light); padding-top: 32px; }
.section-dark .side-block { border-top-color: rgba(238, 237, 233, 0.18); }
.side-block .sb-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px; display: block;
}
.section-dark .side-block .sb-num { color: rgba(238, 237, 233, 0.55); }
.side-block h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
}
.side-block p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.section-dark .side-block p { color: rgba(238, 237, 233, 0.72); }

/* ==================== PLATFORM CARD (services detail) ==================== */
.platform-card .v-disc {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--pink);
  margin-bottom: 6px;
  display: block;
  line-height: 1.2;
}

/* ==================== RESULT CARD (with prev-flode footnote) ==================== */
.result-card { border-top: 1px solid var(--border-light); padding-top: 32px; }
.result-card .r-stat {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
  color: var(--deep-blue);
  display: block;
}
.result-card .r-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px; display: block;
}
.result-card p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.55; max-width: 38ch; }
.result-card .r-foot {
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 20px;
}

/* ==================== MICRO-LINE (Si no, todavía no) ==================== */
.cta-final .micro-line {
  margin-top: 28px;
  font-style: italic;
  font-size: 14px;
  color: rgba(238, 237, 233, 0.5);
}

/* ==================== IMAGES + CREDITS ==================== */
.image-credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  color: rgba(238, 237, 233, 0.6);
  padding: 4px 8px;
  letter-spacing: 0.04em;
  z-index: 3;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Case body with image (index.html cases) */
.case-body-with-image {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .case-body-with-image { grid-template-columns: 1fr; } }
.case-body-with-image .case-text-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) { .case-body-with-image .case-text-block { grid-template-columns: 1fr; gap: 32px; } }
.case-image-frame {
  position: relative;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  margin: 0;
}
.case-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.case-image-frame:hover img { transform: scale(1.03); }

/* Gallery card with image (casos.html) */
.gallery-card.has-image { color: var(--off-white); display: block; padding: 0; }
.gallery-card.has-image .gc-inner {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 4vw, 64px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 380px;
}
.gallery-card .gc-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  transition: transform 0.8s var(--ease);
}
.gallery-card.has-image:hover .gc-bg { transform: scale(1.04); }
.gallery-card .gc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 68, 0.55);
  z-index: 1;
  transition: background 0.5s var(--ease);
}
.gallery-card.has-image:hover { background: transparent; }
.gallery-card.has-image:hover .gc-overlay { background: rgba(16, 21, 68, 0.66); }
.gallery-card.has-image .gc-stat,
.gallery-card.has-image .gc-name { color: var(--off-white); }
.gallery-card.has-image .gc-disc { color: rgba(238, 237, 233, 0.78); }
.gallery-card.has-image .gc-tag { color: rgba(238, 237, 233, 0.65); }
.gallery-card.has-image .gc-arrow { color: var(--off-white); }

/* Case detail hero with image */
.case-hero.has-image { min-height: 480px; }
.case-hero.has-image .deco { display: none; }
.case-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.case-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-hero-bg img[data-parallax] {
  height: 130%;
  position: relative;
  top: -15%;
  will-change: transform;
}
.case-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 68, 0.6);
}

/* Image divider (between sections in home) */
.image-divider {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}
.image-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================== ICONS ==================== */
.svc-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin-bottom: 20px;
  color: var(--deep-blue);
  flex-shrink: 0;
}
.section-dark .svc-icon { color: var(--off-white); }
.svc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Service card icon override (replaces sc-arrow) */
.service-card .svc-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 28px;
  color: var(--deep-blue);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-card:hover .svc-icon {
  color: var(--pink);
  transform: translate(4px, -4px);
}

/* Page-hero icon */
.page-hero .svc-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 24px;
}

/* Method phase icon (in metodo.html .case-meta) */
.case-meta .svc-icon {
  margin-bottom: 14px;
  width: 24px;
  height: 24px;
}

/* ==================== PINK ACCENT ON HEADLINES ==================== */
em.accent { font-style: italic !important; color: #ECC7DD !important; }

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  .reveal-word > span,
  .fade-in,
  .scale-in {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .deco { transform: none !important; }
  html { scroll-behavior: auto; }
  .hero-meta .meta-right::before { animation: none; }
}

/* ==================== MOBILE RESPONSIVE (≤ 768px) ==================== */
@media (max-width: 768px) {
  /* --- 1. NAV — hamburger menu --- */
  nav {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #101544;
    padding: 24px;
    border-top: 1px solid #2A3070;
    z-index: 999;
    gap: 4px;
    margin: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    display: list-item;
    list-style: none;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 15px;
    display: block;
    width: 100%;
  }
  .nav-links a:not(.nav-cta)::after { display: none; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    align-items: center;
    justify-content: center;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #EEEDE9;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* --- 8. SUBMENU servicios — accordion-style --- */
  .nav-submenu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
    padding: 4px 0 4px 16px !important;
    background: transparent !important;
    min-width: 0 !important;
    box-shadow: none !important;
    display: none;
  }
  .nav-dropdown.open .nav-submenu {
    display: block;
  }
  .nav-dropdown:hover .nav-submenu {
    /* prevent hover-open on touch */
    display: none;
  }
  .nav-dropdown.open:hover .nav-submenu {
    display: block;
  }
  .nav-submenu-item { padding: 10px 12px; }

  /* --- 2. TYPOGRAPHY — smaller on mobile --- */
  h1, .h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.15 !important;
  }
  h2, .h2,
  .h-section,
  .case-section h2 {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.15 !important;
  }
  .hero h1,
  .page-hero h1,
  .case-hero h1,
  .cta-final h2 {
    font-size: clamp(32px, 9vw, 48px) !important;
    line-height: 1.05 !important;
    max-width: none;
  }
  .hero h1 {
    font-size: 36px !important;
    line-height: 1.1 !important;
  }
  .big-stat .v {
    font-size: clamp(48px, 15vw, 80px) !important;
  }
  .case-stat .stat-num {
    font-size: clamp(40px, 11vw, 64px) !important;
  }
  .gallery-card .gc-stat {
    font-size: clamp(32px, 9vw, 56px) !important;
    margin-bottom: 20px;
  }
  .gallery-card .gc-name {
    font-size: clamp(22px, 6vw, 28px) !important;
  }
  .manifesto-quote {
    font-size: clamp(28px, 8vw, 44px) !important;
  }
  .step h3,
  .case-meta h3,
  .service-card h3,
  .beliefs li .b-title,
  .problem-card h3,
  .quien-col h3,
  .pq-col h3 {
    font-size: clamp(22px, 6vw, 30px) !important;
  }
  .compare-header .lbl-flode {
    font-size: 26px;
  }
  .pull-quote,
  .case-final .pull,
  .cta-final .pull {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    padding-left: 16px;
    line-height: 1.25;
  }
  .servicio-intro p {
    font-size: clamp(20px, 5.5vw, 24px) !important;
  }
  .testi-card blockquote {
    font-size: clamp(16px, 4.5vw, 18px) !important;
  }

  /* --- 3. LAYOUTS — stack vertical --- */
  .grid-2,
  .cases-grid,
  .services-grid,
  .testimonials-grid,
  .testi-grid,
  .pq-grid,
  .two-col,
  .split-layout,
  .quien-grid,
  .contact-grid,
  .value-grid,
  .value-grid.cols-2,
  .side-blocks,
  .compare-row,
  .compare-header,
  .problem-grid,
  .steps,
  .diagnostic-list,
  .process-steps,
  .cases-gallery,
  .next-prev,
  .form-grid,
  .form-row,
  .case-head,
  .case-body-grid,
  .case-body-with-image,
  .case-body-with-image .case-text-block,
  .case-hero .case-title-row,
  .section-head,
  .hero-foot,
  .metodo .intro-grid,
  .para-quien-contacto .pq-grid,
  .beliefs li {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .case-layout,
  .case-body,
  .split-image {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }

  /* Imagen en case-body-with-image debajo del texto */
  .case-image-frame,
  .case-image,
  .split-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover;
  }

  /* --- Footer 3 columnas → 1 columna --- */
  .footer-cols,
  .footer-grid,
  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* --- 4. SPACING — reduce padding --- */
  section,
  .section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .container,
  .content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hero {
    padding-top: 96px !important;
    padding-bottom: 56px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    min-height: auto;
  }
  .hero::before {
    background: rgba(16, 21, 68, 0.88);
  }
  .hero-meta { margin-bottom: 24px; }
  .hero h1 { margin-bottom: 24px; }
  .hero p.lead { margin-bottom: 32px; }
  .page-hero,
  .case-hero {
    padding-top: 120px !important;
    padding-bottom: 56px !important;
  }
  .case-section {
    padding: 56px 20px !important;
  }
  footer { padding: 56px 20px 32px !important; }
  .np-link { padding: 28px 20px !important; }
  .case-result { padding: 22px 18px; }
  .testi-card { padding: 28px 22px; }
  .diagnostic-island { padding: 36px 22px !important; }

  /* --- 5. BUTTONS — touch min size --- */
  .cta,
  .cta-button,
  a.cta,
  a.btn,
  .btn,
  button:not(.nav-hamburger):not(.faq-q):not(.nav-cta) {
    min-height: 48px;
    padding: 14px 22px;
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }
  /* Excepción: enlaces de texto y elementos en nav */
  .cta-text {
    width: auto;
    min-height: auto;
    padding: 8px 0;
  }
  nav .cta,
  nav button,
  nav .nav-cta,
  nav .nav-hamburger {
    width: auto !important;
    min-height: auto;
  }

  /* --- 6. IMAGES responsive --- */
  img { max-width: 100%; height: auto; }
  .hero-image,
  .case-hero-image {
    height: 280px !important;
    object-fit: cover;
  }
  .case-hero.has-image {
    min-height: 0;
    height: auto;
  }
  .case-hero-bg img {
    height: 100%;
    object-fit: cover;
  }
  .image-divider { height: 220px; }

  /* --- 9. CASES GRID — 1 col --- */
  .cases-index-grid {
    grid-template-columns: 1fr !important;
  }
  .case-card,
  .gallery-card {
    min-height: auto !important;
  }
  .gallery-card.has-image .gc-inner { height: 320px; padding: 28px; }
  .gallery-card .gc-arrow { top: 28px; right: 28px; }

  /* --- 10. FORMS — full width --- */
  .form-group,
  .field,
  .field input,
  .field textarea,
  .field select {
    width: 100% !important;
  }
  .field-options { gap: 8px; }
  .field-options label {
    font-size: 12.5px;
    padding: 10px 14px;
    width: auto;
    min-height: auto;
  }

  /* --- Misc cosmetic on mobile --- */
  .deco-circle { width: 320px; height: 320px; }
  .deco-letter {
    font-size: clamp(180px, 50vw, 280px) !important;
  }

  .case-hero .case-tag-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
  }
  .case-hero .case-discipline-large { white-space: normal; }
  .breadcrumb { flex-wrap: wrap; }

  .compare-header .vs,
  .compare-row .sep { display: none; }
  .compare-header .lbl-other,
  .compare-header .lbl-flode { margin-bottom: 8px; }
  .compare-row .other { padding-bottom: 8px; }

  .next-prev .np-link.next { text-align: left; }
  .next-prev .np-link {
    border-right: none !important;
    border-bottom: 1px solid var(--border-light);
  }
  .section-dark .next-prev .np-link {
    border-bottom-color: rgba(238, 237, 233, 0.14);
  }
  .next-prev .np-link:last-child { border-bottom: none; }

  .case-body-with-image figure.case-image-frame { order: 2; margin-top: 24px; }

  .service-card { min-height: auto; padding: 32px 22px !important; }

  /* Reduce hover transforms (no hover on touch) */
  .case:hover,
  .step:hover { padding-left: 0; }
}

@media (min-width: 769px) {
  .nav-hamburger { display: none; }
}

/* ==================== AGENCY SUBTITLE (logo) ==================== */
.nav-logo, .footer-logo {
  flex-direction: column;
  align-items: flex-start;
}
.logo-agency {
  /* Duplicado del "AGENCY" que ya viene dibujado dentro de logo-flode.svg
     (viewBox y=232-248). Como el SVG es 1:1 y se renderiza 100×100 dentro de
     un nav de 72px, este span se apila debajo del SVG vía flex-direction:column
     y desborda fuera del nav, quedando fijo sobre el bg off-white de cualquier
     section-light. Lo ocultamos: el AGENCY interno del SVG hace el trabajo. */
  display: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A90B0;
  margin-top: -2px;
}

/* ==================== PILARES SECTION ==================== */
.pilares-section {
  padding: clamp(110px, 14vw, 180px) var(--gutter);
  background: var(--off-white);
  color: var(--deep-blue);
  position: relative;
  overflow: clip;
}
.pilares-section .eyebrow,
.pilares-section h2,
.pilares-section .pilares-tagline {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.pilares-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--deep-blue);
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 18ch;
}
.pilares-tagline {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 64ch;
}
.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px auto;
  max-width: var(--max-width);
}
.pilar-card {
  border: 1px solid #D0D2DF;
  border-radius: 16px;
  padding: 48px;
  background: #EEEDE9;
}
.pilar-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A90B0;
  display: block;
  margin-bottom: 16px;
}
.pilar-nombre {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  font-weight: 400;
  color: #101544;
  margin-bottom: 12px;
  line-height: 1;
}
.pilar-frase {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: #4A5080;
  margin-bottom: 16px;
}
.pilar-desc {
  font-size: 15px;
  color: #4A5080;
  line-height: 1.7;
  margin-bottom: 24px;
}
.pilar-servicios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.pill {
  background: #E8E9F0;
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 12px;
  color: #4A5080;
  font-weight: 500;
}
.pilar-cuando {
  border-top: 1px solid #D0D2DF;
  padding-top: 20px;
  font-size: 14px;
  color: #8A90B0;
  line-height: 1.6;
}
.pilar-link {
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pilar-link:hover {
  border-color: #101544;
  transform: translateY(-2px);
}
.pilar-link::after {
  content: '→';
  display: block;
  font-size: 20px;
  color: #101544;
  margin-top: 20px;
  transition: transform 0.2s ease;
}
.pilar-link:hover::after { transform: translateX(4px); }

/* ==================== EVENTS PAGE ==================== */
.events-hero {
  background-image: url('assets/Proyectos/Padel Courts Deluxe/DSC07056.png');
  background-size: cover;
  background-position: center center;
  position: relative;
}
.events-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 68, 0.82);
  z-index: 1;
  pointer-events: none;
}
.events-hero > .container { position: relative; z-index: 2; }

.events-proceso {
  background: var(--deep-blue);
  color: var(--off-white);
}
.events-proceso.pilares-section h2 { color: var(--off-white); }
.events-proceso.pilares-section .pilares-tagline { color: rgba(238, 237, 233, 0.7); }
.events-proceso.pilares-section .eyebrow { color: rgba(238, 237, 233, 0.55); }
.events-proceso .pilar-card-dark {
  background: #1C2560;
  border-color: #2A3070;
}
.events-proceso .pilar-card-dark .pilar-nombre {
  color: var(--off-white);
  font-size: 28px;
  margin-bottom: 12px;
}
.events-proceso .pilar-card-dark .pilar-desc {
  color: rgba(238, 237, 233, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}
.events-proceso .pilar-card-dark .pilar-tag {
  color: rgba(238, 237, 233, 0.5);
}

.events-referencia .referencia-card {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.events-referencia .referencia-text .pilar-tag {
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.events-referencia .referencia-text h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--deep-blue);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
}
.events-referencia .referencia-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.events-referencia .referencia-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.events-referencia .referencia-image figcaption {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .events-referencia .referencia-card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 32px;
  }
  .events-referencia .referencia-image img { height: 240px; }
}

.land-expand {
  background: #101544;
  border-radius: 24px;
  padding: 80px 64px;
  margin: 24px auto 0;
  max-width: var(--max-width);
}
.eyebrow-rosa {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ECC7DD;
  margin-bottom: 20px;
}
.land-expand h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: #EEEDE9;
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.expand-diagram {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.expand-card {
  background: #1C2560;
  border: 1px solid #2A3070;
  border-radius: 12px;
  padding: 24px 32px;
  flex: 1;
}
.expand-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #8A90B0;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.expand-card strong {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: #EEEDE9;
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
}
.expand-card p {
  font-size: 13px;
  color: #8A90B0;
}
.expand-arrow {
  font-size: 24px;
  color: #ECC7DD;
  flex-shrink: 0;
}
.expand-desc {
  font-size: 15px;
  color: #8A90B0;
  line-height: 1.7;
  max-width: 700px;
}
@media (max-width: 768px) {
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar-nombre { font-size: 40px; }
  .pilar-card { padding: 32px 28px; }
  .land-expand { padding: 48px 32px; }
  .expand-diagram { flex-direction: column; align-items: stretch; }
  .expand-card { width: 100%; flex: 0 0 auto; }
  .expand-arrow { transform: rotate(90deg); align-self: center; }
}

/* ==================== DOS LÍNEAS ==================== */
.dos-lineas {
  padding: clamp(110px, 14vw, 180px) var(--gutter);
  background: var(--off-white);
  color: var(--deep-blue);
  position: relative;
  overflow: clip;
}
.dos-lineas .eyebrow,
.dos-lineas h2,
.dos-lineas .dos-lineas-lead {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.dos-lineas h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--deep-blue);
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 18ch;
}
.dos-lineas-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 64ch;
}
.lineas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px auto 0;
  max-width: var(--max-width);
}
.linea-card {
  border: 1px solid #D0D2DF;
  border-radius: 16px;
  padding: 56px 48px;
  background: #EEEDE9;
}
.badge-activa {
  background: #ECC7DD;
  color: #101544;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.badge-pronto {
  background: #E8E9F0;
  color: #4A5080;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.linea-nombre {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  font-weight: 400;
  color: #101544;
  line-height: 1;
  margin-bottom: 20px;
}
.linea-desc {
  font-size: 15px;
  color: #4A5080;
  line-height: 1.7;
  margin-bottom: 32px;
}
.linea-meta {
  border-top: 1px solid #D0D2DF;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.linea-meta > div { display: flex; align-items: baseline; }
.meta-label {
  font-size: 11px;
  font-weight: 600;
  color: #8A90B0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 12px;
  flex-shrink: 0;
}
.meta-val {
  font-size: 14px;
  color: #101544;
}
@media (max-width: 768px) {
  .lineas-grid { grid-template-columns: 1fr; }
  .linea-nombre { font-size: 40px; }
  .linea-card { padding: 40px 32px; }
}

/* ==================== CASE PILLAR TAGS ==================== */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.case-tipo,
.case-pilar-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #101544;
  background: #E8E9F0;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}
.case-tipo {
  background: #ECC7DD;
}
.gallery-card .case-tags {
  margin-bottom: 12px;
}

/* ==================== FOOTER (NEW 4-COL) ==================== */
.footer-main {
  background: #101544;
  padding: 80px 0 40px;
  color: #8A90B0;
}
.footer-main .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 48px;
}
.footer-main .footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-main .footer-logo {
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  display: inline-flex;
}
.footer-main .footer-logo img {
  width: 100px;
  height: auto;
  display: block;
}
.footer-tagline {
  font-size: 14px;
  color: #8A90B0;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 280px;
}
.footer-main .footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A90B0;
  margin-bottom: 20px;
}
.footer-main .footer-col a {
  display: block;
  font-size: 14px;
  color: #EEEDE9;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-main .footer-col a:hover { color: #ECC7DD; }
.footer-main .soon {
  font-size: 10px;
  color: #8A90B0;
  margin-left: 6px;
}
.footer-main .footer-bottom {
  border-top: 1px solid #2A3070;
  padding: 24px 48px 0;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8A90B0;
}
.footer-main .footer-bottom p { margin: 0; }
.footer-main .footer-bottom .footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-main .footer-bottom .footer-legal a:hover { color: #EEEDE9; }
@media (max-width: 768px) {
  .footer-main .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .footer-main .footer-brand { grid-column: 1 / -1; }
  .footer-main .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 24px 24px 0;
  }
}

/* ==================== CASO GALERIA ==================== */
.caso-galeria {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 80px);
  background: var(--off-white);
}
.caso-galeria .container { max-width: 1100px; margin: 0 auto; }
.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}
.galeria-grid.single { grid-template-columns: 1fr; }
.galeria-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.6s var(--ease);
}
.galeria-grid img:hover { transform: scale(1.02); }
.galeria-grid img.galeria-img--contain {
  object-fit: contain;
  background: var(--surface-2);
}
.caso-galeria .galeria-credit {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 12px;
  text-align: right;
}
@media (max-width: 768px) {
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-grid img { height: 240px; }
}

/* ==================== FORM WIZARD ==================== */
.form-wizard {
  max-width: 680px;
  margin: 0 auto;
}
.wizard-progress {
  height: 3px;
  background: #D0D2DF;
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.wizard-progress-bar {
  height: 100%;
  background: var(--pink);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 25%;
}
.wizard-step-label {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.wizard-step { display: none; }
.wizard-step.active {
  display: block;
  animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-title {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--deep-blue);
  margin-bottom: 8px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.wizard-subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  line-height: 1.6;
}
.form-group { margin-bottom: 32px; }
.wizard-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.option-btn {
  background: var(--off-white);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}
.option-btn:hover {
  border-color: var(--deep-blue);
  color: var(--deep-blue);
}
.option-btn.selected {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--off-white);
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.btn-wizard-next {
  background: var(--deep-blue);
  color: var(--off-white);
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.btn-wizard-next:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-wizard-next:disabled,
.btn-wizard-next[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.btn-wizard-next:disabled:hover,
.btn-wizard-next[aria-disabled="true"]:hover {
  opacity: 0.4;
  transform: none;
}
.btn-wizard-back {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s ease;
}
.btn-wizard-back:hover { color: var(--deep-blue); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-wizard input[type="text"],
.form-wizard input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--deep-blue);
  transition: border-color 0.2s ease;
}
.form-wizard input[type="text"]:focus,
.form-wizard input[type="email"]:focus {
  outline: none;
  border-color: var(--deep-blue);
}
.wizard-result {
  padding: 48px;
  border-radius: 16px;
  animation: fadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-result.qualified {
  background: var(--deep-blue);
  border: 1.5px solid var(--pink);
}
.wizard-result.not-qualified {
  background: var(--off-white);
  border: 1.5px solid var(--border-light);
}
.result-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
}
.qualified-badge {
  background: var(--pink);
  color: var(--deep-blue);
}
.wizard-result.qualified .wizard-title { color: var(--off-white); }
.wizard-result.qualified .wizard-subtitle { color: rgba(238, 237, 233, 0.7); }
/* Diagnóstico — proceso en 3 tiempos (Antes / Sesión / Después) */
.diagnostico-proceso {
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.proceso-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proceso-item + .proceso-item {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
}
.proceso-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.proceso-content {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.6;
  margin: 0;
}
.diagnostico-firma {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  margin: 0 0 8px;
}
.diagnostico-precio-line {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--pink);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
@media (max-width: 768px) {
  .diagnostico-proceso { padding: 24px 20px; gap: 20px; }
  .proceso-item + .proceso-item { padding-top: 20px; }
}
.btn-primary {
  background: var(--pink);
  color: var(--deep-blue);
  border: 1.5px solid var(--pink);
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #f4d6e6;
}
.btn-large {
  width: 100%;
  text-align: center;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 8px;
  display: block;
}
.wizard-note {
  font-size: 13px;
  color: rgba(238, 237, 233, 0.55);
  margin-top: 16px;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 768px) {
  .option-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .wizard-result { padding: 32px 24px; }
  .wizard-title { font-size: 28px; }
}

/* ==================== CINEMATIC EXTRAS ==================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--pink);
  z-index: 10000;
  width: 0;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* Lines that draw on scroll */
.draw-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--border-light);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.draw-line.drawn { width: 100%; }
.section-dark .draw-line { background: rgba(238, 237, 233, 0.18); }

/* ==================== PROBLEMA INTRO (2-col with image) ==================== */
.problema-intro {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.problema-intro .section-head { margin-bottom: 0; }
.problema-image img { display: block; }
@media (max-width: 880px) {
  .problema-intro { grid-template-columns: 1fr; gap: 40px; }
  .problema-image img { height: 260px !important; }
}

/* ==================== PARA QUIÉN — image divider ==================== */
.metodo-island-image img { display: block; }

/* Custom cursor (only when JS adds .has-custom-cursor on body) */
@media (pointer: fine) and (min-width: 769px) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor summary,
  body.has-custom-cursor [role="button"],
  body.has-custom-cursor .pilar-link,
  body.has-custom-cursor .gallery-card,
  body.has-custom-cursor .case,
  body.has-custom-cursor .testi-card { cursor: none; }
}
.custom-cursor {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
  position: fixed;
  top: -16px;
  left: -16px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), opacity 0.2s var(--ease);
  mix-blend-mode: difference;
  will-change: transform;
}
.custom-cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--pink);
  border-radius: 50%;
  position: fixed;
  top: -2.5px;
  left: -2.5px;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  will-change: transform;
}
.custom-cursor.cursor-hover {
  width: 52px;
  height: 52px;
  top: -26px;
  left: -26px;
  border-color: var(--off-white);
  background: rgba(238, 237, 233, 0.06);
}

@media (max-width: 768px), (pointer: coarse) {
  .custom-cursor,
  .custom-cursor-dot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .custom-cursor,
  .custom-cursor-dot { display: none !important; }
  .scroll-progress { display: none; }
}

/* ==================== CLIENTES — tira de logos ==================== */
.clientes {
  background: var(--deep-blue);
  color: var(--off-white);
  padding: 120px 0;
}
.clientes .clientes-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.clientes .eyebrow-on-blue {
  display: inline-block;
}
.clientes-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--off-white);
  margin: 16px 0 24px 0;
}
.clientes-lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(238, 237, 233, 0.72);
  max-width: 580px;
  margin: 0 0 64px 0;
}
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: center;
  justify-items: center;
  margin-bottom: 56px;
}
.clientes-logo {
  height: 64px;
  width: 100%;
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clientes-logo--pcd { max-width: 280px; height: 180px; }
.clientes-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.clientes-logo:hover img { opacity: 0.85; }
.clientes-names {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: #8A90B0;
  letter-spacing: 0.02em;
  margin: 0 0 56px 0;
}
.clientes-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #8A90B0;
  margin: 0;
}
@media (max-width: 768px) {
  .clientes { padding: 64px 0; }
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .clientes-logo { height: 48px; }
  .clientes-logo--pcd { height: 135px; max-width: 220px; }
  /* 9 logos en 2 cols → último centrado (4 filas de 2 + 1 huérfano) */
  .clientes-grid > .clientes-logo:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ==================== Tablet horizontal / desktop pequeño (881–1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Grids con 2 cols apretadas → reducir padding interno y bajar tipografía de cards */
  .pilar-card,
  .linea-card,
  .service-card {
    padding: clamp(32px, 4vw, 56px);
  }
  .pilar-nombre,
  .linea-nombre {
    font-size: clamp(28px, 3.4vw, 36px);
  }

  /* Tira de logos: 4 → 3 cols (8 logos quedan en 3+3+2) */
  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  /* Case body: la sub-rejilla 280px+1fr deja poco espacio al texto en este rango → stack a 1col */
  .case-body-with-image {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case-body-with-image .case-text-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Image dividers y figuras con height fijo: reducir un punto */
  .image-divider { height: 320px; }
  .case-image-frame { height: 260px; }
  .galeria-grid img { height: 260px; }
  .events-referencia .referencia-image img { height: 260px; }

  /* Containers que reciben padding lateral cuando el viewport se aprieta */
  .section,
  section {
    padding-left: clamp(32px, 5vw, 56px);
    padding-right: clamp(32px, 5vw, 56px);
  }

  /* Hero foot a 1col en este rango (mantiene desktop tight pero respira) */
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==================== BLOG ==================== */

/* --- Hero --- */
.blog-hero {
  background: var(--deep-blue);
  color: var(--off-white);
  padding: 140px 0 100px;
}
.blog-hero > .container { max-width: 720px; }
.blog-hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--off-white);
  margin: 16px 0 24px 0;
  max-width: 18ch;
}
.blog-hero-lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(238, 237, 233, 0.78);
  max-width: 560px;
  margin: 0;
}

/* --- Listado --- */
.blog-list {
  background: var(--off-white);
  padding: 88px 0 120px;
}
.blog-list > .container { max-width: 1100px; }

/* Filtros pills */
/* === BLOG FILTERS === */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 64px;
}

.blog-filter {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border-light);
  background-color: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.blog-filter:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.blog-filter.active {
  border-color: var(--deep-blue);
  background-color: var(--deep-blue);
  color: var(--off-white);
}

/* Excepción: pill EVENTS mantiene su color cuando no está activo */
.blog-filter[data-category="events"] {
  color: var(--pink);
  border-color: var(--pink);
}

.blog-filter[data-category="events"]:hover {
  color: var(--off-white);
  background-color: var(--pink);
  border-color: var(--pink);
}

.blog-filter[data-category="events"].active {
  color: var(--deep-blue);
  background-color: var(--pink);
  border-color: var(--pink);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-filters {
    gap: 8px;
    margin-bottom: 48px;
  }
  .blog-filter {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Grid cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* === BLOG CARDS — SISTEMA DE 3 TRATAMIENTOS === */

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* Bloque superior — común a los 3 tratamientos */
.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* TRATAMIENTO 1 — FOTO */
.blog-card--photo .blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TRATAMIENTO 2 — CIFRA */
.blog-card-media--number {
  background-color: var(--deep-blue);
  flex-direction: column;
  padding: 48px 32px;
  align-items: flex-start;
  justify-content: flex-end;
}
.blog-card-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  color: var(--off-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-card-number-context {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  text-transform: none;
}

/* TRATAMIENTO 3 — CITA TIPOGRÁFICA */
.blog-card-media--quote {
  background-color: var(--deep-blue);
  padding: 48px 40px;
  align-items: flex-start;
  justify-content: center;
}
.blog-card-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--off-white);
  letter-spacing: -0.01em;
  font-style: italic;
}

/* Contenido inferior — común a los 3 tratamientos */
.blog-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-category {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 16px;
}
/* Excepción: categoría Events en rosa */
.blog-card[data-category="events"] .blog-card-category,
.blog-card[data-category="events"] .blog-card-eyebrow {
  color: var(--pink);
}
.blog-card-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--deep-blue);
  margin: 0 0 16px 0;
}
.blog-card-content p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  flex: 1;
}

/* Footer — común a los 3 tratamientos (y a las legacy related-cards) */
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.blog-card-footer time { color: inherit; }

/* === LEGACY: clases retenidas para related-articles dentro de articulos/ === */
.blog-card-img {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 28px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.blog-card-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.blog-card-eyebrow--events { color: var(--pink); }
.blog-card-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--deep-blue);
  margin: 12px 0 16px 0;
}
.blog-card-summary {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  flex: 1;
}
.blog-card-date,
.blog-card-time {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .blog-card-media--number,
  .blog-card-media--quote {
    padding: 36px 24px;
  }
  .blog-card-content,
  .blog-card-body {
    padding: 24px;
  }
}
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-tertiary);
  padding: 48px 0;
}

/* --- Plantilla artículo --- */
.article-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-header {
  background: var(--off-white);
  padding: 140px 0 0;
}
.article-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--deep-blue); }
.article-breadcrumb .sep { color: var(--border-light); }
.article-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 32px 0;
}
.article-eyebrow--events { color: var(--pink); }
.article-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-blue);
  margin: 0 0 32px 0;
  max-width: 720px;
}
.article-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 40px 0;
  max-width: 640px;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  margin-bottom: 80px;
}
.article-meta .article-sep { color: var(--border-light); }

/* Featured image */
.article-image-wrap {
  max-width: 1100px;
  margin: 0 auto 96px;
  padding: 0 var(--gutter);
}

/* Imagen dentro del cuerpo del artículo (ancho del container, no full-width) */
.article-body-image {
  margin: 48px 0;
}
.article-body-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.article-body-image figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-tertiary);
  padding-top: 12px;
}
@media (max-width: 768px) {
  .article-body-image { margin: 36px 0; }
}

/* Hero tipográfico (artículo sin imagen destacada) */
.article-hero-quote {
  max-width: 1100px;
  margin: 0 auto 96px;
  background: var(--deep-blue);
  color: var(--off-white);
  padding: 64px 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.article-hero-quote span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  color: var(--off-white);
  max-width: 24ch;
}
@media (max-width: 768px) {
  .article-hero-quote {
    margin: 0 var(--gutter) 64px;
    padding: 48px 28px;
  }
  .article-hero-quote span { font-size: 22px; }
}
.article-image {
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Variante para fotos verticales — respeta la proporción del original */
.article-image-wrap--portrait { max-width: 560px; }
.article-image-wrap--portrait .article-image {
  aspect-ratio: auto;
  background: transparent;
}
.article-image-wrap--portrait .article-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.article-image-caption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-tertiary);
  padding-top: 16px;
}

/* Body — prosa */
.article-body {
  background: var(--off-white);
  padding: 0 0 96px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.article-body p { margin: 0 0 24px 0; }
.article-body h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--deep-blue);
  margin: 72px 0 24px 0;
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin: 48px 0 16px 0;
}
.article-body strong { color: var(--deep-blue); font-weight: 600; }
.article-body a {
  color: var(--deep-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s var(--ease);
}
.article-body a:hover { opacity: 0.7; }

.article-body ul,
.article-body ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}
.article-body li { margin-bottom: 12px; }
.article-body ul li::marker { color: var(--pink); }
.article-body ol li::marker { color: var(--text-tertiary); font-weight: 600; }

.article-pull {
  border-left: 3px solid var(--deep-blue);
  padding: 0 0 0 24px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--deep-blue);
  font-size: 22px;
  line-height: 1.4;
  margin: 48px 0;
}

.article-callout {
  background: var(--surface-2);
  padding: 32px;
  border-left: 3px solid var(--pink);
  border-radius: 0 8px 8px 0;
  margin: 48px 0;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--deep-blue);
}

.article-cta-mid {
  background: var(--deep-blue);
  color: var(--off-white);
  padding: 40px;
  border-radius: 8px;
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.article-cta-mid-q {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--off-white);
  margin: 0;
}

.article-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  margin-top: 80px;
}

/* Related articles */
.related-articles {
  background: var(--off-white);
  padding: 120px 0;
}
.related-articles > .container { max-width: 1100px; }
.related-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--deep-blue);
  margin: 16px 0 48px 0;
}
.related-grid { grid-template-columns: repeat(3, 1fr); }

/* Mobile */
@media (max-width: 768px) {
  .blog-hero { padding: 100px 0 60px; }
  .blog-list { padding: 56px 0 80px; }
  .blog-filters { gap: 8px; margin-bottom: 32px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .blog-filter { flex: 0 0 auto; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-card-body { padding: 24px; }
  .blog-card-title { font-size: 20px; }

  .article-header { padding: 100px 0 0; }
  .article-title { font-size: clamp(28px, 7vw, 36px); }
  .article-subtitle { font-size: 16px; margin-bottom: 32px; }
  .article-meta { margin-bottom: 56px; }
  .article-image { aspect-ratio: 16 / 9; }
  .article-image-wrap { margin-bottom: 64px; }
  .article-body { padding: 0 0 72px; font-size: 16px; line-height: 1.7; }
  .article-body h2 { font-size: 24px; margin-top: 56px; }
  .article-body h3 { margin-top: 40px; }
  .article-pull { font-size: 19px; margin: 36px 0; }
  .article-callout { padding: 24px; margin: 36px 0; font-size: 16px; }
  .article-cta-mid { padding: 28px; margin: 36px 0; }
  .article-cta-mid-q { font-size: 19px; }

  .related-articles { padding: 80px 0; }
  .related-title { margin-bottom: 32px; }
  .related-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==================== Mobile fixes — alturas de imagen + decorativos ==================== */
@media (max-width: 768px) {
  /* Override global de alturas fijas en móvil — mantener object-fit cover para no deformar */
  .case-image-frame,
  .galeria-grid img,
  .events-referencia .referencia-image img,
  .servicio-image img,
  .image-divider {
    height: auto !important;
    max-height: 240px;
  }
  .case-image-frame img,
  .image-divider img,
  .servicio-image img {
    object-fit: cover;
  }

  /* Cards de galería con altura fija */
  .gallery-card.has-image .gc-inner {
    height: auto;
    min-height: 240px;
  }

  /* Stats de casos no fuerzan ancho en pantallas estrechas */
  .case-stat { min-width: 0; }

  /* Decorativos posicionados absolutamente fuera del viewport (`right:-260px`,
     `right:-6vw`, `left:-200px`…). Aunque cada section tiene `overflow:clip`,
     evitamos cualquier riesgo de scroll horizontal en móvil ocultándolos. */
  .deco { display: none; }
}

/* ==================== Mobile overflow fixes (≤768px) ====================
   Causa raíz: .cta y .btn-secondary-hero llevan `white-space: nowrap`. En
   mobile el media query les pone `width: 100%`, pero el contenido inline-flex
   sigue siendo ~367px (texto + flecha + padding) y desborda el viewport útil
   (~287px). Esto recortaba la flecha del CTA principal y la última palabra
   del subtítulo del hero. Forzamos wrap del texto y respetar el ancho del
   contenedor en TODOS los elementos críticos de toda la web. */
@media (max-width: 768px) {
  /* 0. Contenedores y secciones: respetar el viewport sin excepción
        (body ya tiene overflow-x: clip — no añadir max-width: 100vw porque
        rompe el scroll en iOS Safari con dynamic viewport) */
  .container, .content,
  .hero-content, .hero-foot, .hero-cta-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 1. CTAs: permitir wrap del texto largo */
  .cta, a.cta,
  .cta-outline, .cta-on-light,
  .btn-secondary-hero,
  .btn, .nav-cta {
    white-space: normal;
    box-sizing: border-box;
    max-width: 100%;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .cta .arrow { flex-shrink: 0; }

  /* 2. case-hero discipline: que no fuerce nowrap en ancho estrecho */
  .case-hero .case-discipline-large { white-space: normal; }

  /* 3. Textos: forzar wrap de palabras largas en español
     (crecimiento, comunicación, infraestructura, predecible) */
  h1, h2, h3, h4, h5, h6,
  p, li, blockquote, .lead,
  .pull-quote, .hero h1, .hero .lead,
  .page-hero h1, .case-hero h1,
  .article-title, .blog-card-title {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* 4. Inputs y áreas de texto: no desbordar */
  input, textarea, select, button {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 5. Imágenes y media: nunca más anchas que el contenedor */
  img, video, iframe, svg, picture, canvas {
    max-width: 100%;
    height: auto;
  }

  /* 6. Tablas: scroll horizontal interno si hace falta, no del body */
  table { display: block; max-width: 100%; overflow-x: auto; }

  /* 7. Pre/code en blog: no romper layout con líneas largas */
  pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

  /* 8. Crédito del hero: que no se solape con CTAs ni desborde */
  .hero-photo-credit {
    max-width: calc(100% - 32px);
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* 9. Flex children que pueden crear min-content > parent (clave) */
  .hero-cta-row > *,
  .footer-cols > *,
  .nav-links > * {
    min-width: 0;
    max-width: 100%;
  }
}

/* ==================== EVENTS FORM (events.html) ==================== */
.events-form-wrap { max-width: 760px; margin: 0 auto; }
.events-form-head { margin-bottom: 48px; }
.events-form .ef-question {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px; display: block;
}

/* Paso 1 — selección de rama (tarjetas) */
.ef-branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ef-branch-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: var(--off-white);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 28px 26px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.ef-branch-card:hover { border-color: var(--deep-blue); transform: translateY(-2px); }
.ef-branch-card.selected { background: var(--deep-blue); border-color: var(--deep-blue); }
.ef-branch-title {
  font-family: 'Instrument Serif', serif;
  font-size: 25px; line-height: 1.1;
  color: var(--deep-blue); letter-spacing: -0.01em;
}
.ef-branch-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 1.5;
  color: var(--text-secondary);
}
.ef-branch-card.selected .ef-branch-title,
.ef-branch-card.selected .ef-branch-desc { color: var(--off-white); }

/* Grupos de campos por rama + comunes */
.ef-fields, .ef-common { margin-top: 40px; }
.ef-fields .field, .ef-common .field { margin-bottom: 20px; }
.ef-fields .field:last-child { margin-bottom: 0; }
.ef-other { margin-top: -4px; }
.ef-label-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ef-common-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px; padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.ef-submit-row { margin-top: 32px; }
.ef-error-msg {
  color: #B23A48;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  margin-top: 16px;
}

/* Mensaje de éxito */
.ef-success {
  text-align: center;
  padding: 56px 32px;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  background: var(--surface-2);
  max-width: 760px;
  margin: 0 auto;
}
.ef-success h2,
.ef-success h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--deep-blue);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.ef-success .eyebrow {
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.ef-success p.lead {
  color: var(--text-secondary);
  font-size: 16px; line-height: 1.6;
  max-width: 52ch; margin: 0 auto;
}
.ef-success-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  width: 80px;
  margin: 40px auto;
}
.ef-success-secondary p {
  margin: 0 auto;
  max-width: 46ch;
}
.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--deep-blue);
  color: var(--deep-blue);
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-secondary-light:hover {
  background: var(--deep-blue);
  color: var(--off-white);
}

/* Helper de visibilidad */
.ef-fields[hidden], .ef-common[hidden], .ef-other[hidden], .ef-success[hidden] { display: none; }

@media (max-width: 768px) {
  .ef-branch-grid { grid-template-columns: 1fr; }
  .ef-branch-card { padding: 24px 20px; }
}

/* ==================== TRAYECTORIA EN FERIAS (events.html) ==================== */
.ferias-head { margin-bottom: 48px; }
.ferias-head .body { margin-top: 16px; max-width: 64ch; }

.ferias-hitos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feria-hito {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
}
.feria-hito .fh-year {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--deep-blue);
  display: block;
  margin-bottom: 12px;
}
.feria-hito .fh-fair {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-blue);
  line-height: 1.4;
  display: block;
  margin-bottom: 6px;
}
.feria-hito .fh-brands {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.ferias-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.ferias-fotos figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3 / 2;
  position: relative;
}
.ferias-fotos figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feria-foto-year {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--off-white);
  background: rgba(16, 21, 68, 0.7);
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.ferias-disclaimer {
  margin-top: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .ferias-hitos { grid-template-columns: 1fr; gap: 12px; }
  .feria-hito { padding: 22px 20px; }
  .ferias-fotos { grid-template-columns: 1fr; gap: 16px; }
  .ferias-fotos figure { aspect-ratio: 16 / 10; max-height: 280px; }
}

/* ==================== Bullet list con puntos rosa en fondo claro
   (descubrimiento.html — paso "Cómo funciona") ==================== */
.bullet-list-pink {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 60ch;
  margin: 32px 0 0;
  padding: 0;
}
.bullet-list-pink li {
  padding-left: 22px;
  position: relative;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.bullet-list-pink li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: #101544;
  border-top: 1px solid #2A3070;
  color: #EEEDE9;
  font-family: 'Inter', sans-serif;
}
.cookie-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-banner-text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13.5px;
  line-height: 1.55;
  color: #EEEDE9;
}
.cookie-banner-link {
  color: #ECC7DD;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-link:hover { color: #EEEDE9; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-banner-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1px solid transparent;
  line-height: 1.2;
}
.cookie-banner-btn--accept {
  background: #EEEDE9;
  color: #101544;
  border-color: #EEEDE9;
}
.cookie-banner-btn--accept:hover { background: #ECC7DD; border-color: #ECC7DD; }
.cookie-banner-btn--reject {
  background: transparent;
  color: #EEEDE9;
  border-color: rgba(238, 237, 233, 0.4);
}
.cookie-banner-btn--reject:hover { border-color: #EEEDE9; }
@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }
  .cookie-banner-text { font-size: 13px; }
  .cookie-banner-actions { justify-content: flex-end; }
  .cookie-banner-btn { padding: 10px 16px; }
}

