/* =====================================================================
   Teseo Data Lab — Landings Google Ads · Agosto 2026
   Campaña TES_BUSQUEDA_EXPANSION_AGO26

   Sistema visual tomado de la landing del boletín "Lead the Change 2026"
   (src/pages/BoletinLeadChange.jsx): fondo blanco, todo cuadrado
   (sin border-radius), tipografía negra, bordes de 2px, sombras sólidas
   con offset, grids separados por 1px que simulan tablas y barras de
   acento como separadores.

   Diferencia deliberada: el Bleu France / Rouge Marianne de aquel boletín
   pertenece a La French Tech. Aquí el mismo lenguaje se pinta con los
   colores de Teseo Data Lab (violeta de marca + ámbar de acento).
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --brand: #5b21b6;          /* violeta Teseo profundo — rol del Bleu France */
  --brand-hover: #6d28d9;
  --brand-soft: #f6f4ff;     /* fondo claro de secciones — rol del #f5f5fe */
  --brand-line: rgba(91, 33, 182, 0.2);

  --accent: #f59e0b;         /* ámbar — rol del Rouge Marianne */
  --accent-dark: #b45309;

  --ink: #161617;
  --ink-soft: #3a3a44;
  --ink-mute: #6a6a76;
  --ink-faint: #9a9aa6;
  --line: #dcdce6;
  --line-soft: #e7e7f5;

  --ok: #15803d;
  --err: #c2000d;
  --err-soft: #fdecec;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
.wrap-md { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.wrap-sm { width: 100%; max-width: 896px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.section-tight { padding: 3rem 0; }
.bg-soft { background: var(--brand-soft); border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }
.bg-brand { background: var(--brand); color: #fff; }
.accent-bar { height: 6px; background: var(--accent); width: 100%; }

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 900; }
.h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); color: var(--brand); }
.h1-sub { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 700; color: var(--ink); line-height: 1.25; margin-top: .5rem; }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); color: var(--brand); margin-bottom: 1rem; }
.h3 { font-size: 1.125rem; font-weight: 700; color: var(--brand); }
.eyebrow { font-size: .8125rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem; }
.lead { font-size: 1.0625rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.mute { color: var(--ink-mute); }
.small { font-size: .875rem; }
.xs { font-size: .75rem; }
.strong-brand { color: var(--brand); font-weight: 700; }
.strong-accent { color: var(--accent-dark); font-weight: 700; }
.center { text-align: center; }
.rule { width: 3rem; height: 6px; background: var(--accent); margin-bottom: 1.25rem; }
.rule-center { margin-left: auto; margin-right: auto; }
.quote-block { border-left: 4px solid var(--brand); padding-left: 1rem; }

/* ---------- BADGES ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .75rem; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.tag-brand { background: var(--brand); color: #fff; }
.tag-accent { border: 2px solid var(--accent-dark); color: var(--accent-dark); }
.tag-outline { border: 1px solid var(--brand); color: var(--brand); }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.75rem; font-weight: 700; font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { background: #fff; border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-wa { background: #128c4a; color: #fff; }
.btn-wa:hover { background: #0f7a40; }
.btn-sm { padding: .625rem 1rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-accent { color: var(--accent-dark); font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
.link-accent:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--brand); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.site-header .logo { height: 30px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* ---------- HERO ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; }
.hero-proof li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--ink-soft); }

/* Tarjeta del entregable — sombra sólida offset del boletín */
.offset-card { border: 2px solid var(--brand); background: #fff; padding: 1.75rem; box-shadow: 12px 12px 0 0 var(--brand); }
.offset-card h3 { margin-bottom: 1.25rem; }
.deliverable { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.5rem; }
.deliverable li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9375rem; }
.deliverable .mark { width: 1.25rem; height: 1.25rem; background: var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: .125rem; }

/* ---------- BANDA DE DATOS (fondo marca) ---------- */
.band-quote { font-size: clamp(1.25rem, 2.6vw, 1.875rem); font-weight: 700; line-height: 1.35; margin-bottom: 2rem; }
.stat-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .25); }
.stat-grid > div { background: var(--brand); padding: 1.5rem; }
.stat-v { font-size: 2.25rem; font-weight: 900; color: var(--accent); line-height: 1.1; margin-bottom: .375rem; }
.stat-l { font-size: .875rem; color: rgba(255, 255, 255, .82); }

/* ---------- LISTA DE PUNTOS CON CUADRO ---------- */
.points { display: grid; gap: 2rem 2.5rem; }
.point { display: flex; gap: .875rem; }
.point .box { width: 2.25rem; height: 2.25rem; background: var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.point h3 { font-size: 1rem; line-height: 1.3; }
.point p { font-size: .875rem; color: var(--ink-mute); display: flex; align-items: flex-start; gap: .375rem; margin-top: .25rem; }

/* ---------- GRID TIPO TABLA (separación de 1px) ---------- */
.table-grid { display: grid; gap: 1px; background: var(--brand); border: 2px solid var(--brand); }
.table-grid > * { background: #fff; padding: 1.75rem; }
.step-n { font-size: 1.875rem; font-weight: 900; color: var(--accent-dark); margin-bottom: .5rem; }
.table-grid h3 { margin-bottom: .5rem; }
.table-grid p { font-size: .875rem; color: var(--ink-soft); }
.icon-box { width: 2.75rem; height: 2.75rem; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: .875rem; }

/* Variante sobre fondo de marca (recomendaciones del boletín) */
.table-grid-invert { display: grid; border-top: 1px solid rgba(255, 255, 255, .22); border-left: 1px solid rgba(255, 255, 255, .22); }
.table-grid-invert > * { border-right: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22); padding: 1.75rem; transition: background .2s; }
.table-grid-invert > *:hover { background: rgba(255, 255, 255, .06); }
.table-grid-invert h3 { color: #fff; margin-bottom: .5rem; }
.table-grid-invert p { color: rgba(255, 255, 255, .72); font-size: .875rem; }

/* ---------- COMPARATIVA ---------- */
.compare { display: grid; gap: 1px; background: var(--brand); border: 2px solid var(--brand); }
.compare > div { background: #fff; padding: 1.75rem; }
.compare .head { display: flex; align-items: center; gap: .625rem; font-weight: 900; margin-bottom: 1rem; }
.compare ul li { display: flex; gap: .625rem; font-size: .9375rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.compare ul li:last-child { border-bottom: none; }
.compare .no { color: var(--ink-mute); }

/* ---------- CHECKLIST CON FLECHA ---------- */
.arrow-list li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.arrow-list .sq { width: 1.25rem; height: 1.25rem; background: var(--accent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: .1875rem; }
.arrow-list span { font-size: .9375rem; }

/* ---------- FORMULARIO ---------- */
.form-grid { display: grid; gap: 2.5rem; align-items: start; }
.form-card { background: #fff; border: 2px solid var(--brand); padding: 1.5rem; }
.field { margin-bottom: 1.125rem; }
.field label { display: block; font-size: .875rem; font-weight: 700; color: var(--brand); margin-bottom: .5rem; }
.field label .opt { font-weight: 500; color: var(--ink-mute); }
.control { position: relative; }
.control > svg { position: absolute; left: .875rem; top: .9375rem; color: var(--ink-mute); pointer-events: none; }
.control input, .control select, .control textarea {
  width: 100%; padding: .875rem 1rem .875rem 3rem;
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  transition: border-color .2s; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.control textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
.control input::placeholder, .control textarea::placeholder { color: var(--ink-faint); }
.control input:focus, .control select:focus, .control textarea:focus { outline: none; border-color: var(--brand); }
.control select { cursor: pointer; padding-right: 2.75rem; text-overflow: ellipsis; }
.control select.placeholder { color: var(--ink-faint); }
.control .chevron { left: auto; right: 1rem; }
.field.invalid .control input, .field.invalid .control select, .field.invalid .control textarea { border-color: var(--err); }
.field-msg { font-size: .75rem; color: var(--ink-mute); margin-top: .375rem; min-height: .875rem; }
.field.invalid .field-msg { color: var(--err); font-weight: 600; }
.field-pair { display: grid; grid-template-columns: 1fr; gap: 0 1.125rem; }
.terms { display: flex; align-items: flex-start; gap: .75rem; margin: 1.25rem 0; }
.terms input { width: 1rem; height: 1rem; margin-top: .3125rem; accent-color: var(--brand); flex-shrink: 0; }
.terms label { font-size: .875rem; color: var(--ink-soft); }
.terms a { color: var(--brand); font-weight: 600; }
.terms a:hover { text-decoration: underline; }
.form-error { font-size: .875rem; color: var(--err); background: var(--err-soft); border: 2px solid var(--err); padding: .75rem; margin-bottom: 1rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 1.125rem; height: 1.125rem; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq details { border: 2px solid var(--line); margin-bottom: .625rem; background: #fff; }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.125rem;
  font-weight: 700; color: var(--brand); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-dark); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 1.125rem 1.125rem; color: var(--ink-soft); font-size: .9375rem; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--brand); color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .875rem; }
.site-footer p, .site-footer a { color: rgba(255, 255, 255, .72); font-size: .875rem; }
.site-footer a { display: flex; align-items: center; gap: .5rem; margin-bottom: .625rem; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .22); text-align: center; font-size: .75rem; color: rgba(255, 255, 255, .5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding-bottom: 1rem; }
.footer-nav a { display: inline-flex; margin: 0; font-size: .8125rem; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 3.25rem; height: 3.25rem; background: #128c4a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 0 var(--brand); transition: transform .15s;
}
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--brand); }

/* ---------- PÁGINA DE GRACIAS ---------- */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks-mark { width: 5rem; height: 5rem; background: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 1.75rem; }
.next-steps { display: grid; gap: 1px; background: var(--brand); border: 2px solid var(--brand); margin: 2rem 0; text-align: left; }
.next-steps > div { background: #fff; padding: 1.25rem; }
.next-steps .n { font-size: 1.5rem; font-weight: 900; color: var(--accent-dark); }

/* ---------- ANIMACIÓN DE ENTRADA (equivale a framer-motion whileInView) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- BREAKPOINTS ---------- */
@media (min-width: 640px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card { padding: 2rem; }
  .compare { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
  .table-grid, .table-grid-invert { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table-grid, .table-grid-invert { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .table-grid.cols-3, .table-grid-invert.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 2fr 3fr; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .offset-card { box-shadow: 8px 8px 0 0 var(--brand); padding: 1.25rem; }
  .btn { padding: .875rem 1.25rem; }
}
