/* =====================================================================
   GESTORÍA VASCA — Sistema de diseño + componentes
   Paleta y estilo basados en el diseño de Canva de la clienta.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Azules */
  --blue-900: #16223f;   /* footer oscuro */
  --blue-800: #1e2b4d;
  --blue-700: #22307a;
  --blue-600: #2f43c9;   /* bloques */
  --blue-500: #3b4de8;   /* primario botones */
  --blue-400: #4f8bff;
  --blue-300: #7ba8ff;
  --blue-100: #e8f0ff;   /* fondo claro */
  --blue-50:  #f2f7ff;

  /* Acento (logo + degradado CTA) */
  --pink:   #ff4d8d;
  --green:  #22c55e;
  --grad-a: #7b5cff;     /* violeta */
  --grad-b: #35d0e0;     /* turquesa */

  /* Neutros */
  --ink:    #1a2233;
  --body:   #48546b;
  --muted:  #7a8699;
  --line:   #e4e9f2;
  --white:  #ffffff;

  /* Sistema */
  --radius:   14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20,34,63,.06);
  --shadow:    0 12px 34px rgba(20,34,63,.10);
  --shadow-lg: 0 24px 60px rgba(20,34,63,.16);
  --container: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --grad-cta: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--blue-500); margin-bottom: 12px; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 60ch; }
.mx-auto { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600;
  font-size: 1rem; padding: 14px 26px; border-radius: 100px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn--cta { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 24px rgba(123,92,255,.35); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(123,92,255,.45); }
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--light:hover { background: #fff; color: var(--blue-600); }

/* =====================================================================
   TOPBAR
   ===================================================================== */
.topbar { background: var(--blue-900); color: #cdd6ea; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; gap: 26px; height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #cdd6ea; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--blue-400); }
.topbar__spacer { margin-left: auto; }
.topbar__note { display: inline-flex; align-items: center; gap: 7px; color: #9fb0d0; }

/* =====================================================================
   LOGO
   ===================================================================== */
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; color: var(--ink); }
.logo__sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: .6rem; letter-spacing: .22em;
  color: var(--muted); font-weight: 600; }
.logo__dots { display: inline-flex; gap: 5px; }
.logo__dots i { width: 8px; height: 8px; border-radius: 50%; }
.logo__dots i:nth-child(1) { background: var(--blue-500); }
.logo__dots i:nth-child(2) { background: var(--pink); }
.logo__dots i:nth-child(3) { background: var(--green); }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__sub { color: #9fb0d0; }
.logo--lg .logo__name { font-size: 1.9rem; }

/* Logo en imagen (original del Canva) */
.logo-link { display: inline-flex; align-items: center; flex: none; }
.logo-img { display: block; height: 50px; width: auto; max-width: 100%; }
.logo-img--footer { height: 56px; }

/* =====================================================================
   HEADER / NAV + MEGAMENÚ
   ===================================================================== */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(20,34,63,.12); }
.header .container { display: flex; align-items: center; gap: 20px; height: 82px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 12px 13px; font-family: var(--font-head);
  font-weight: 500; font-size: .98rem; color: var(--ink); border-radius: 10px; white-space: nowrap;
  transition: color .2s, background .2s; }
.nav__link:hover, .nav__item.is-open .nav__link, .nav__link.is-active { color: var(--blue-500); background: var(--blue-50); }
.nav__link .caret { width: 11px; height: 11px; transition: transform .25s; }
.nav__item.is-open .caret { transform: rotate(180deg); }

.megamenu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 280px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
  border: 1px solid var(--line); }
.megamenu::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg); }
.nav__item.is-open .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.megamenu a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: .95rem; color: var(--ink); font-weight: 500; transition: background .18s, color .18s; }
.megamenu a:hover { background: var(--blue-50); color: var(--blue-500); }
.megamenu a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); flex: none; }
.megamenu a:hover .dot { background: var(--blue-500); }

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Toggle móvil (hamburguesa) */
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; margin: 0; background: var(--blue-50);
  border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; top: 50%; left: 50%; width: 22px; height: 2.4px; background: var(--ink);
  border-radius: 2px; transform: translate(-50%, -50%); transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%;
  background: var(--ink); border-radius: inherit; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* =====================================================================
   HERO (home)
   ===================================================================== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2;
  background: url('/assets/img/hero-bilbao.jpg') center/cover no-repeat, linear-gradient(135deg, #26407a, #16223f); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(16,26,54,.92) 0%, rgba(16,26,54,.70) 45%, rgba(16,26,54,.45) 100%); }
.hero__inner { padding: 118px 0 128px; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 3.9rem); margin-bottom: 18px; }
.hero__tag { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px; border-radius: 100px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px; }
.hero p { font-size: 1.2rem; color: #e6ecf9; margin-bottom: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* =====================================================================
   GESTIÓN INTEGRAL — tarjetas de categoría
   ===================================================================== */
.integral { background: var(--blue-50); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 52px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 28px; text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.card__icon { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); margin-bottom: 22px; transition: background .25s, color .25s; }
.card:hover .card__icon { background: var(--blue-200, #d6e4ff); transform: scale(1.05); }
.card__icon svg { width: 38px; height: 38px; }
.card__icon .gv-iconimg { width: 78%; height: 78%; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { font-size: .96rem; color: var(--body); margin-bottom: 20px; flex: 1; }
.card__link { font-family: var(--font-head); font-weight: 600; color: var(--blue-500); font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* =====================================================================
   BANDA "25 AÑOS"
   ===================================================================== */
.years { }
.years__grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.years__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 14vw, 11rem); line-height: .82;
  background: linear-gradient(160deg, var(--blue-500), var(--grad-a) 60%, var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.years__num small { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-500); -webkit-text-fill-color: var(--blue-500); }
.years h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.years p { font-size: 1.15rem; }

/* =====================================================================
   CÓMO TRABAJAMOS — pasos
   ===================================================================== */
.steps { background: linear-gradient(rgba(16,34,63,.93), rgba(16,34,63,.94)), url('/assets/img/hero-trafico.jpg') center/cover; color: #fff; }
.steps h2 { color: #fff; }
.steps .eyebrow { color: var(--blue-300); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: background .25s, transform .25s; }
.step:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.step__num { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-cta); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 20px; }
.step h3 { color: #fff; font-size: 1.25rem; }
.step p { color: #b9c4dd; margin: 0; }

/* =====================================================================
   CONTACTO (home)
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.contact__info .row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__info .row:last-child { border-bottom: 0; }
.contact__info .ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--blue-100);
  color: var(--blue-600); display: grid; place-items: center; }
.contact__info .ic svg { width: 24px; height: 24px; }
.contact__info .row b { display: block; color: var(--ink); font-family: var(--font-head); }
.contact__info .row span { color: var(--body); font-size: .96rem; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px;
  border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* =====================================================================
   CTA BANNER (landings)
   ===================================================================== */
.cta-band { background: linear-gradient(100deg, var(--blue-500), var(--blue-400)); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band .eyebrow { color: rgba(255,255,255,.8); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--blue-900); color: #aab6d0; position: relative;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 22px 22px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 72px 0 52px; }
.footer__brand p { color: #93a1c2; font-size: .95rem; max-width: 34ch; margin-top: 20px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.footer__links a { display: block; padding: 7px 0; color: #aab6d0; font-size: .96rem; transition: color .2s, padding .2s; }
.footer__links a:hover { color: #fff; padding-left: 5px; }
.footer__denuncia { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #cdd6ea; font-size: .9rem; transition: border-color .2s, background .2s; }
.footer__denuncia:hover { border-color: var(--blue-400); background: rgba(79,139,255,.1); }
.footer__denuncia svg { width: 20px; height: 20px; color: var(--blue-300); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: .86rem; color: #7e8cae; }
.footer__loc { display: inline-flex; align-items: center; gap: 7px; }
.footer__loc svg { color: var(--blue-300); flex: none; }

/* =====================================================================
   WHATSAPP FLOTANTE
   ===================================================================== */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* =====================================================================
   POPUP DE CONTACTO FIJO (pestaña lateral)
   ===================================================================== */
.ctab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 91;
  background: var(--grad-cta); color: #fff; border: 0; cursor: pointer; padding: 16px 12px;
  border-radius: 12px 0 0 12px; writing-mode: vertical-rl; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .05em; box-shadow: -4px 6px 18px rgba(20,34,63,.2); transition: padding .2s; }
.ctab:hover { padding-right: 16px; }
.ctab .rot { transform: rotate(180deg); }

.ctab-panel { position: fixed; inset: 0; z-index: 120; display: none; }
.ctab-panel.is-open { display: block; }
.ctab-panel__overlay { position: absolute; inset: 0; background: rgba(16,26,54,.55); backdrop-filter: blur(3px); }
.ctab-panel__box { position: absolute; right: 0; top: 0; height: 100%; width: min(430px, 100%); background: #fff;
  box-shadow: var(--shadow-lg); padding: 40px 34px; overflow-y: auto; transform: translateX(100%);
  transition: transform .35s var(--ease); }
.ctab-panel.is-open .ctab-panel__box { transform: none; }
.ctab-panel__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; background: var(--blue-50);
  border-radius: 10px; cursor: pointer; font-size: 22px; color: var(--ink); line-height: 1; }
.ctab-panel h3 { font-size: 1.5rem; margin-top: 8px; }
.ctab-panel .muted { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

/* Formularios */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 11px; font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: var(--blue-50);
  transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400);
  background: #fff; box-shadow: 0 0 0 4px rgba(79,139,255,.14); }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .section { padding: 62px 0; }
  .nav-toggle { display: block; }
  .header__actions .btn--cta { display: none; }
  .nav { position: fixed; inset: 82px 0 0 0; width: 100%; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 14px 18px 28px; margin: 0; box-shadow: var(--shadow-lg); overflow-y: auto;
    transform: translateX(100%); transition: transform .32s var(--ease); }
  .nav.is-open { transform: none; }
  .nav__link { padding: 15px 14px; justify-content: space-between; border-radius: 12px; }
  .megamenu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
    min-width: 0; padding: 4px 4px 10px 18px; display: none; }
  .megamenu::before { display: none; }
  .nav__item.is-open .megamenu { display: block; transform: none; }
  .contact__grid, .years__grid { grid-template-columns: 1fr; }
  .years__grid { gap: 14px; text-align: center; }
  .steps__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .topbar__note { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .logo-img { height: 40px; }
  .logo-img--footer { height: 48px; }
  .cards { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .topbar .container { gap: 16px; }
  .topbar__spacer { display: none; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .hero__inner { padding: 84px 0 92px; }
  /* Botones del hero en fila (no apilados) */
  .hero__actions { flex-wrap: nowrap; gap: 12px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap;
    padding-inline: 14px; font-size: .95rem; }
  .hero__actions .btn svg { display: none; } /* flecha fuera en móvil: acabado más limpio */
  /* Pie de página: apilar copyright y ubicación */
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =====================================================================
   LANDINGS (categoría + servicio)
   ===================================================================== */
.landing-hero { position: relative; color: #fff; overflow: hidden; text-align: center; padding: 92px 0 96px; }
.landing-hero__media { position: absolute; inset: 0; z-index: -2;
  background-color: #16223f; background-position: center; background-size: cover; background-repeat: no-repeat; }
.landing-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,26,54,.84), rgba(16,26,54,.68)); }
.landing-hero__cat { display: block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .9rem; color: var(--blue-300); margin-bottom: 10px; }
.landing-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 0; }
.landing-hero__divider { width: 46px; height: 3px; background: var(--blue-400); border-radius: 2px; margin: 16px auto 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  font-size: .84rem; color: #b8c5e2; margin-bottom: 20px; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* Bloque azul de introducción, superpuesto al hero */
.landing-intro { position: relative; z-index: 2; margin-top: -52px; }
.landing-intro__box { background: var(--blue-600); color: #fff; border-radius: var(--radius-lg);
  padding: 34px 44px; max-width: 940px; margin: 0 auto; text-align: center; box-shadow: var(--shadow-lg); }
.landing-intro__box p { margin: 0; font-size: 1.14rem; font-weight: 500; line-height: 1.6; }

/* Rejilla de servicios / features con centrado y autofit */
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.card--center { text-align: center; align-items: center; }
.card--center .card__icon { margin-inline: auto; }
.card--center .card__link { justify-content: center; }
.card--plain { cursor: default; }
.card--plain:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card--plain:hover .card__icon { background: var(--blue-100); color: var(--blue-600); }

@media (max-width: 620px) {
  .landing-hero { padding: 66px 0 72px; }
  .landing-intro__box { padding: 26px 24px; }
}

/* =====================================================================
   PÁGINA DE CONTACTO + FORMULARIOS
   ===================================================================== */
.contact-page__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid2 .field.full { grid-column: 1 / -1; }

.info-card { background: var(--blue-900); color: #cdd6ea; border-radius: var(--radius-lg); padding: 34px; }
.info-card h3 { color: #fff; }
.info-card .row { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(79,139,255,.16);
  color: var(--blue-300); display: grid; place-items: center; }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card b { display: block; color: #fff; font-family: var(--font-head); font-size: .98rem; }
.info-card a { color: #cdd6ea; } .info-card a:hover { color: #fff; }
.info-map { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); min-height: 260px; }
.info-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

/* Alertas */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: 12px; margin-bottom: 24px;
  font-size: .96rem; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert--ok  { background: #e7f8ef; color: #12694a; border: 1px solid #b7e6cd; }
.alert--err { background: #fdeaea; color: #a3271f; border: 1px solid #f5c4c0; }
.field .err { color: #c0392b; font-size: .82rem; margin-top: 5px; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #e07a72; background: #fdf5f5; }

/* =====================================================================
   BUZÓN DE DENUNCIAS (anónimo)
   ===================================================================== */
.badge-anon { display: inline-flex; align-items: center; gap: 9px; background: rgba(79,139,255,.16);
  color: #dbe6ff; border: 1px solid rgba(123,168,255,.4); padding: 8px 16px; border-radius: 100px;
  font-size: .84rem; font-weight: 600; margin-bottom: 20px; }
.badge-anon svg { width: 17px; height: 17px; }
.anon-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 48px; }
.anon-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); }
.anon-step .n { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--blue-400);
  background: var(--blue-50); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.anon-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.anon-step p { font-size: .92rem; margin: 0; }
.anon-form-wrap { background: var(--blue-50); }

/* =====================================================================
   SOBRE NOSOTROS
   ===================================================================== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px;
  text-align: center; box-shadow: var(--shadow-sm); }
.value .card__icon { margin: 0 auto 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.stat { text-align: center; padding: 20px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  background: linear-gradient(160deg, var(--blue-500), var(--grad-a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--body); font-size: .96rem; }

@media (max-width: 900px) {
  .contact-page__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 620px) {
  .form-grid2 { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
}

/* =====================================================================
   PÁGINAS LEGALES (prose) + SITEMAP
   ===================================================================== */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 38px; }
.prose h3 { font-size: 1.12rem; margin-top: 26px; }
.prose p, .prose li { color: var(--body); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1rem; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue-500); text-decoration: underline; }
.prose .placeholder { background: #fff7e6; border: 1px dashed #e0b34d; color: #8a6d1f; padding: 2px 7px;
  border-radius: 6px; font-size: .92em; }
.prose__note { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px;
  padding: 16px 20px; font-size: .9rem; color: var(--blue-700); margin-bottom: 30px; }

.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.sitemap-cols h3 { font-size: 1rem; color: var(--blue-600); margin-bottom: 10px; }
.sitemap-cols a { display: block; padding: 6px 0; color: var(--body); }
.sitemap-cols a:hover { color: var(--blue-500); padding-left: 4px; transition: padding .2s, color .2s; }

/* =====================================================================
   BANNER DE COOKIES
   ===================================================================== */
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 130; max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px 24px; transform: translateY(140%); transition: transform .4s var(--ease); }
.cookie.is-visible { transform: none; }
.cookie h4 { font-size: 1.05rem; margin-bottom: 6px; }
.cookie p { font-size: .9rem; color: var(--body); margin-bottom: 16px; }
.cookie p a { color: var(--blue-500); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 22px; font-size: .92rem; }

@media (max-width: 620px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie__actions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
