/* =========================================================================
   Te vas? — sistema de estilos del sitio público
   Cliente: Quijotech Labs S.L. · Obra: tevas-web (Lume «Tu web en 48 horas»)
   Estático, sin frameworks. Tokens y tipografía oficiales del cliente.
   ========================================================================= */

/* --- Tipografía oficial: Poppins, auto-alojada (sin llamadas a Google,
       coherente con el aviso de cookies solo técnicas) --- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

:root {
  /* Paleta de marca OFICIAL (confirmada por el cliente, 08/09/2026) */
  --navy:      #1A2B4C;   /* azul marino corporativo */
  --navy-2:    #122038;   /* variante profunda para degradados */
  --mint:      #48D798;   /* verde menta, acciones */
  --mint-600:  #2FB57C;   /* verde para hover / degradado inferior */
  --mint-50:   #F1FBF6;   /* fondos muy claros de sección */
  --mint-100:  #E3F7EE;   /* fondos de icono / chips */
  --blue:      #2E9BD6;   /* marcadores activos del mapa */

  /* Neutros */
  --ink:       #223142;   /* texto principal sobre claro */
  --muted:     #5B6B7F;   /* texto secundario */
  --line:      #E6EBF1;   /* bordes suaves */
  --white:     #FFFFFF;
  --bg-tint:   #F4FAF8;   /* tinte de sección */

  /* Tipografía */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;

  /* Formas */
  --radius:    16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow:    0 10px 30px rgba(24, 45, 76, .08);
  --shadow-sm: 0 4px 14px rgba(24, 45, 76, .06);

  /* Estructura */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
}

/* --- Reset ligero --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--mint-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.12; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--bg-tint); }
.eyebrow {
  color: var(--mint-600); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .8rem;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .82em 1.5em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; transition: .18s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--mint); color: var(--navy); box-shadow: 0 8px 20px rgba(72,215,152,.35); }
.btn--primary:hover { background: var(--mint-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: #cfd8e3; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }

/* --- Cabecera / navegación --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); font-weight: 600; padding: .5em .9em; border-radius: var(--radius-pill);
  font-size: .96rem; transition: .15s;
}
.nav-links a:hover { background: var(--mint-50); text-decoration: none; }
.nav-links a[aria-current="page"] { background: var(--mint); color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* --- Menú móvil --- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--navy);
  color: #fff; padding: 20px var(--gutter); display: none; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-menu__top img { height: 38px; width: auto; }
.mobile-menu__close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.mobile-menu__close svg { width: 30px; height: 30px; }
.mobile-menu a.mlink {
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: 1.5rem; font-weight: 800; padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu a.mlink:hover { text-decoration: none; color: var(--mint); }
.mobile-menu .btn { margin-top: 28px; }
.mobile-menu__foot { display: flex; justify-content: space-between; color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 14px; }
.mobile-menu__foot a { color: rgba(255,255,255,.7); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--mint-50) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.hero h1 { margin-bottom: .5rem; }
.hero .lead { margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .95rem; }
.hero__ticks span::before { content: "✓"; color: var(--mint-600); font-weight: 800; margin-right: .4em; }
.hero__media { justify-self: center; }
.hero__media img { width: min(360px, 80vw); filter: drop-shadow(0 24px 44px rgba(24,45,76,.18)); }
.hero__curve { height: 30px; }
.hero__curve svg { width: 260px; max-width: 60%; }

/* --- Pasos (3) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step__num { width: 42px; height: 42px; border-radius: 50%; background: var(--mint-100); color: var(--navy);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* --- Lista numerada tipo "cómo funciona" --- */
.numlist { margin-top: 20px; }
.numrow { display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line); }
.numrow:last-child { border-bottom: 0; }
.numrow__n { font-size: 3rem; font-weight: 800; color: #c7d2df; line-height: 1; }
.numrow__k { color: var(--mint-600); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; }
.numrow h3 { margin: .2em 0 .3em; }
.numrow p { color: var(--muted); margin: 0; }
.chip { background: var(--mint-100); color: var(--navy); font-weight: 700; font-size: .86rem;
  padding: .6em 1em; border-radius: var(--radius-pill); white-space: nowrap; align-self: center; }

/* --- Bandas informativas --- */
.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px;
  display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; }
.callout .callout__ic { flex: 0 0 auto; width: 26px; height: 26px; color: var(--mint); }
.callout strong { display: block; margin-bottom: 2px; }
.callout p { margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; }

/* --- Dos perfiles --- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.split__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.mini h3 { margin-bottom: .35em; }
.mini p { color: var(--muted); margin: 0; font-size: .97rem; }

/* --- La app: showcase + filas de característica --- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; margin-top: 36px; }
.showcase img { margin-inline: auto; }
/* Capturas de móvil (ReÁnima) con fondo transparente: el teléfono flota con
   sombra sobre cualquier sección; sin rectángulo de fondo. */
.phone { filter: drop-shadow(0 16px 32px rgba(24,45,76,.18)); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: clamp(36px,5vw,64px); }
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row__media img { width: min(300px, 78vw); margin-inline: auto; }
.feature-row ul { color: var(--muted); padding-left: 1.1em; margin: .6em 0 0; }
.feature-row ul li { margin-bottom: .4em; }

/* --- Tarjetas de valor (2x2) --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.card__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--mint-100); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 18px; }
.card__ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }

/* --- Panel destacado (seguridad hero) --- */
.confirm-card { background: linear-gradient(160deg, var(--mint) 0%, var(--mint-600) 100%);
  color: #fff; border-radius: var(--radius); min-height: 260px; display: grid; place-content: center;
  text-align: center; gap: 14px; padding: 30px; box-shadow: var(--shadow); }
.confirm-card .tick { width: 56px; height: 56px; margin-inline: auto; }
.confirm-card strong { font-size: 1.35rem; }

/* --- Cifras de cancelación --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; color: var(--mint-600); font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: .35em; }
.stat span { color: var(--muted); font-size: .92rem; }

/* --- FAQ resumen (home) --- */
.faq-teaser { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(28px,4vw,48px); }
.faq-teaser h2 { color: #fff; }
.faq-teaser__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #fff; padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.16); font-weight: 600; }
.faq-teaser__list a:hover { color: var(--mint); text-decoration: none; }
.faq-teaser__list a:last-child { border-bottom: 0; }

/* --- FAQ completa (acordeón + búsqueda + filtros) --- */
.faq-search { position: relative; margin: 8px 0 20px; }
.faq-search input { width: 100%; font: inherit; padding: 16px 18px 16px 46px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: #fff; }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.faq-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.faq-filters button { font: inherit; font-weight: 700; cursor: pointer; padding: .55em 1.1em;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: .15s; }
.faq-filters button[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.faq-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; margin-top: 26px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-item__q { width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--navy);
  background: none; border: 0; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px; }
.faq-item__q .q-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-100);
  color: var(--mint-600); display: grid; place-items: center; font-weight: 800; }
.faq-item__q .q-txt { flex: 1; }
.faq-item__q .q-toggle { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.faq-item__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; color: var(--muted); }
.faq-item.open .faq-item__a { padding: 0 22px 22px 66px; max-height: 600px; }
.faq-item.open .faq-item__q .q-toggle::before { content: "−"; }
.faq-item .faq-item__q .q-toggle::before { content: "+"; }
.faq-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.faq-aside .q-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--mint-100); color: var(--mint-600); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.faq-empty { color: var(--muted); padding: 20px 0; display: none; }

/* --- Centro legal --- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; }
.legal-card__k { color: var(--mint-600); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; margin-bottom: 10px; }
.legal-card h3 { margin-bottom: .4em; }
.legal-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.legal-card a { font-weight: 800; }
.titular { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: center; }
.titular dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; }
.titular dt { color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); }
.titular dd { color: var(--navy); font-weight: 600; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }

/* --- Documento legal (plantilla) --- */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.doc-toc strong { display: block; color: var(--navy); margin-bottom: 12px; }
.doc-toc a { display: block; color: var(--muted); padding: 7px 0; font-size: .96rem; }
.doc-toc a:hover { color: var(--mint-600); text-decoration: none; }
.doc-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-note { background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); }
.doc-owner { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-top: 36px; }
.doc-owner strong { display: block; margin-bottom: 4px; }
.doc-owner p { color: rgba(255,255,255,.8); margin: 0; }
.doc-status { display: inline-block; background: #FFF4D6; color: #7a5a00; border: 1px solid #F2E0A6;
  font-weight: 700; font-size: .82rem; padding: .4em .9em; border-radius: var(--radius-pill); margin-bottom: 18px; }
.doc-prep { text-align: center; padding: 60px 20px; background: var(--bg-tint); border: 1px dashed #c9d6e2; border-radius: var(--radius); }
.doc-prep .doc-prep__ic { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--mint-600); }

/* --- Encabezado de página interior --- */
.page-head { background: linear-gradient(180deg, #fff 0%, var(--mint-50) 100%); }
.page-head .container { padding-block: clamp(44px, 6vw, 80px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mint-600); font-weight: 800; margin-bottom: 14px; }

/* --- Formulario "Avísame" --- */
.notify { background: linear-gradient(180deg, var(--mint-50) 0%, #fff 100%); }
.notify__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.notify-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: .95rem; }
.field input[type="email"] { width: 100%; font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.field input[type="email"]:focus { border-color: var(--mint); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--mint-600); }
.form-msg { display: none; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg.ok  { display: block; background: var(--mint-100); color: #145c3c; }
.form-msg.err { display: block; background: #FDECEC; color: #9b2c2c; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.notify__meta { margin-top: 14px; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* --- Pie --- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.site-footer .container { padding-block: 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { color: rgba(255,255,255,.7); font-size: .95rem; max-width: 24ch; border-left: 1px solid rgba(255,255,255,.25); padding-left: 16px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-ig { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #fff; }
.footer-ig .ig-glyph { width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0,0,0,.28); flex: 0 0 auto; }
.footer-ig:hover { color: #fff; opacity: .88; }
.footer-bottom { padding-top: 20px; font-size: .88rem; }

/* --- Banner de cookies --- */
.cookie-banner { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; z-index: 70; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner .eyebrow { margin-bottom: .5rem; }
.cookie-banner h3 { font-size: 1.6rem; margin-bottom: .3em; }
.cookie-banner p { color: var(--muted); margin-bottom: 18px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-actions a { font-weight: 700; }

/* --- Utilidades --- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* =========================== Responsive =========================== */
@media (max-width: 980px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__grid, .split, .faq-teaser, .titular, .notify__grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
}
@media (max-width: 760px) {
  .steps, .showcase, .stats, .legal-grid { grid-template-columns: 1fr; }
  .grid-2, .split__cards { grid-template-columns: 1fr; }
  .numrow { grid-template-columns: 56px 1fr; }
  .numrow .chip { grid-column: 2; justify-self: start; margin-top: 6px; }
  .numrow__n { font-size: 2.2rem; }
  .footer-brand span { border-left: 0; padding-left: 0; }
}
