/* =====================================================================
   Investigación Guiada — Sistema de diseño
   Estilo: Profesional / académico / serio
   Paleta: Azul Oxford + grises · Acento: Verde WhatsApp (solo CTA)
   Tipografía: Source Serif 4 (títulos) + Inter (cuerpo)
   ===================================================================== */

/* ----------------------------- Variables ----------------------------- */
:root {
  /* Color — marca */
  --color-primary: #0F2A4A;        /* Azul Oxford — cabecera, títulos */
  --color-primary-700: #1B3A5F;
  --color-primary-600: #234870;
  --color-secondary: #2E5C8A;       /* Azul académico — enlaces, iconos */
  --color-secondary-600: #3A6EA5;

  /* Neutros */
  --color-text: #1F2937;            /* Grafito — texto cuerpo */
  --color-text-muted: #475569;       /* Pizarra — texto secundario */
  --color-border: #E2E8F0;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F1F5F9;          /* Fondos de sección */
  --color-bg-softer: #F8FAFC;

  /* CTA */
  --color-cta: #25D366;              /* Verde WhatsApp — SOLO botón primario */
  --color-cta-hover: #1EBE58;
  --color-cta-ink: #06351B;          /* Texto oscuro sobre verde WA */

  /* Tipografía */
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Escala modular (ratio ~1.250) */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  /* Espaciado */
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --container: 1180px;
  --container-narrow: 820px;

  /* Radios y sombras */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(15, 42, 74, 0.08);
  --shadow: 0 4px 12px rgba(15, 42, 74, 0.08), 0 2px 4px rgba(15, 42, 74, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 42, 74, 0.12);

  /* Transiciones */
  --t-fast: 150ms ease;
  --t: 220ms ease;
}

/* ----------------------------- Reset / base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-primary); }

ul { padding-left: 1.15rem; }

/* Foco accesible */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-secondary-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------- Tipografía ----------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { color: var(--color-text); }
.lead { font-size: var(--fs-md); color: var(--color-text-muted); line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--soft { background: var(--color-bg-soft); }
.section--softer { background: var(--color-bg-softer); }
.section--primary { background: var(--color-primary); color: #EAF0F7; }
.section--primary h1, .section--primary h2, .section--primary h3, .section--primary h4 { color: #FFFFFF; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-text-muted); margin-top: 0.75rem; font-size: var(--fs-md); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-base);
  padding: 0.8rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.2em; height: 1.2em; }

.btn--wa { background: var(--color-cta); color: var(--color-cta-ink); box-shadow: var(--shadow); }
.btn--wa:hover { background: var(--color-cta-hover); color: var(--color-cta-ink); box-shadow: var(--shadow-lg); }

.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-700); color: #fff; }

.btn--secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--secondary:hover { background: var(--color-primary); color: #fff; }

.btn--ghost-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }

.btn--lg { padding: 1rem 1.9rem; font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ----------------------------- Header / nav ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--color-primary); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--color-primary); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 0.8rem;
}
.brand small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--color-text); font-weight: 500; font-size: var(--fs-sm);
  padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--color-primary); background: var(--color-bg-soft); }
.nav a.active { color: var(--color-primary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Switcher de idioma */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 0.32rem 0.6rem; font-size: var(--fs-xs); font-weight: 600; color: var(--color-text-muted); }
.lang-switch a.is-active { background: var(--color-primary); color: #fff; }

/* Nav móvil */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-primary); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-primary);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% -10%, rgba(46,92,138,0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); position: relative; }
.hero h1 { font-size: var(--fs-4xl); }
.hero .lead { margin-top: 1.25rem; max-width: 52ch; }
.hero .btn-row { margin-top: 2rem; }

/* Franja de autoridad (sin testimonios) */
.authority-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
  padding-block: 1.1rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.authority-strip li { list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 500; }
.authority-strip svg { width: 1.1em; height: 1.1em; color: var(--color-secondary); flex: none; }

/* Tarjeta flotante del hero */
.hero-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.75rem;
}
.hero-card h3 { font-size: var(--fs-lg); margin-bottom: 1rem; }
.hero-card .price-big { font-family: var(--font-serif); font-size: var(--fs-3xl); color: var(--color-primary); font-weight: 700; line-height: 1; }
.hero-card .price-unit { color: var(--color-text-muted); font-size: var(--fs-sm); }

/* ----------------------------- Tarjetas ----------------------------- */
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-secondary-600); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--color-bg-soft); color: var(--color-secondary); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.card p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.card .card__foot { margin-top: auto; padding-top: 1rem; }

/* Monograma del equipo (texto, no foto) */
.monogram {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.card--team .team-name { font-size: var(--fs-md); }
.card--team .team-cred { color: var(--color-secondary); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.5rem; }
.card--team p { font-size: var(--fs-sm); }

.card--area { text-align: left; }
.card--area .tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }

.tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 500; color: var(--color-text-muted);
  background: var(--color-bg-soft); border: 1px solid var(--color-border); padding: 0.2rem 0.55rem; border-radius: 999px;
}

/* ----------------------------- Proceso / pasos ----------------------------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.1rem; }
.step__num {
  counter-increment: step; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-primary); color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-md);
}
.step__num::before { content: counter(step); }
.step h4 { margin-bottom: 0.25rem; }
.step p { color: var(--color-text-muted); font-size: var(--fs-sm); }

/* ----------------------------- Tabla de precios ----------------------------- */
.price-feature {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; box-shadow: var(--shadow);
}
.price-feature .price-big { font-family: var(--font-serif); font-size: var(--fs-4xl); color: var(--color-primary); font-weight: 700; line-height: 1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
table.pricing { width: 100%; border-collapse: collapse; min-width: 540px; }
table.pricing th, table.pricing td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
table.pricing thead th { background: var(--color-primary); color: #fff; font-weight: 600; }
table.pricing tbody tr:nth-child(even) { background: var(--color-bg-softer); }
table.pricing td.num, table.pricing th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-note { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: 0.85rem; }

/* ----------------------------- FAQ (acordeón) ----------------------------- */
.faq { border-top: 1px solid var(--color-border); }
.faq details {
  border-bottom: 1px solid var(--color-border); padding: 0; background: #fff;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-serif); font-size: var(--fs-md); color: var(--color-primary); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform var(--t); color: var(--color-secondary); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.25rem; color: var(--color-text-muted); max-width: 80ch; }

/* ----------------------------- Formulario ----------------------------- */
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.35rem; color: var(--color-text); }
.field .hint { font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: var(--fs-base);
  padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(46,92,138,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* ----------------------------- Lead magnet ----------------------------- */
.lead-magnet {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
  background: var(--color-primary); color: #EAF0F7; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg);
}
.lead-magnet h2, .lead-magnet h3 { color: #fff; }
.lead-magnet p { color: #CBD8E6; }
.lead-magnet .form-card { box-shadow: none; }

/* ----------------------------- Banda CTA final ----------------------------- */
.cta-band { background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD8E6; max-width: 60ch; margin: 0.75rem auto 1.75rem; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: #0A1E36; color: #B7C6D6; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; margin-top: var(--space-section); }
.site-footer a { color: #B7C6D6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; font-size: var(--fs-sm); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: var(--fs-xs); color: #8FA3BA; }
.footer-bottom a { color: #8FA3BA; }

/* ----------------------------- Botón flotante WhatsApp ----------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--color-cta);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float:hover { transform: scale(1.06); background: var(--color-cta-hover); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--color-cta);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ----------------------------- Utilidades ----------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.muted { color: var(--color-text-muted); }
.stack > * + * { margin-top: 1rem; }
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; color: var(--color-text); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-cta) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306351B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.breadcrumb { font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-text-muted); }
.divider { height: 1px; background: var(--color-border); border: 0; margin-block: 2rem; }
.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; }

/* ----------------------------- Page header (interior) ----------------------------- */
.page-header { background: linear-gradient(180deg, var(--color-bg-soft), #fff); border-bottom: 1px solid var(--color-border); padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-header .lead { margin-top: 1rem; max-width: 62ch; }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lead-magnet { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  h1 { font-size: var(--fs-2xl); }
  .hero h1 { font-size: 2.1rem; }
  .nav, .header-actions .btn--secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem; gap: 0.25rem; box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 0.7rem 0.8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .wa-float::after { display: none; }
}
