/* ============================================================
   SISTEMA DE DISEÑO — rodrigocalvo.com.ar
   Versión 1.0
   
   INSTRUCCIONES DE USO:
   - Este archivo se enlaza en TODAS las páginas: <link rel="stylesheet" href="/css/style.css">
   - Las fuentes se descargan de google-webfonts-helper y se guardan en /fonts/
   - No modificar variables sin actualizar todas las páginas
   ============================================================ */

/* ── FUENTES SELF-HOSTED ─────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS DE DISEÑO ────────────────────────────────────── */
:root {
  /* Colores primarios — Azules de marca */
  --teal:         #2D5B8E;   /* Blue 600 — botón primario, links, highlights */
  --teal-hover:   #1A3A5C;   /* Blue 800 — hover de botón primario           */
  --teal-dark:    #0D2137;   /* Blue 900 — footer, CTA band, secciones dark  */
  --teal-light:   #EBF2F8;   /* Blue 50  — fondos suaves, badges             */
  --teal-mid:     #C8D9EA;   /* Blue 200 — bordes de cards, separadores      */
  --blue-400:     #5B85B3;   /* Blue 400 — iconos, bordes activos, acento    */

  /* Escala de grises */
  --black:        #0F0F0E;   /* Títulos, texto principal                     */
  --gray-900:     #3A3A38;   /* Cuerpo de texto (= Gray 800 paleta)          */
  --gray-700:     #3A3A38;   /* Cuerpo de texto, párrafos                    */
  --gray-500:     #6B6B68;   /* Texto secundario, subtítulos, meta           */
  --gray-400:     #A8A8A4;   /* Placeholders, texto deshabilitado            */
  --gray-200:     #C8D9EA;   /* Bordes de cards (Blue 200)                   */
  --gray-100:     #E2E2DE;   /* Bordes, divisores, líneas                    */
  --gray-50:      #F5F5F1;   /* Fondos de secciones alternas                 */
  --white:        #FFFFFF;

  /* Tipografía */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', monospace;

  /* Escala tipográfica */
  --text-xs:      13px;
  --text-sm:      14px;
  --text-base:    17px;
  --text-lg:      20px;
  --text-xl:      22px;
  --text-2xl:     27px;
  --text-3xl:     34px;
  --text-4xl:     44px;
  --text-5xl:     58px;

  /* Espaciado */
  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      20px;
  --space-6:      24px;
  --space-8:      32px;
  --space-10:     40px;
  --space-12:     48px;
  --space-16:     64px;
  --space-20:     80px;
  --space-24:     96px;

  /* Layout */
  --max-width:    1080px;
  --max-prose:    680px;
  --radius-sm:    4px;
  --radius:       6px;
  --radius-lg:    10px;

  /* Sombras */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
  --shadow:       0 2px 8px rgba(0,0,0,0.08);

  /* Transiciones */
  --transition:   0.15s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── NAVEGACIÓN ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-menu a {
  font-size: 15px;
  color: var(--gray-500);
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.nav-menu a:hover { color: var(--black); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a.nav-cta::after { display: none; }

.nav-menu a.active { color: var(--black); font-weight: 500; }
.nav-menu a.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--teal);
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--teal-hover) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-100);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.breadcrumb li {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.breadcrumb li a { transition: color var(--transition); }
.breadcrumb li a:hover { color: var(--teal); }

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--gray-200);
}

.breadcrumb li:last-child { color: var(--gray-500); }

/* ── TIPOGRAFÍA BASE ─────────────────────────────────────── */
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--black);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.prose h1 { font-size: var(--text-4xl); font-weight: 600; margin-bottom: var(--space-6); }
.prose h2 { font-size: var(--text-2xl); font-weight: 600; margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--text-xl); font-weight: 600; margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose h4 { font-size: var(--text-lg); font-weight: 500; margin-top: var(--space-6); margin-bottom: var(--space-3); }

.prose p { margin-bottom: var(--space-5); color: var(--gray-700); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

.prose strong { font-weight: 600; color: var(--black); }
.prose em { font-style: italic; }

.prose a {
  display: inline;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--teal-light);
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}

.prose a:hover {
  background: var(--teal-mid);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: var(--teal-hover);
}

.prose ul, .prose ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-2); color: var(--gray-700); line-height: 1.7; }

.prose blockquote {
  border-left: 3px solid var(--teal);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--teal-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p {
  font-size: var(--text-lg);
  color: var(--gray-900);
  font-style: italic;
  margin: 0;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--gray-900);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: var(--space-12) 0;
}

/* ── COMPONENTES UI ──────────────────────────────────────── */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  padding: 12px 22px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45,91,142,0.28);
}

.btn--secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-200);
}

.btn--secondary:hover {
  border-color: var(--gray-500);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover { color: var(--teal-dark); }

.btn--lg { font-size: 15px; padding: 14px 28px; }
.btn--sm { font-size: 13px; padding: 8px 16px; }

/* Badges / etiquetas */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.badge--teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.badge--gray {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* Etiqueta de sección */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-3);
  display: block;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: border-color var(--transition), transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: var(--teal-mid);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}

.card--teal {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}

.card--featured {
  border-color: var(--teal);
}

/* Separator line con label */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-16) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

/* Highlight de texto */
.highlight { color: var(--teal); }

/* Inline body link — interlinks en contenido */
.link-soft {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}

.link-soft:hover {
  background: var(--teal-mid);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: var(--teal-hover);
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}

.link-arrow:hover { gap: 10px; }
.link-arrow::after { content: '→'; }

/* ── HERO (componente compartido) ────────────────────────── */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--gray-100);
}

.hero--inner {
  padding: var(--space-12) 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-6);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--black);
  max-width: 820px;
  margin-bottom: var(--space-6);
}

.hero h1 .highlight { color: var(--teal); }

.hero-lead {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-eyebrow-avatar { display: none; }

/* Hero layout two-column */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
}

.hero-content { min-width: 0; }

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  display: block;
  width: 420px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-layout {
    display: block;
  }
  .hero-photo { display: none; }
  .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .hero-eyebrow-avatar {
    display: inline-block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--teal-mid);
  }
  .hero-eyebrow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Stats row */
.stats-row {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.stat-num {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.8px;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* ── SECCIONES ───────────────────────────────────────────── */
.section {
  padding: var(--space-20) 0;
}

.section--gray {
  background: var(--gray-50);
}

.section--dark {
  background: var(--teal-dark);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--black);
  margin-top: var(--space-3);
}

.section-header--dark h2 { color: var(--white); }

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-500);
  margin-top: var(--space-4);
  max-width: 560px;
  line-height: 1.7;
}

/* ── CONTEXT SECTION ─────────────────────────────────────── */
.context-h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--black);
  margin-top: var(--space-3);
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .context-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── GRIDS ───────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--gray-100); }

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-6) 0;
}

.faq-question {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-3);
}

.faq-answer {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.75;
  max-width: var(--max-prose);
}

/* ── CTA FINAL (componente compartido) ───────────────────── */
.cta-band {
  padding: var(--space-20) 0;
  background: var(--teal-dark);
}

.cta-band h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--white);
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.cta-band h2 .highlight { color: #A8D4EF; }

.cta-band p {
  font-size: var(--text-lg);
  color: #C8D9EA;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--teal-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-10) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand img {
  display: block;
  height: 58px;
  width: auto;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: #C8D9EA;
  line-height: 1.6;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: #C8D9EA;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

/* ── POSTS (blog) ────────────────────────────────────────── */
.post-card {
  border-top: 2px solid var(--gray-100);
  padding-top: var(--space-6);
  transition: border-color var(--transition);
}

.post-card:hover { border-color: var(--teal); }

.post-cat {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-2);
}

.post-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: var(--space-2);
  color: var(--black);
}

.post-card h3 a:hover { color: var(--teal); }

.post-excerpt {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.65;
}

.post-meta {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--space-3);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-20: 56px;
    --space-16: 48px;
    --space-12: 36px;
  }

  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-5) var(--space-6);
    gap: var(--space-5);
    box-shadow: var(--shadow);
  }

  .nav-cta {
    margin-top: var(--space-2);
  }

  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .stats-row { gap: var(--space-6); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-5); }
  .hero h1 { letter-spacing: -0.8px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── PROCESO / STEPS (fondo oscuro) ──────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.step-item {
  padding: var(--space-6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
}

.step-num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #A8D4EF;
  margin-bottom: var(--space-3);
  display: block;
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.step-desc {
  font-size: var(--text-base);
  color: #C8D9EA;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── FORMULARIO DE CONTACTO ───────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--black);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,91,142,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.contact-aside {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-aside h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--black);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.contact-detail-value {
  font-size: var(--text-base);
  color: var(--black);
  line-height: 1.5;
}

.form-disclaimer {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-top: var(--space-4);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── GRID CONTENIDO + STATS (2:1) ───────────────────────── */
.grid-content-stats {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 768px) {
  .grid-content-stats { grid-template-columns: 1fr; }
}

/* ── CHECKLIST (entregables) ─────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-6);
}

.checklist li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.6;
}

.checklist li::before {
  content: '✓';
  font-weight: 600;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ── FAQ details/summary ─────────────────────────────────── */
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--gray-400);
  flex-shrink: 0;
}

details.faq-item[open] summary::after { content: '−'; }

/* ── UTILIDADES ──────────────────────────────────────────── */
.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;
}

.text-teal { color: var(--teal); }
.text-muted { color: var(--gray-400); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* ── IMAGEN DE ARTÍCULO ──────────────────────────────────── */
@keyframes img-focus {
  from { filter: blur(14px); opacity: .6; }
  to   { filter: blur(0);    opacity: 1;  }
}

.article-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  margin-bottom: var(--space-8);
  animation: img-focus 1.4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .article-img { animation: none; }
}

/* ── ANIMACIONES ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance (CSS puro, todas las páginas) */
.hero .hero-eyebrow { animation: fade-up .45s ease both; }
.hero h1            { animation: fade-up .5s  .08s ease both; }
.hero .hero-lead    { animation: fade-up .5s  .18s ease both; }
.hero .hero-actions { animation: fade-up .45s .28s ease both; }
.hero .hero-photo   { animation: fade-up .6s  .15s ease both; }

/* Estado inicial para elementos animados al scroll */
.js-animate .card,
.js-animate .step-item,
.js-animate .section-header {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

/* Visible tras intersección */
.js-animate .card.in-view,
.js-animate .step-item.in-view,
.js-animate .section-header.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger dentro de grids */
.js-animate .grid-3 .card:nth-child(2) { transition-delay: .1s; }
.js-animate .grid-3 .card:nth-child(3) { transition-delay: .2s; }
.js-animate .grid-2 .step-item:nth-child(2) { transition-delay: .12s; }
.js-animate .grid-2 .card:nth-child(2)      { transition-delay: .1s; }

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-eyebrow,
  .hero h1,
  .hero .hero-lead,
  .hero .hero-actions,
  .hero .hero-photo { animation: none; }

  .js-animate .card,
  .js-animate .step-item,
  .js-animate .section-header {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover        { transform: none; box-shadow: none; }
  .btn--primary:hover { transform: none; box-shadow: none; }
}

/* ── BOTÓN WHATSAPP ──────────────────────────────────────── */
#whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border-radius: 50px;
  background: var(--teal-dark);
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(13,33,55,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 998;
}
#whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13,33,55,0.45);
  color: #fff;
  text-decoration: none;
}
.wabtn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: wabtn-pulse 2.4s ease-in-out infinite;
}
@keyframes wabtn-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.7); }
}
@media (max-width: 600px) {
  #whatsapp-btn { padding: 11px 14px; }
  .wabtn-text   { display: none; }
}

/* ── BOTÓN VOLVER ARRIBA ──────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  z-index: 999;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: var(--teal-hover); }
.w-full { width: 100%; }
