/* ==========================================================================
   TrastosFuera — hoja de estilos principal
   Mobile-first · sin dependencias · tokens en :root
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, sin llamadas a Google: RGPD) ---------- */
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0e2a47;
  --navy-800: #0b2239;
  --navy-900: #081a2c;
  --navy-50: #eef3f8;
  --navy-100: #dde7f1;
  --ink: #13202e;
  --text: #34424f;
  --muted: #5d6b79;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-warm: #faf8f5;

  --wa: #117a3e;          /* verde WhatsApp accesible (contraste 5.4:1 con blanco) */
  --wa-hover: #0d6633;
  --wa-bright: #25d366;
  --accent: #e8772e;      /* naranja: detalles, numeración, subrayados */
  --accent-ink: #a94d0c;  /* naranja para texto sobre blanco (AA) */
  --accent-soft: #fdf1e8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, .06), 0 2px 8px rgba(14, 42, 71, .05);
  --shadow: 0 2px 4px rgba(14, 42, 71, .04), 0 12px 32px rgba(14, 42, 71, .08);
  --shadow-lg: 0 4px 8px rgba(14, 42, 71, .05), 0 24px 56px rgba(14, 42, 71, .14);

  --font-head: "Red Hat Display", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 68px;
  --mobilebar-h: 64px;
  --gutter: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--mobilebar-h); /* hueco para la barra fija móvil: no tapa contenido */
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 3.2vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--navy-100); color: var(--ink); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: 64px; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--tight { padding-block: 40px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Encabezados de sección ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.075rem; color: var(--muted); margin: 0; }
.section-head .badge { margin-bottom: 20px; font-size: .9rem; color: var(--ink); }
@media (max-width: 400px) { .badge { font-size: .82rem; padding-inline: 10px 12px; } }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 22px; height: 22px; }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 42, 71, .18); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--wa { --btn-bg: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-hover); box-shadow: 0 10px 24px rgba(17, 122, 62, .28); }
.btn--call { --btn-bg: var(--navy); }
.btn--call:hover { --btn-bg: var(--navy-800); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: var(--navy-100); }
.btn--ghost:hover { --btn-bd: var(--navy); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, .08); }
.btn--lg { min-height: 58px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
/* El desenfoque va en un pseudo-elemento: si estuviera en la cabecera, el menú móvil (position: fixed) quedaría atrapado dentro de ella */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(14, 42, 71, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: var(--navy); }
.brand__name span { color: var(--accent); }
.brand:hover { color: var(--ink); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 12px var(--gutter) calc(var(--mobilebar-h) + 24px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link, .nav-sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-link[aria-current="page"] { color: var(--accent-ink); }
.nav-sub-toggle .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.nav-sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0; padding: 0 0 12px; display: none; }
.nav-sub.is-open { display: block; }
.nav-sub a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav-sub a .icon { color: var(--navy); width: 20px; height: 20px; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--navy); }
.nav-cta { display: grid; gap: 10px; margin-top: 24px; }
.header-phone { display: none; }

/* ---------- Migas de pan ---------- */
.breadcrumbs { padding-top: 20px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: #b4bfca; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -20% -30% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(14, 42, 71, .07), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 32px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.badge__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--wa-bright); flex: none; }
.badge__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa-bright); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 68%, rgba(232, 119, 46, .28) 68%); }
.hero__lead { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 50%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--navy-50); }
.hero__card { display: none; position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; }
.hero__card strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.hero__card-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; }
.hero__note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__note .icon { width: 18px; height: 18px; color: var(--wa); }

/* Hero de páginas interiores */
.page-hero { padding: 16px 0 56px; position: relative; overflow: hidden; }
.page-hero .hero__grid { margin-top: 20px; }
.page-hero h1 { font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3.1rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink); }
.chips .icon { width: 16px; height: 16px; color: var(--wa); }

/* ---------- Franja de confianza ---------- */
.trustbar { border-block: 1px solid var(--line); background: #fff; }
.trustbar ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.trustbar li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.trustbar .icon { color: var(--accent); width: 22px; height: 22px; }

/* ---------- Bloques de servicio grandes ---------- */
.duo { display: grid; gap: 24px; }
.feature-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-50); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-card:hover .feature-card__media img { transform: scale(1.045); }
.feature-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 22px 28px; }
.feature-card__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.feature-card__tag .icon { width: 16px; height: 16px; }
.feature-card h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.feature-card p { color: var(--muted); }
.feature-card .btn { margin-top: auto; align-self: flex-start; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--wa); stroke-width: 2.25; }
.checklist--cols { gap: 12px 24px; }

/* ---------- Tarjetas pequeñas de servicio ---------- */
.cards { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { grid-row: span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy-50); color: var(--navy); transition: background-color .3s, color .3s; }
.card:hover .card__icon { background: var(--navy); color: #fff; }
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin: 2px 0 2px; font-size: 1.1rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toda la tarjeta clicable */
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.card__more { margin-top: 8px; font-size: .9rem; }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card--static:hover .card__icon { background: var(--navy-50); color: var(--navy); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Bloque dividido (imagen + texto) ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--navy-50); }
.split__badge { position: absolute; right: 14px; top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); box-shadow: var(--shadow-sm); }
.split__body p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Sección de confianza (fondo azul) ---------- */
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.section--navy::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(232, 119, 46, .16), transparent 70%); pointer-events: none; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: #ffb37f; }
.section--navy .section-head p { color: rgba(255, 255, 255, .75); }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.value { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, transform .3s var(--ease); }
.value:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.value__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: rgba(232, 119, 46, .16); color: #ffb37f; }
.value h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value p { margin: 0; font-size: .95rem; }

/* ---------- Contacto (llamada primero, WhatsApp después) ---------- */
.contact-cta { position: relative; display: grid; gap: 32px; padding: 36px 22px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%); color: rgba(255, 255, 255, .82); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-cta::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .04); pointer-events: none; }
.contact-cta > * { position: relative; z-index: 1; }
.contact-cta .eyebrow { color: #ffb37f; }
.contact-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.contact-cta__text > p { font-size: 1.07rem; max-width: 560px; margin-bottom: 24px; }
.contact-cta__actions { display: grid; gap: 12px; align-content: center; }
.contact-call { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border-radius: 20px; color: var(--navy); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-call:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .25); }
.contact-call__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--navy); color: #fff; }
.contact-call__icon .icon { width: 26px; height: 26px; }
.contact-call small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
.contact-call strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.01em; color: var(--navy); }
.contact-cta__hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .72); text-align: center; }
.contact-cta__hint .icon { width: 18px; height: 18px; color: #ffb37f; }
.contact-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.contact-meta li { display: flex; gap: 10px; align-items: center; }
.contact-meta .icon { color: #ffb37f; width: 20px; height: 20px; }

/* ---------- Contenido de páginas de servicio ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.grid-2 { display: grid; gap: 16px; }
.info-card { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.info-card h3 .icon { color: var(--accent); }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
.info-card p, .info-card li { color: var(--muted); }
.tips { counter-reset: tip; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tips li { position: relative; padding: 16px 18px 16px 60px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tips li::before { counter-increment: tip; content: counter(tip); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.tips strong { display: block; }
.tips span { color: var(--muted); font-size: .97rem; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: #5c2d0a; font-size: .95rem; border: 1px solid #f6d6bf; }
.note .icon { color: var(--accent-ink); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--navy-100); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--navy); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- Enlaces relacionados ---------- */
.related { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.related a span { display: flex; align-items: center; gap: 12px; }
.related a .icon { color: var(--navy); }
.related a:hover { border-color: var(--navy); transform: translateX(3px); }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; padding: 40px 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy) 0%, #143a5f 100%); color: rgba(255, 255, 255, .85); overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 119, 46, .35), transparent); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.2rem); }
.cta-band p { font-size: 1.05rem; max-width: 600px; }
.cta-band .btn-row { margin-top: 24px; }

/* ---------- Zonas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.zones li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }

/* ---------- Páginas legales ---------- */
.legal { padding-bottom: 72px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 1.4em; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--ink); }
.pendiente { background: #fff3cd; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .95em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin: 16px 0 20px; max-width: 340px; }
.footer-title { font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a, .footer-bottom a { display: inline-block; padding-block: 3px; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-contact .icon { width: 20px; height: 20px; color: #ffb37f; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; }
.footer-bottom .foot-credit { display: inline-flex; align-items: center; gap: 8px; padding-block: 3px; color: rgba(255, 255, 255, .78); }
.foot-credit img { width: 18px; height: 18px; padding: 1px; background: #fff; border-radius: 4px; }
.foot-credit b { color: #fff; font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .78); cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* ---------- Contacto flotante ---------- */
/* Móvil: barra inferior fija de dos botones (no tapa contenido: el body reserva su altura) */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(14, 42, 71, .08); }
.mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: .95rem; }
body { padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom)); }
/* Escritorio: botones circulares flotantes */
.fab { display: none; }

/* ---------- Banner de cookies ---------- */
.cookie-banner { position: fixed; z-index: 120; left: 10px; right: 10px; bottom: calc(var(--mobilebar-h) + 10px + env(safe-area-inset-bottom)); max-width: 520px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); font-size: .92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 6px; }
.cookie-banner p { color: var(--muted); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: 8px 18px; font-size: .92rem; flex: 1 1 auto; }
.cookie-prefs { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs label { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.cookie-prefs label:last-child { margin-bottom: 0; }
.cookie-prefs input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0; text-align: center; }
.notfound .btn-row { justify-content: center; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 1fr; padding: 24px 22px; }
  .card__icon { grid-row: auto; margin-bottom: 14px; }
  .hero__card { display: flex; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .checklist--cols { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding-block: 88px; }
  .trustbar ul { grid-template-columns: repeat(4, 1fr); padding: 22px 0; }
  .duo { grid-template-columns: 1fr 1fr; gap: 28px; }
  .feature-card__body { padding: 30px 32px 34px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { padding: 30px 28px; }
  .cta-band { padding: 56px 52px; }
  .contact-cta { padding: 48px 44px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .cookie-banner { left: 24px; right: auto; bottom: 24px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; --gutter: 32px; }
  body { padding-bottom: 0; }
  .section { padding-block: 104px; }
  .mobile-bar { display: none; }
  .fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; gap: 12px; }
  .fab a { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; box-shadow: 0 10px 28px rgba(8, 26, 44, .28); transition: transform .3s var(--ease), box-shadow .3s; }
  .fab a:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
  .fab .icon { width: 28px; height: 28px; }
  .fab__wa { background: var(--wa); }
  .fab__call { background: var(--navy); }
  .fab__label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
  .fab a:hover .fab__label, .fab a:focus-visible .fab__label { opacity: 1; transform: translate(0, -50%); }
  .cookie-banner { bottom: 24px; }

  /* Navegación de escritorio */
  .nav-toggle { display: none; }
  .main-nav { position: static; inset: auto; padding: 0; background: none; overflow: visible; opacity: 1; visibility: visible; transform: none; display: flex; align-items: center; gap: 28px; }
  .nav-open { overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-sub-toggle { padding: 10px 14px; font-size: .97rem; font-weight: 600; border-radius: 10px; gap: 6px; }
  .nav-link:hover, .nav-sub-toggle:hover { background: var(--bg-soft); color: var(--navy); }
  .nav-sub-toggle .icon { width: 16px; height: 16px; }
  .nav-sub { display: block; position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .nav-sub.is-open, .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-sub a { padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
  .nav-sub a:hover { background: var(--bg-soft); }
  .nav-cta { display: none; }
  .header-phone { display: inline-flex; min-height: 46px; padding: 10px 20px; font-size: .95rem; }

  .hero { padding: 56px 0 96px; }
  .hero__grid { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .hero__img { aspect-ratio: 5 / 4.4; }
  .hero__card { left: -28px; right: auto; bottom: 32px; max-width: 290px; padding: 14px 18px; }
  .page-hero { padding-bottom: 88px; }
  .page-hero .hero__grid { margin-top: 28px; }
  .page-hero .hero__img { aspect-ratio: 4 / 3; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--reverse .split__media { order: 2; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .values--3 { grid-template-columns: repeat(3, 1fr); }
  .contact-cta { grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 64px 60px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
  .related { grid-template-columns: repeat(3, 1fr); }
  .layout-aside { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
  .sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (min-width: 1280px) {
  .header-phone { padding-inline: 22px; }
}

@media print {
  .site-header, .mobile-bar, .fab, .cookie-banner, .site-footer { display: none !important; }
  body { padding: 0; }
}
