/* ============================================================================
   LAUDE Consultores — styles.css
   Archetype: Light Editorial Corporate (fondo blanco, serio y sobrio)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Fondo claro (claridad / rigor) */
  --bg:        #fbfaf7;
  --bg-2:      #f4f1ea;
  --bg-3:      #ece8dd;

  /* Texto — navy profundo, nunca negro puro */
  --ink:       #0e1526;
  --ink-soft:  #3f4a60;
  --ink-mute:  #5e6a7d;

  /* Acentos por teoría de color del negocio (calibrados para blanco) */
  --gold:      #a07c2a;   /* valor / finanzas (marca: títulos, íconos, acentos grandes) */
  --gold-ink:  #82641c;   /* dorado para texto pequeño — cumple contraste AA sobre blanco */
  --teal:      #0e7a63;   /* crecimiento / mercado */
  --blue:      #2853ae;   /* confianza / ventas */
  --violet:    #b5522e;   /* creatividad / marketing */
  --coral:     #e0556a;

  --accent:    var(--teal);

  /* "Glass" adaptado a fondo claro (tarjetas blancas con borde y sombra) */
  --glass:     #fffefb;
  --glass-2:   #f6f3ec;
  --glass-brd: rgba(14,21,38,0.09);
  --glass-brd-2: rgba(14,21,38,0.18);

  --line:      rgba(14,21,38,0.08);

  /* Sombras suaves para dar profundidad sobre blanco */
  --shadow-sm: 0 2px 10px -4px rgba(14,21,38,0.10);
  --shadow:    0 18px 44px -26px rgba(14,21,38,0.24);
  --shadow-lg: 0 40px 80px -40px rgba(14,21,38,0.28);

  --radius:    22px;
  --radius-lg: 30px;
  --maxw:      1200px;

  --ease-out:  cubic-bezier(.22,.61,.36,1);
  --ease-io:   cubic-bezier(.65,.05,.36,1);

  /* Tipografía todo-sans, corporativa y sobria */
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.03em; }
h1 .text-serif, h2 .text-serif, h3 .text-serif { font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accesibilidad: skip link y foco visible ---------- */
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 300;
  background: var(--ink); color: #ffffff; font-size: 0.9rem;
  padding: 0.7rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Fondo global: wash sutil (sin filtros, ligero y sobrio) ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 15% 12%, rgba(40,83,174,0.05) 0%, transparent 55%),
    radial-gradient(55% 50% at 88% 8%, rgba(14,122,99,0.05) 0%, transparent 55%),
    radial-gradient(60% 55% at 80% 92%, rgba(181,82,46,0.04) 0%, transparent 55%),
    radial-gradient(55% 50% at 12% 90%, rgba(160,124,42,0.05) 0%, transparent 55%);
  pointer-events: none;
}

/* Grain (desactivado en tema claro: innecesario y costoso de repintar) */
.bg-grain {
  display: none;
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(1.8rem, 3.5vw, 2.8rem); position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: 0.6rem;
}
.section-head { max-width: 640px; margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 0.8rem;
  text-wrap: balance;
}
.section-head .lead { color: var(--ink-soft); margin-top: 1rem; font-size: 1.06rem; max-width: 54ch; }
/* Palabra de acento: mismo sans, un solo tono sobrio (sin cursiva ni degradado) */
.text-serif { color: var(--gold); font-weight: 600; }
.grad-word {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor; color: var(--gold);
}


/* ---------- Aurora del hero (ambiente en movimiento, estilo sobrio) ---------- */
.hero-aurora {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; pointer-events: none; z-index: -1;
}
.hero-aurora i {
  position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform;
  animation: aurora 20s ease-in-out infinite alternate;
}
.hero-aurora i:nth-child(1) {
  width: 64vw; height: 64vw; left: -16vw; top: -22vw;
  background: radial-gradient(circle, rgba(14,122,99,0.26), transparent 62%);
}
.hero-aurora i:nth-child(2) {
  width: 56vw; height: 56vw; right: -14vw; top: -4vh;
  background: radial-gradient(circle, rgba(160,124,42,0.22), transparent 62%);
  animation-duration: 26s; animation-delay: -8s;
}
.hero-aurora i:nth-child(3) {
  width: 52vw; height: 52vw; left: 26vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(40,83,174,0.16), transparent 62%);
  animation-duration: 32s; animation-delay: -16s;
}
.hero-aurora i:nth-child(4) {
  width: 38vw; height: 38vw; right: 16vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(181,82,46,0.14), transparent 62%);
  animation-duration: 23s; animation-delay: -4s;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vh, 0) scale(1.18); }
  100% { transform: translate3d(-5vw, -3vh, 0) scale(1.06); }
}
@media (max-width: 700px) { .hero-aurora i { filter: blur(48px); } }
@media (prefers-reduced-motion: reduce) { .hero-aurora i { animation: none; } }

/* ---------- Sistema de líneas (cartografía + trayectoria) ---------- */
/* Capa global: curvas de nivel con flujo de datos */
.bg-lines { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-lines svg { width: 100%; height: 100%; display: block; }
.bg-lines path { fill: none; stroke-width: 1.3; }
.bg-lines .flow {
  stroke-dasharray: 3 15;
  animation: lineflow 10s linear infinite;
}
.bg-lines .flow.slow { animation-duration: 16s; }
@keyframes lineflow { to { stroke-dashoffset: -180; } }

/* Trayectoria del hero: se dibuja al cargar */
.hero-line {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0.5vh; width: min(1080px, 88vw); height: auto;
  z-index: -1; overflow: visible;
}
.hero-line .hl-main {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: heroDraw 2.4s var(--ease-out) 0.5s forwards;
}
.hero-line .hl-echo {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: heroDraw 2.4s var(--ease-out) 0.9s forwards;
}
.hero-line .hl-dot { opacity: 0; animation: hlDot .6s ease 2.8s forwards; }
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
@keyframes hlDot { to { opacity: 1; } }

/* Micro-líneas: se trazan al entrar en pantalla */

@media (prefers-reduced-motion: reduce) {
  .bg-lines .flow { animation: none; }
  .hero-line .hl-main, .hero-line .hl-echo { animation: none; stroke-dashoffset: 0; }
  .hero-line .hl-dot { animation: none; opacity: 1; }
  .reveal .eyebrow::before, .pillar::before { transition: none; transform: scaleX(1); }
}

/* ---------- Botones ---------- */
.btn {
  --_bg: var(--glass); --_fg: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.92rem 1.6rem; border-radius: 100px;
  font-weight: 500; font-size: 0.96rem; letter-spacing: -0.01em;
  border: 1px solid var(--glass-brd); background: var(--_bg); color: var(--_fg);
  transition: transform .3s var(--ease-out), background .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  --_fg: #ffffff;
  background: linear-gradient(120deg, #0f2e26, #175948);
  border-color: transparent;
  box-shadow: 0 14px 30px -12px rgba(15,46,38,0.45);
}
.btn-primary:hover { box-shadow: 0 18px 40px -10px rgba(15,46,38,0.55); }
.btn-ghost:hover { background: var(--glass-2); border-color: var(--glass-brd-2); }
.btn-wa {
  background: var(--glass); border-color: var(--glass-brd); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-wa svg { color: #17a34a; fill: #17a34a; }
.btn-wa:hover {
  border-color: color-mix(in srgb, #1faa54 45%, transparent);
  background: color-mix(in srgb, #25d366 6%, var(--glass));
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.1rem, 3vw, 2.2rem);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(251,250,247,0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(14,21,38,0.4);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(155deg, #123c33, #0a231d);
  color: #e4c483; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  border: 1px solid rgba(228,196,131,0.20);
  box-shadow: 0 6px 16px -8px rgba(14,21,38,0.55);
}
.brand small { display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; margin-top: 1px; }
.brand-name { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: 0.94rem; color: var(--ink-soft); position: relative; padding: 0.2rem 0; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--ink); font-weight: 600; }
.nav-links a.is-current::after { transform: scaleX(1); }
.mobile-menu a.is-current { color: var(--gold); }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  padding-top: clamp(5.2rem, 8vh, 6rem);
  padding-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem); letter-spacing: -0.03em;
  margin-top: 0.7rem; text-wrap: balance; max-width: 18ch;
}
.page-lead { color: var(--ink-soft); margin-top: 0.8rem; font-size: 1.02rem; max-width: 60ch; line-height: 1.6; }

/* ---------- Banda CTA reutilizable ---------- */
.cta-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
  padding-block: clamp(1.2rem, 2.2vw, 1.8rem);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.cta-band p { color: var(--ink-mute); margin-top: 0.45rem; }
.cta-band .btn { flex: none; }
@media (max-width: 560px) { .cta-band .btn { width: 100%; justify-content: center; } }

/* ---------- Teaser de servicios (home) ---------- */
.svc-cta { margin-top: clamp(1.2rem, 2vw, 1.6rem); text-align: center; }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(251,250,247,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: 2rem clamp(1.4rem, 6vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { margin-top: 1.6rem; justify-content: center; }
.mobile-menu a.btn-primary { color: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-top: 4.5rem; padding-bottom: 0; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* Evita que el carrusel (slides al 100%) infle el ancho mínimo de las columnas */
.hero-copy, .hero-visual { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.9rem; border-radius: 100px; border: 1px solid var(--glass-brd);
  background: var(--glass); font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 1.1rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(23,153,124,0.5);} 70%{box-shadow:0 0 0 10px rgba(23,153,124,0);} 100%{box-shadow:0 0 0 0 rgba(23,153,124,0);} }
@media (prefers-reduced-motion: reduce) { .hero-badge .dot { animation: none; } }

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.02; text-wrap: balance;
  letter-spacing: -0.03em;
}
.hero h1 .text-serif { font-weight: 400; }
.hero-sub {
  margin-top: 1.1rem; font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { margin-top: 1.4rem; display: flex; flex-wrap: nowrap; gap: 0.8rem; }
.hero-actions .btn { white-space: nowrap; padding: 0.85rem 1.25rem; font-size: 0.92rem; }
@media (max-width: 640px) {
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
.hero-note {
  margin-top: 1.1rem; font-size: 0.86rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,254,251,0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid color-mix(in srgb, var(--teal) 45%, transparent);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  animation: notePulse 2.8s ease-out infinite;
}
@keyframes notePulse {
  0%   { box-shadow: 0 0 0 0 rgba(14,122,99,0.32), var(--shadow-sm); }
  70%  { box-shadow: 0 0 0 10px rgba(14,122,99,0), var(--shadow-sm); }
  100% { box-shadow: 0 0 0 0 rgba(14,122,99,0), var(--shadow-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-note { animation: none; box-shadow: var(--shadow-sm); }
}
.hero-note svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.hero-note b { color: var(--gold-ink); font-weight: 600; }
.hero-trust { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.4rem; color: var(--ink-mute); font-size: 0.85rem; flex-wrap: wrap; }
.hero-trust strong { color: var(--ink); font-weight: 600; }
.hero-trust .sep { width: 1px; height: 26px; background: var(--line); }

/* Panel flotante glass del hero */
.hero-visual { position: relative; }
.hero-panel {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  padding: 0.95rem; max-width: 420px; margin-inline: auto;
  box-shadow: var(--shadow-lg);
}
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
@media (prefers-reduced-motion: reduce) { .hero-panel { animation: none; } }
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.hero-panel-top span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.hero-panel-dots { display: flex; gap: 5px; }
.hero-panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--glass-brd-2); }
.hero-panel-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 1.1rem; border: 1px solid var(--line); }
.hero-panel-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.hero-metric { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 0.95rem; }
.hero-metric b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; display: block; letter-spacing: -0.02em; }
.hero-metric small { color: var(--ink-mute); font-size: 0.72rem; letter-spacing: 0.02em; }
.hero-metric.g b { color: var(--gold); } .hero-metric.t b { color: var(--teal); }
.hero-metric.b b { color: var(--blue); } .hero-metric.v b { color: var(--violet); }

/* ---------- Hero panel: gráfica de diagnóstico ---------- */
.hero-live {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); display: inline-flex; align-items: center; gap: 0.4rem;
}
.hero-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(14,122,99,0.5); animation: pulse 2.4s infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-live i { animation: none; } }

/* Carrusel de pilares (4 tarjetas, avance automático cada 5 s) */
.hero-carousel { overflow: hidden; }
.hero-track {
  display: flex; align-items: stretch;
  transition: transform .7s var(--ease-io);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }
.hero-slide { flex: 0 0 100%; min-width: 100%; }

.hero-chart {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.85rem 0.9rem 0.7rem;
  height: 100%; display: flex; flex-direction: column;
}
.hero-slide-tag {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bc, var(--ink-mute)) 85%, var(--ink));
  margin-bottom: 0.3rem;
}
.hero-chart-svg { margin-top: auto; }
.hero-chart-legend { margin-top: 0.55rem; }

.hero-dots { display: flex; justify-content: center; gap: 7px; margin-top: 0.7rem; }
.hero-dot {
  width: 7px; height: 7px; border-radius: 100px; cursor: pointer;
  background: rgba(14,21,38,0.15); transition: width .3s var(--ease-out), background .3s;
}
.hero-dot.is-active { width: 20px; background: var(--teal); }
.hero-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.5rem; }
.hero-chart-head b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; display: block; letter-spacing: -0.01em; }
.hero-chart-head small { color: var(--ink-mute); font-size: 0.66rem; }
.hero-chart-badge {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; line-height: 1; color: var(--bc, var(--teal));
  background: color-mix(in srgb, var(--bc, var(--teal)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc, var(--teal)) 32%, transparent);
  padding: 0.28rem 0.5rem; border-radius: 9px; flex: none; white-space: nowrap;
}

.hero-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-mute); letter-spacing: 0.04em; }
.chart-area { opacity: 0; animation: chartArea 1s 0.5s var(--ease-out) forwards; }
.chart-line {
  stroke-dasharray: 460; stroke-dashoffset: 0;
  animation: chartDraw 1.8s var(--ease-out) forwards;
}
@keyframes chartDraw { from { stroke-dashoffset: 460; } to { stroke-dashoffset: 0; } }
@keyframes chartArea { to { opacity: 1; } }
.chart-dot-ring { transform-box: fill-box; transform-origin: center; animation: dotPulse 2.2s ease-out infinite; }
@keyframes dotPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chart-line { animation: none; } .chart-area { opacity: 1; animation: none; } .chart-dot-ring { animation: none; opacity: 0; }
}

.hero-chart-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.45rem; font-size: 0.64rem; color: var(--ink-mute); }
.hero-chart-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 0.4rem; }
.hero-chart-legend .lg-blue { background: var(--blue); }
.hero-chart-legend .lg-mute { background: #94a0b4; }
.hero-chart-legend .lg-teal { background: var(--teal); }
.hero-chart-legend .lg-violet { background: var(--violet); }
.chart-axis-teal { fill: var(--teal); }
.chart-axis-violet { fill: var(--violet); }
.chart-axis-blue { fill: var(--blue); }
.chart-axis-sm { font-size: 8px; }
.chart-num { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.02em; }
/* Halo claro para etiquetas que cruzan líneas de la gráfica */
.chart-label { stroke: var(--bg-2); stroke-width: 3px; paint-order: stroke; }

.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.hero-kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 13px; padding: 0.7rem 0.65rem; }
.hero-kpi b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; display: block; line-height: 1; letter-spacing: -0.02em; }
.hero-kpi small { color: var(--ink-mute); font-size: 0.66rem; line-height: 1.25; display: block; margin-top: 0.3rem; }
.hero-kpi:nth-child(1) b { color: var(--gold); }
.hero-kpi:nth-child(2) b { color: var(--blue); }
.hero-kpi:nth-child(3) b { color: var(--teal); }

.hero-float-chip {
  position: absolute; padding: 0.6rem 0.9rem; border-radius: 14px;
  background: rgba(251,250,247,0.85); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.8rem; display: flex; align-items: center; gap: 0.55rem; box-shadow: var(--shadow);
}
.hero-float-chip svg { width: 18px; height: 18px; }
.chip-1 { top: -16px; right: 4%; animation: floaty 6s ease-in-out infinite; }
.chip-2 { top: 47%; left: -26px; bottom: auto; animation: floaty 8s ease-in-out .6s infinite; }
@media (prefers-reduced-motion: reduce) { .hero-float-chip { animation: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* En móvil el panel se apila debajo del texto, centrado */
  .hero-visual { margin-top: 2.2rem; }
  .hero-panel { max-width: min(447px, 100%); }
}

/* ---------- Hero tipográfico centrado (sin panel) ---------- */
.hero-center { padding-bottom: 1rem; }
.hero-center .hero-grid { width: 100%; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-center h1 { max-width: 17ch; }
.hero-center .hero-sub { margin-inline: auto; max-width: 52ch; }
.hero-center .hero-actions { justify-content: center; }

/* ---------- Barra de stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg-2); padding: 1.8rem 1.4rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; display: block; letter-spacing: -0.02em; }
.stat span { color: var(--ink-mute); font-size: 0.86rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Glass card genérica ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- Pilares ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1100px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  position: relative; padding: 1.5rem 1.4rem 1.45rem;
  background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
}
/* Capa esmeralda que asciende al pasar el cursor: la tarjeta se viste del logo */
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(155deg, #123c33, #0a231d);
  transform: translateY(101%);
  transition: transform .5s var(--ease-io);
}
.pillar > * { position: relative; z-index: 1; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar:hover::before { transform: translateY(0); }
.pillar h3, .pillar p, .pillar-list li, .pillar-more li, .pillar-q, .pillar-toggle, .pillar-more .pillar-more-title { transition: color .35s; }
.pillar:hover h3 { color: #f6f1e4 !important; }
.pillar:hover p, .pillar:hover .pillar-list li, .pillar:hover .pillar-more li { color: rgba(246,241,228,0.8) !important; }
.pillar:hover .pillar-more .pillar-more-title { color: rgba(246,241,228,0.55); }
.pillar:hover .pillar-q { color: #f6f1e4; }
.pillar:hover .pillar-toggle { color: #e4c483; }
.pillar:hover .pillar-more-inner > div { border-top-color: rgba(246,241,228,0.22); }
.pillar-mark { transition: background .4s, color .4s, border-color .4s; }
.pillar:hover .pillar-mark {
  background: linear-gradient(155deg, #eed9a8, #dcc088);
  color: #0f2e26; border-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .pillar, .pillar::before { transition: none; }
}
.pillar-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ink-mute); }
.pillar-mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(155deg, #123c33, #0a231d);
  color: #e4c483; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.05em; border: 1px solid rgba(228,196,131,0.20);
  margin-bottom: 0.85rem;
}
.pillar h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.pillar p { color: var(--ink-soft); margin-top: 0.55rem; font-size: 0.9rem; }
.pillar-list { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pillar-list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--ink-mute); }
.pillar-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* Detalle expandible de cada pilar */
.pillar-toggle {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.45rem;
  background: none; border: 0; padding: 0.5rem 0.6rem 0.5rem 0;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); cursor: pointer;
}
.pillar-toggle svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.pillar.is-open .pillar-toggle svg { transform: rotate(180deg); }
.pillar-more { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.pillar-more-inner > div { padding-top: 1.1rem; border-top: 1px solid var(--line); margin-top: 1.1rem; }
.pillar-more .pillar-more-title {
  margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 400;
}
.pillar-more ul { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.pillar-more li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); }
.pillar-more li::before { content: "→"; color: var(--gold-ink); flex: none; font-size: 0.8rem; }
.pillar-q { font-family: var(--font-display); font-style: italic; font-size: 0.94rem; color: var(--ink); }
@media (max-width: 720px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step { position: relative; padding: 1.7rem 1.5rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm); }
.step-n {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { font-size: 1.1rem; margin: 0.8rem 0 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.9rem; }
.step-meta {
  display: block; margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px dashed var(--line);
  font-size: 0.78rem; color: var(--ink-mute);
}
.step-meta b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Casos de éxito ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.case {
  border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--glass-brd);
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s; box-shadow: var(--shadow-sm);
}
.case:hover { transform: translateY(-6px); border-color: var(--glass-brd-2); box-shadow: var(--shadow); }
.case-img { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); filter: saturate(1.05); }
.case:hover .case-img img { transform: scale(1.07); }
.case-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,21,38,0.28)); }
.case-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 0.7rem;
  border-radius: 100px; background: rgba(251,250,247,0.9); border: 1px solid var(--glass-brd); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.case-body { padding: 1.5rem 1.5rem 1.7rem; }
.case-metric { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.case-metric.g { color: var(--gold); } .case-metric.t { color: var(--teal); } .case-metric.b { color: var(--blue); }
.case h3 { font-size: 1.15rem; margin: 0.5rem 0; }
.case p { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- Compromisos ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.promise {
  padding: 1.3rem 1.2rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.promise svg { width: 22px; height: 22px; color: var(--gold); }
.promise b { font-size: 0.96rem; letter-spacing: -0.01em; }
.promise span { color: var(--ink-mute); font-size: 0.84rem; line-height: 1.45; }
@media (max-width: 900px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- Sobre nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.about-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.about-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.about-figure .badge {
  position: absolute; bottom: 16px; left: 16px; right: 16px; padding: 1rem 1.2rem; border-radius: 16px;
  background: rgba(251,250,247,0.9); border: 1px solid var(--glass-brd); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.about-figure .badge b { font-family: var(--font-display); font-size: 1.3rem; }
.about-figure .badge span { color: var(--ink-mute); font-size: 0.82rem; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); text-wrap: balance; }
.about-text p { color: var(--ink-soft); margin-top: 0.9rem; }
.about-values { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.about-value { display: flex; gap: 0.8rem; align-items: flex-start; }
.about-value svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.about-value b { display: block; font-size: 0.98rem; }
.about-value span { color: var(--ink-mute); font-size: 0.85rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-figure { max-width: 420px; } }

/* ---------- Socios directores ---------- */
.partners { margin-top: clamp(1.4rem, 2.4vw, 2rem); padding-top: clamp(1.2rem, 2vw, 1.6rem); border-top: 1px solid var(--line); }
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 0.9rem; }
.partner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm);
}
.partner-av {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(155deg, #123c33, #0a231d); color: #e4c483;
  border: 1px solid rgba(228,196,131,0.25);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.partner-av svg { width: 22px; height: 22px; }
.partner b { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.partner div > span { display: block; color: var(--ink-mute); font-size: 0.84rem; margin-top: 0.1rem; }
.partner a { display: inline-block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--blue); font-weight: 500; }
.partner a:hover { text-decoration: underline; }
@media (max-width: 640px) { .partners-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 0.55rem; }
.faq-item {
  border: 1px solid var(--glass-brd); border-radius: 16px; background: var(--glass);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.15rem; background: none; border: 0; text-align: left;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--ink-mute); transition: transform .35s var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a > div { padding: 0 1.3rem 1.15rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Nota de precio en contacto ---------- */
.cta-price {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin-top: 1rem !important; font-size: 0.9rem; color: var(--ink-soft);
  padding: 0.75rem 0.95rem; border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
}
.cta-price svg { width: 17px; height: 17px; flex: none; color: var(--teal); margin-top: 2px; }

/* ---------- Testimonio ---------- */
.quote { text-align: center; max-width: 900px; margin-inline: auto; }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: 0.5; color: var(--gold); opacity: 0.5; }
.quote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 3.3vw, 2.2rem); line-height: 1.35; text-wrap: balance; margin: 1rem 0 1.8rem; }
.quote-author { display: inline-flex; align-items: center; gap: 0.8rem; }
.quote-author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--blue)); display: grid; place-items: center; color: #ffffff; font-weight: 600; }
.quote-author b { display: block; } .quote-author span { color: var(--ink-mute); font-size: 0.86rem; }

/* ---------- CTA / Formulario ---------- */
.cta-section { position: relative; }
.cta-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 2.6vw, 2.2rem); border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--glass-brd);
  overflow: hidden; position: relative; box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; top: -140px; left: -80px;
  background: radial-gradient(circle, rgba(176,125,26,0.14), transparent 70%); filter: blur(40px); pointer-events: none;
}
.cta-info h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-wrap: balance; }
.cta-info p { color: var(--ink-soft); margin-top: 1rem; }
.cta-contact { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.8rem; }
.cta-contact a, .cta-contact div { display: flex; align-items: center; gap: 0.9rem; color: var(--ink-soft); font-size: 0.96rem; }
/* El bloque de texto puede encogerse y el correo largo puede partirse */
.cta-contact a > span:last-child, .cta-contact > div > span:last-child { min-width: 0; }
.cta-contact b { overflow-wrap: anywhere; }
.cta-contact .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--glass-brd); flex: none; }
.cta-contact .ic svg { width: 20px; height: 20px; }
.cta-contact a:hover { color: var(--ink); }
.cta-contact b { color: var(--ink); display: block; font-weight: 500; }
.cta-contact small { color: var(--ink-mute); }

/* Form */
.form { display: flex; flex-direction: column; gap: 0.8rem; }
/* Honeypot anti-spam: fuera de pantalla y fuera del foco, invisible para humanos */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.hp-field input { pointer-events: none; }
.field { position: relative; }
.field label { display: block; font-size: 0.8rem; color: var(--ink-mute); margin-bottom: 0.35rem; letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 13px; font-family: inherit; font-size: 0.95rem;
  background: var(--bg-2); border: 1px solid var(--glass-brd); color: var(--ink);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 56px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--teal) 55%, transparent);
  background: #fffefa; box-shadow: 0 0 0 4px rgba(14,122,99,0.13);
}
.field select option { background: var(--bg-2); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .btn-primary { justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: 0.78rem; color: var(--ink-mute); text-align: center; }
.form-note a { color: var(--gold); }

.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  padding: 2rem 1rem;
}
.form.is-sent .form-body { display: none; }
.form.is-sent .form-success { display: flex; }
.check-circle { width: 72px; height: 72px; }
.check-circle circle { fill: none; stroke: var(--teal); stroke-width: 4; stroke-dasharray: 200; stroke-dashoffset: 200; }
.check-circle path { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.form.is-sent .check-circle circle { animation: draw .6s var(--ease-out) forwards; }
.form.is-sent .check-circle path { animation: draw .4s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 820px) { .cta-card { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .cta-card { padding: 1.6rem 1.3rem; }
  .cta-contact b { font-size: 0.9rem; }
  .cta-contact a, .cta-contact div { font-size: 0.9rem; }
}

/* ---------- Blog / Ideas ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.post {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.post:hover { transform: translateY(-6px); border-color: var(--glass-brd-2); box-shadow: var(--shadow); }
/* Portada tipográfica por color de pilar — sin fotos de stock */
.post-cover {
  --c: var(--blue); position: relative; aspect-ratio: 16/6; display: grid; place-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--c) 12%, var(--bg-2)), var(--bg-2));
}
.post-cover svg { width: 46px; height: 46px; color: var(--c); opacity: 0.92; }
.post-cover::after {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -50px; top: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 32%, transparent), transparent 70%);
  filter: blur(26px); pointer-events: none;
}
.post-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.34rem 0.62rem;
  border-radius: 100px; background: rgba(251,250,247,0.92); border: 1px solid var(--glass-brd);
  color: color-mix(in srgb, var(--c) 78%, var(--ink)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.post-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-date { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-mute); }
.post h3 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.28; }
.post p { color: var(--ink-soft); font-size: 0.92rem; }
.post-more {
  margin-top: auto; padding-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500; color: var(--blue); transition: gap .3s var(--ease-out);
}
.post-more svg { width: 16px; height: 16px; }
.post:hover .post-more { gap: 0.62rem; }

/* Artículo destacado (cuando hay uno solo, ocupa el ancho) */
.post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 0.9fr 1.1fr; }
.post-featured .post-cover { aspect-ratio: auto; height: 100%; min-height: 190px; border-bottom: 0; border-right: 1px solid var(--line); }
.post-featured .post-body { padding: 1.5rem 1.7rem; justify-content: center; }
.post-featured h3 { font-size: 1.35rem; }
@media (max-width: 720px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { aspect-ratio: 16/6; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Fotografía editorial (tratamiento de paleta) ---------- */
.photo-band {
  margin: clamp(1.3rem, 2.2vw, 1.8rem) 0 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm);
}
.photo-band img {
  width: 100%; aspect-ratio: 21/5; object-fit: cover; object-position: 50% 30%;
  display: block; filter: saturate(0.95) sepia(0.05);
}
.photo-cred {
  text-align: right; margin-top: 0.45rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.about-side { display: flex; flex-direction: column; gap: 0.85rem; }
.about-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.about-photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; filter: saturate(0.68) sepia(0.13) contrast(1.02); }
.post-cover > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.72) sepia(0.1) contrast(1.01);
}
.article-photo { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm); }
.article-photo img { width: 100%; aspect-ratio: 16/6; object-fit: cover; display: block; filter: saturate(0.72) sepia(0.1); }

/* ---------- Artículo (prosa) ---------- */
.article { max-width: 748px; margin-inline: auto; }
.article-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--ink-mute); font-size: 0.8rem; }
.article-meta .post-cat { position: static; }
.prose { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-family: var(--font-display); color: var(--ink); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; margin-top: 2.4rem; }
.prose h3 { font-family: var(--font-display); color: var(--ink); font-size: 1.2rem; letter-spacing: -0.01em; margin-top: 1.8rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: 0.55rem; margin-left: 0.2rem; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: "→"; color: var(--gold-ink); position: absolute; left: 0; top: 0; }
.prose blockquote {
  margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.3rem; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink);
}
.article-cta { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- WhatsApp flotante: versión píldora con texto ----------
   (a.wa-float para ganar a la regla base .wa-float definida más abajo) */
a.wa-float span {
  display: inline-block; overflow: hidden; white-space: nowrap;
  max-width: 0; opacity: 0; margin-left: 0;
  font-weight: 600; font-size: 0.92rem; color: #ffffff;
  transition: max-width .45s var(--ease-out), opacity .28s ease, margin-left .45s var(--ease-out);
}


/* ---------- Ficha institucional (Nosotros) ---------- */
.about-card {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.2rem 1.3rem 0.85rem;
}
.about-card-head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.about-card-head b { display: block; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.about-card-head span { color: var(--ink-mute); font-size: 0.8rem; }
.about-facts { display: flex; flex-direction: column; }
.about-facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.about-facts li:first-child { border-top: 0; }
.about-facts span {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); flex: none;
}
.about-facts b { font-weight: 500; font-size: 0.9rem; color: var(--ink); text-align: right; overflow-wrap: anywhere; }

/* ---------- Contacto real en el footer ---------- */
.footer-contact { margin-top: 0.55rem; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7; }
.footer-contact a { white-space: nowrap; }
.footer-contact a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding-block: 1.4rem 1rem; margin-top: 1.2rem;
  /* fondo de borde a borde aunque el contenido esté centrado */
  box-shadow: 0 0 0 100vmax var(--bg-2);
  clip-path: inset(0 -100vmax);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.6rem; }
.footer-brand p { color: var(--ink-mute); margin-top: 0.7rem; font-size: 0.88rem; max-width: 34ch; }
.footer .footer-h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.6rem; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 0.9rem; padding: 0.2rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 0.82rem; flex-wrap: wrap; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-brd); }
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--glass-2); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  min-width: 58px; height: 58px; border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: linear-gradient(135deg, #1faa54, #25d366); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); border: 0;
  transition: transform .3s var(--ease-out), box-shadow .3s, opacity .3s;
}
.wa-float.is-away { opacity: 0; pointer-events: none; transform: translateY(12px); }
.wa-float:hover, .wa-float:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 16px 40px -8px rgba(37,211,102,0.75);
  padding: 0 1.2rem 0 1rem;
}
.wa-float svg { width: 30px; height: 30px; flex: none; transition: transform .3s var(--ease-out); }
.wa-float:hover svg, .wa-float:focus-visible svg { transform: scale(1.15); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 230px; opacity: 1; margin-left: 0.55rem; }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensivo (gotcha A.4.5) */
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-logo { text-align: center; }
.splash-mark {
  width: 66px; height: 66px; border-radius: 16px; margin: 0 auto 1.2rem; display: grid; place-items: center;
  background: linear-gradient(155deg, #123c33, #0a231d); color: #e4c483;
  border: 1px solid rgba(228,196,131,0.20);
  font-family: var(--font-display); font-weight: 600; font-size: 2.1rem;
  animation: splashPulse 1.6s ease-in-out infinite;
}
@keyframes splashPulse { 0%,100%{transform:scale(1); opacity:1;} 50%{transform:scale(0.92); opacity:0.7;} }
.splash-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.splash-bar { width: 120px; height: 2px; background: var(--line); border-radius: 2px; margin: 1.2rem auto 0; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 2px; animation: loadBar 1.4s var(--ease-io) infinite; }
@keyframes loadBar { 0%{transform:translateX(-120%);} 100%{transform:translateX(360%);} }

/* ---------- Cursor glow (desktop) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(14,122,99,0.06), transparent 62%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; will-change: left, top;
}
.cursor-glow.is-ready { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }
