/* ═══════════════════════════════════════════════════════════
   VOX ALMAZÁN — Sistema de diseño web
   Lic. Miguel Almazán · Fonoaudiólogo y Terapeuta de Lenguaje
   Diseño: FLUX Studio
   ═══════════════════════════════════════════════════════════ */

/* ---------- Tokens ---------- */
:root {
  --indigo: #1E1333;
  --indigo-2: #2D1F4A;
  --indigo-3: #120B21;
  --coral: #F07060;
  --coral-2: #E85C4A;
  --terra: #9E3D2B;
  --durazno: #F9D4CB;
  --durazno-2: #FBE4DD;
  --marfil: #FBF4F1;
  --niebla: #FCFAF8;
  --arena: #F3ECE7;

  --ink: #241A38;
  --ink-70: #524A5E;
  --ink-55: #6E6678;
  --ink-40: #938C9C;
  --on-dark: #FBF4F1;
  --on-dark-72: rgba(251,244,241,0.74);
  --on-dark-45: rgba(251,244,241,0.5);
  --line: rgba(36,26,56,0.10);
  --line-dark: rgba(251,244,241,0.14);

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --text-hero: clamp(3.4rem, 1.1rem + 8.4vw, 8.2rem);
  --text-h1: clamp(2.6rem, 1.3rem + 4.6vw, 5rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --text-h3: clamp(1.4rem, 1.12rem + 1.1vw, 1.9rem);
  --text-lead: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  --text-base: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  --text-sm: 0.875rem;
  --text-xs: 0.72rem;

  --space-section: clamp(5.5rem, 4rem + 9vw, 13rem);
  --gutter: clamp(1.5rem, 0.8rem + 3.4vw, 6.5rem);
  --maxw: 1180px;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px -4px rgba(36,26,56,0.14);
  --shadow: 0 20px 50px -28px rgba(36,26,56,0.34);
  --shadow-lg: 0 40px 90px -40px rgba(36,26,56,0.42);

  /* Emil Kowalski easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 150ms;
  --dur-micro: 220ms;
  --dur-reveal: 640ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--niebla);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--coral); color: var(--marfil); }

/* Focus visible (Vercel: never remove focus without replacement) */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* Anclas: evita que el nav fijo tape el destino */
:target, [id] { scroll-margin-top: 92px; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--indigo); color: var(--marfil); padding: 0.8rem 1.2rem; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.012em; }
.italic { font-style: italic; }
/* Coral falla contraste AA sobre fondos claros (2.69:1). En claro usa terracota (6.12:1); en oscuro se mantiene coral (6.01:1). */
.coral { color: var(--terra); } .terra { color: var(--terra); }
.dark .coral { color: var(--coral); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.012em; color: var(--indigo); text-wrap: balance; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { text-wrap: pretty; }

.eyebrow {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--terra); font-weight: 600; line-height: 1.5;
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--coral); flex-shrink: 0; }
@media (max-width: 520px) { .eyebrow { letter-spacing: 0.14em; } }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 24px; height: 1.5px; background: var(--coral); }

.lead { font-size: var(--text-lead); line-height: 1.62; color: var(--ink-70); font-weight: 400; }
.muted { color: var(--ink-55); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.dark { background: var(--indigo); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark .muted { color: var(--on-dark-45); }
.dark .lead { color: var(--on-dark-72); }
.dark .eyebrow { color: var(--coral); }
.marfil { background: var(--marfil); }
.arena { background: var(--arena); }

.grid { display: grid; gap: clamp(2.2rem, 1.4rem + 3vw, 4.5rem); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hero-cols { grid-template-columns: 1.15fr 0.85fr; }
.hero-cols .media { max-width: 440px; margin-inline: auto; }
@media (max-width: 900px) { .hero-cols { grid-template-columns: 1fr; } }
.items-center { align-items: center; }
.items-end { align-items: end; }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-4.keep-2, .cols-3.keep-2 { grid-template-columns: 1fr 1fr; }
}

.stack > * + * { margin-top: 1.6rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 1.6rem; } .mt-2 { margin-top: 2.8rem; } .mt-3 { margin-top: clamp(4rem,2.6rem + 5vw,7.5rem); }
.mb-1 { margin-bottom: 1.2rem; }
.max-58 { max-width: 58ch; } .max-46 { max-width: 46ch; }
.divider { height: 1px; background: var(--line); }
.dark .divider { background: var(--line-dark); }
.pill { display: inline-block; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); background: var(--durazno-2); padding: 0.42rem 0.9rem; border-radius: 100px; font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--coral); --fg: var(--marfil);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.01em;
  padding: 0.95rem 1.65rem; border-radius: 100px;
  background: var(--bg); color: var(--fg); border: 1.5px solid transparent;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(240,112,96,0.55); background: var(--coral-2); }
}
.btn:active { transform: scale(0.97); }
.btn.ghost { --bg: transparent; --fg: var(--indigo); border-color: rgba(36,26,56,0.2); }
@media (hover: hover) and (pointer: fine) {
  .btn.ghost:hover { background: var(--indigo); --fg: var(--marfil); box-shadow: none; }
}
.dark .btn.ghost { --fg: var(--marfil); border-color: rgba(251,244,241,0.3); }
@media (hover: hover) and (pointer: fine) {
  .dark .btn.ghost:hover { background: var(--marfil); --fg: var(--indigo); }
}
.btn.block { width: 100%; }

.arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--terra); letter-spacing: 0.01em;
}
.arrow svg { width: 16px; transition: transform var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow:hover svg { transform: translateX(5px); } }
.dark .arrow { color: var(--coral); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem var(--gutter);
  padding-top: max(1.05rem, env(safe-area-inset-top));
  transition: background var(--dur-micro) var(--ease-out), padding var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.nav.solid {
  background: rgba(251,244,241,0.82); backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 1px 0 var(--line); padding-block: 0.7rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand .wm { font-family: var(--display); font-weight: 600; font-size: 1.32rem; letter-spacing: 0.04em; color: var(--indigo); transition: color var(--dur-micro) var(--ease-out); }
.brand .wm em { font-style: italic; color: var(--coral); }
.nav:not(.solid) .brand .wm { color: var(--marfil); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-size: var(--text-sm); font-weight: 500; color: var(--ink-70); position: relative; padding: 0.3rem 0; transition: color var(--dur-micro) var(--ease-out); }
.nav:not(.solid) .nav-links a { color: var(--on-dark-72); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0; background: var(--coral); transition: width var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--coral); } }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--coral); }
.nav .btn { padding: 0.6rem 1.15rem; }
.nav-toggle { display: none; width: 30px; height: 20px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--indigo); border-radius: 2px; transition: transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.nav:not(.solid) .nav-toggle span { background: var(--marfil); }
.nav-toggle span:nth-child(1) { top: 0; } .nav-toggle span:nth-child(2) { top: 9px; } .nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle[aria-expanded="true"] span { background: var(--marfil); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; z-index: 110; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--indigo);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), visibility var(--dur-micro);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { color: var(--on-dark); font-size: 1.5rem; font-family: var(--display); }
  .nav-links .btn { color: var(--marfil); font-family: var(--body); font-size: var(--text-sm); }
}

/* ---------- Reveal on scroll (solo opacidad: sin desplazamiento que encime) ---------- */
.reveal { opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); }
.reveal.in { opacity: 1; }
.reveal.d1 { transition-delay: 70ms; } .reveal.d2 { transition-delay: 140ms; }
.reveal.d3 { transition-delay: 210ms; } .reveal.d4 { transition-delay: 280ms; }
.stagger > * { opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); }
.stagger.in > * { opacity: 1; }
.stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.stagger.in > *:nth-child(6) { transition-delay: 300ms; }

/* ---------- Media / fotos ---------- */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--durazno-2); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.f45 { aspect-ratio: 4/5; } .media.f34 { aspect-ratio: 3/4; } .media.f32 { aspect-ratio: 3/2; }
.media .cap { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--marfil); font-weight: 500; }
.media.grad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,11,33,0.5), transparent 46%); }

/* Galería editorial */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: 1fr; gap: 1rem; }
.gallery .media:first-child { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .media:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16/10; } }

/* ---------- Cards ---------- */
.card {
  background: var(--marfil); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.9rem, 1.4rem + 1.3vw, 2.6rem);
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: rgba(240,112,96,0.32); }
}
.card .ic { width: 44px; height: 44px; color: var(--terra); margin-bottom: 1.1rem; }
.dark .card .ic { color: var(--coral); }
.card .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.card h3 { margin-bottom: 0.95rem; }
.card p { color: var(--ink-55); line-height: 1.72; }
.card .num + h3 { margin-top: 1.5rem !important; }
/* Aire consistente entre eyebrow y su título (vence estilos inline) */
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3, .eyebrow + p { margin-top: 1.5rem !important; }
.card .num { font-family: var(--display); font-style: italic; font-size: 2.6rem; line-height: 1; color: rgba(240,112,96,0.3); }
.card ul.stack > li + li { margin-top: 0.85rem; }
.card ul.stack > li { line-height: 1.55; }
.dark .card { background: var(--indigo-2); border-color: var(--line-dark); }
/* Tarjeta clara dentro de sección oscura (ej. form de contacto): texto legible */
.dark .card-light p { color: var(--ink-70); }
.dark .card-light .muted { color: var(--ink-55); }
.dark .card-light h3 { color: var(--indigo); }
.dark .card h3 { color: var(--on-dark); }
.dark .card p { color: var(--on-dark-45); }

/* Stat */
.stat { min-width: 132px; }
.stat .n { font-family: var(--display); font-size: clamp(2rem,1.4rem + 1.6vw,2.7rem); color: var(--coral); line-height: 1; }
.stat .l { font-size: var(--text-sm); color: var(--ink-55); margin-top: 0.5rem; line-height: 1.4; max-width: 22ch; }
.dark .stat .l { color: var(--on-dark-45); }

/* Padecimientos */
.cond-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 780px) { .cond-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cond-grid { grid-template-columns: 1fr; } }
.cond { background: var(--marfil); padding: 1.9rem 1.7rem; transition: background var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cond:hover { background: var(--indigo); } .cond:hover h4, .cond:hover p { color: var(--marfil); } }
.cond h4 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--indigo); margin-bottom: 0.55rem; transition: color var(--dur-micro) var(--ease-out); }
.cond p { font-size: var(--text-sm); color: var(--ink-55); transition: color var(--dur-micro) var(--ease-out); }

/* Precios */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.price { background: var(--marfil); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .price:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); } }
.price.feature { background: var(--indigo); color: var(--marfil); }
.price h4 { font-family: var(--body); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.9rem; font-weight: 600; }
.price .amt { font-family: var(--display); font-size: 2.7rem; line-height: 1; color: var(--indigo); }
.price.feature .amt { color: var(--marfil); font-size: 1.9rem; }
.price .amt small { font-size: 1rem; color: var(--ink-55); }
.price p { font-size: var(--text-sm); color: var(--ink-55); margin-top: 1rem; line-height: 1.6; }
.price .amt { margin-bottom: 0.2rem; }
.price.feature p { color: var(--on-dark-72); }

/* Timeline proceso */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; z-index: 0; left: 27px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--coral), rgba(240,112,96,0.12)); }
@media (max-width: 640px) { .timeline::before { left: 21px; } }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.6rem; padding-block: 1.9rem; align-items: start; position: relative; z-index: 1; }
@media (max-width: 640px) { .step { grid-template-columns: 44px 1fr; gap: 1rem; } }
.step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--indigo); color: var(--marfil); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-size: 1.4rem; box-shadow: 0 0 0 6px var(--marfil); transition: background var(--dur-micro) var(--ease-out); }
@media (max-width: 640px) { .step .dot { width: 44px; height: 44px; font-size: 1.1rem; } }
@media (hover: hover) and (pointer: fine) { .step:hover .dot { background: var(--coral); } }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink-55); line-height: 1.7; }

/* Signature: espiral + waveform de voz */
.spiral-draw path { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.spiral-draw.in path { animation: draw 2.2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ghost-mark { position: absolute; pointer-events: none; user-select: none; z-index: 0; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--ink-70); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-base); color: var(--ink);
  padding: 0.85rem 1rem; border: 1.5px solid rgba(36,26,56,0.16); border-radius: 12px; background: var(--niebla);
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(240,112,96,0.16); }
.info-row { display: flex; align-items: flex-start; gap: 1.1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line-dark); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic2 { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(240,112,96,0.16); display: flex; align-items: center; justify-content: center; }
.info-row .ic2 svg { width: 20px; stroke: var(--coral); fill: none; stroke-width: 1.6; }
.info-row h4 { font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.15rem; }
.info-row p, .info-row a { color: var(--on-dark-72); font-size: var(--text-base); }
@media (hover: hover) and (pointer: fine) { .info-row a:hover { color: var(--coral); } }

/* ---------- Footer ---------- */
.footer { background: var(--indigo-3); color: var(--on-dark); padding-block: clamp(3.5rem,2rem + 5vw,6rem) 2rem; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; position: relative; z-index: 1; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer .wm { font-family: var(--display); font-weight: 600; font-size: 2rem; letter-spacing: 0.04em; color: var(--marfil); }
.footer .wm em { font-style: italic; color: var(--coral); }
.footer .tag { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--on-dark-72); margin-top: 0.6rem; }
.footer h5 { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.1rem; }
.footer .fcol a, .footer .fcol p { display: block; font-size: var(--text-sm); color: var(--on-dark-72); margin-bottom: 0.65rem; transition: color var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer .fcol a:hover { color: var(--coral); } }
.footer-bottom { margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--text-xs); color: var(--on-dark-45); position: relative; z-index: 1; }
.footer-bottom a { color: var(--coral); }

/* Page hero interior */
.page-hero { padding-top: clamp(8rem, 6rem + 6vw, 12rem); }

/* ---------- Testimonios ---------- */
.case-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.4rem, 1.6rem + 3vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

.vframe { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0c0716; box-shadow: var(--shadow-lg); max-width: 360px; margin-inline: auto; aspect-ratio: 9 / 16; }
.vframe video { width: 100%; height: 100%; object-fit: cover; }
.vframe .live { position: absolute; left: 0.9rem; top: 0.9rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border-radius: 100px; background: rgba(18,11,33,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--marfil); font-weight: 600; pointer-events: none; }
.vframe .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(240,112,96,0.28); }

.vtag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 1.1rem; }
.vtag svg { width: 16px; height: 16px; stroke: var(--coral); fill: none; stroke-width: 1.8; }

.quote-lg .qmark { width: 40px; height: 40px; color: var(--coral); opacity: 0.45; margin-bottom: 0.9rem; }
.quote-lg blockquote { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem); line-height: 1.3; color: var(--indigo); font-weight: 500; letter-spacing: -0.01em; }
.quote-lg blockquote .hl { color: var(--terra); font-style: italic; }
.quote-cite { margin-top: 1.9rem; }
.quote-cite .who { font-weight: 600; color: var(--ink); font-size: var(--text-base); }
.quote-cite .meta { font-size: var(--text-sm); color: var(--ink-55); margin-top: 0.15rem; }

.letter-proof { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.9rem; padding: 0.85rem 1.2rem 0.85rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--niebla); transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .letter-proof:hover { border-color: rgba(240,112,96,0.4); transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.letter-proof img { width: 52px; height: 66px; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: var(--shadow-sm); flex-shrink: 0; background: #fff; }
.letter-proof .lp-t { font-weight: 600; font-size: var(--text-sm); color: var(--ink); display: flex; align-items: center; gap: 0.4rem; }
.letter-proof .lp-t svg { width: 15px; height: 15px; stroke: var(--terra); fill: none; stroke-width: 1.8; }
.letter-proof .lp-s { font-size: var(--text-xs); color: var(--ink-55); margin-top: 0.15rem; }

/* Tarjeta testimonio escrito (grid) */
.tcard { background: var(--marfil); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 1.4rem + 1.1vw, 2.4rem); display: flex; flex-direction: column; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: rgba(240,112,96,0.32); } }
.tcard .qmark { width: 30px; height: 30px; color: var(--coral); opacity: 0.5; margin-bottom: 0.9rem; }
.tcard blockquote { font-family: var(--display); font-size: 1.32rem; line-height: 1.42; color: var(--indigo); flex-grow: 1; }
.tcard figcaption { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tcard .who { font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.tcard .meta { font-size: var(--text-xs); color: var(--ink-55); margin-top: 0.15rem; }

/* Thumbnail de video clickable (home) */
.vthumb { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: #0c0716; box-shadow: var(--shadow-lg); max-width: 320px; margin-inline: auto; aspect-ratio: 9 / 16; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,7,22,0.55), transparent 55%); }
@media (hover: hover) and (pointer: fine) { .vthumb:hover img { transform: scale(1.04); } }
.vthumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 66px; height: 66px; border-radius: 50%; background: rgba(251,244,241,0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); transition: transform var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out); }
.vthumb .play svg { width: 24px; height: 24px; fill: var(--coral); margin-left: 3px; }
@media (hover: hover) and (pointer: fine) { .vthumb:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--marfil); } }
.vthumb .live { position: absolute; left: 0.9rem; top: 0.9rem; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border-radius: 100px; background: rgba(18,11,33,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--marfil); font-weight: 600; }
.vthumb .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(240,112,96,0.28); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .spiral-draw path { stroke-dashoffset: 0 !important; }
}
