/* CitaitvYA — hoja de estilos única. Móvil primero. */
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --azul: #084d88;
  --azul-osc: #06385f;
  --azul-claro: #e8f0f9;
  --verde: #00d084;
  --verde-osc: #007a4d;
  --texto: #1b2533;
  --texto-suave: #4f5d70;
  --fondo: #ffffff;
  --fondo-alt: #f7f9fc;
  --borde: #dbe3ec;
  --card: #ffffff;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(8, 40, 80, .06), 0 6px 20px rgba(8, 40, 80, .07);
  --ancho: 1160px;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.65; color: var(--texto); background: var(--fondo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--azul-osc); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 750; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.section { padding: 56px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--fondo-alt); }
/* Alternancia automática de bloques: la cabecera es blanca, así que el 1.º bloque es azul,
   el 2.º claro, el 3.º azul… (también la cabecera de los artículos del blog). */
main > section:nth-of-type(odd), main > article > header, .section-dark {
  background: linear-gradient(160deg, #0a4f8c 0%, #073a66 100%); color: #fff; border-bottom: 0;
}
main > section:nth-of-type(even) { background: var(--fondo); }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) :is(h1, h2, h3) { color: #fff; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) :is(p, .lead, .small, .post-meta, .breadcrumbs ol) { color: #d3e2f1; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .eyebrow { color: #7df0bf; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) h1 span { color: #7df0bf; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) a:not(.btn):not(.card) { color: #9fd0ff; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .breadcrumbs a { color: #d3e2f1; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .btn-primary { background: #fff; color: #084d88; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .steps > li::before { background: #00d084; color: #05301f; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .step-img summary { color: #9fd0ff; }
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .feature img,
:is(main > section:nth-of-type(odd), main > article > header, .section-dark) .map-link img { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-color: transparent; }
/* Dentro de tarjetas, formularios, FAQ y notas (fondo claro) se recupera el texto oscuro */
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .faq details, .note, .table-wrap, .partner-card, .finder) { color: var(--texto); }
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .faq details, .note, .table-wrap, .partner-card, .finder) :is(p, .small, .card-meta) { color: var(--texto-suave); }
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .faq details, .note, .table-wrap, .partner-card, .finder) :is(h2, h3, label, strong) { color: var(--texto); }
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .faq details, .note, .table-wrap, .partner-card, .finder) a:not(.btn) { color: var(--azul); }
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .partner-card, .finder) .btn-primary { background: #084d88; color: #fff; }
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .partner-card) .btn-ghost { color: var(--azul); border-color: currentColor; }
:is(main > section:nth-of-type(odd), .section-dark) :is(.card, .form, .partner-card) .eyebrow { color: var(--verde-osc); }
:is(main > section:nth-of-type(odd), .section-dark) .form-status.ok { color: var(--verde-osc); }
:is(main > section:nth-of-type(odd), .section-dark) .form-status.error { color: #c0392b; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.lead { font-size: 1.15rem; color: var(--texto-suave); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--verde-osc); margin-bottom: .5em; }
.small { font-size: .9rem; color: var(--texto-suave); }
.mt { margin-top: 2.5rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s, background-color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #084d88; color: #fff; }
.btn-primary:hover { background: #06385f; color: #fff; }
.btn-accent { background: #00d084; color: #05301f; }
.btn-accent:hover { background: #00b874; color: #05301f; }
.btn-ghost { background: transparent; color: var(--azul); border-color: currentColor; }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--fondo); border-bottom: 1px solid var(--borde); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo img { width: 104px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--texto); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fondo); border-bottom: 1px solid var(--borde); padding: 8px 16px 20px; max-height: calc(100vh - 64px); overflow-y: auto; }
.nav.open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--borde); }
.nav-list a, .nav-sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 4px; color: var(--texto); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-list a[aria-current="page"] { color: var(--azul); }
.nav-sub { list-style: none; margin: 0; padding: 0 0 8px 12px; display: none; }
.nav-sub a { font-weight: 500; padding: 9px 4px; }
.has-sub.open > .nav-sub { display: block; }
.has-sub.open > .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; padding: 0; border: 0; align-items: center; gap: 20px; max-height: none; overflow: visible; background: none; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .nav-sub-toggle { padding: 8px 10px; font-size: .98rem; gap: 4px; border-radius: 8px; white-space: nowrap; }
  .nav-list > li > a:hover, .nav-sub-toggle:hover { background: var(--azul-claro); }
  .nav-sub { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--card); border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra); padding: 6px; }
  .nav-sub a { padding: 8px 12px; border-radius: 8px; }
  .nav-sub a:hover { background: var(--azul-claro); }
  .has-sub:hover > .nav-sub, .has-sub:focus-within > .nav-sub { display: block; }
  .nav-cta { margin: 0; flex-wrap: nowrap; }
}

/* Hero */
.hero { padding: 36px 0 48px; }
.hero h1 span { color: var(--azul); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-img { border-radius: 20px; box-shadow: var(--sombra); }
@media (min-width: 900px) { .hero { padding: 72px 0; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.finder { background: var(--card); border: 1px solid var(--borde); box-shadow: var(--sombra); border-radius: var(--radio); padding: 16px; margin-top: 24px; max-width: 560px; }
.finder label { display: block; font-weight: 700; margin-bottom: 8px; }
.finder-row { display: flex; flex-wrap: wrap; gap: 10px; }
.finder select { flex: 1 1 220px; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--borde); padding: 0 12px; font: inherit; color: var(--texto); background: var(--fondo); }

/* Cabecera de página interior */
.page-head { padding: 20px 0 28px; }
.page-head h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin-top: .3em; }
.page-head .lead { margin-bottom: 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--texto-suave); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; }
.breadcrumbs a { color: inherit; }

/* Rejillas y tarjetas */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 22px; color: var(--texto); }
a.card { text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); color: var(--texto); box-shadow: 0 10px 30px rgba(8, 40, 80, .14); }
.card-title { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.card-meta { display: block; font-size: .92rem; color: var(--texto-suave); }
.card-horario { margin-top: 4px; font-size: .88rem; }
.tabla-nota { display: block; font-weight: 400; font-size: .85rem; color: var(--texto-suave); margin-top: 2px; }
.card-service { display: flex; flex-direction: column; gap: 8px; }
.card-icon { font-size: 1.8rem; }
.card-link { margin-top: auto; font-weight: 700; color: var(--azul); }
.card-estacion { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-estacion img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 16px; }
.card-prov h3 a { text-decoration: none; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips .chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--azul-claro); text-decoration: none; font-size: .95rem; font-weight: 600; }
.card .card-img { border-radius: 10px; margin-bottom: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature img { border-radius: 12px; margin-bottom: 14px; aspect-ratio: 3 / 2; object-fit: cover; }

/* Ficha de estación */
.station-top { display: grid; gap: 18px; }
@media (min-width: 900px) { .station-top { grid-template-columns: 1fr 1fr; } }
.info-list { margin: 0 0 18px; }
.info-list div { display: grid; gap: 2px 8px; padding: 8px 0; border-bottom: 1px dashed var(--borde); }
@media (min-width: 480px) { .info-list div { grid-template-columns: 9.5em 1fr; } }
.info-list dt { font-weight: 700; }
.info-list dd { margin: 0; }
.service-card { border: 2px solid var(--verde); }
.steps { counter-reset: paso; list-style: none; padding: 0; }
.steps > li { counter-increment: paso; position: relative; padding: 0 0 18px 52px; }
.steps > li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps p { margin: 0 0 6px; }
.step-img summary { cursor: pointer; color: var(--azul); font-size: .92rem; font-weight: 600; }
.step-img img { margin-top: 10px; border-radius: 10px; border: 1px solid var(--borde); }
.note { background: var(--azul-claro); border-radius: var(--radio); padding: 20px 22px; margin-top: 16px; }
.note ul { margin: 0; }
.station-map { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .station-map { grid-template-columns: 1fr 1fr; } }
.map-link img { border-radius: var(--radio); border: 1px solid var(--borde); }

/* FAQ */
.faq details { border: 1px solid var(--borde); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--azul); }
.faq details[open] summary::after { content: '−'; }
.faq-a { padding: 0 18px 6px; color: var(--texto-suave); }

.faq-indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-link { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip-link:hover { background: rgba(255, 255, 255, .24); }
.faq-tema { margin-top: 1.6em; scroll-margin-top: 90px; }
.faq-tema:first-child { margin-top: 0; }

.faq-mas { margin: 20px 0 0; text-align: center; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--borde); border-radius: 12px; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--borde); }
.table thead th { background: var(--azul-claro); }
.table tbody tr:last-child > * { border-bottom: 0; }
/* En móvil, las tablas con .table-stack se muestran como fichas: una fila = una ficha */
@media (max-width: 640px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--borde); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { border: 0; padding: 2px 0; }
  .table-stack th { font-size: 1.05rem; padding-bottom: 6px; }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--texto-suave); }
}

/* Banda de llamada a la acción */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #0a4f8c, #073a66); color: #fff; border-left: 6px solid var(--verde); box-shadow: var(--sombra); border-radius: 20px; padding: 28px; }
.cta-band h2 { font-size: 1.4rem; color: #fff; }
.cta-band p { color: #d3e2f1; margin: 0; max-width: 55ch; }
:is(main > section:nth-of-type(odd), .section-dark) .cta-band { background: #fff; color: var(--texto); }
:is(main > section:nth-of-type(odd), .section-dark) .cta-band h2 { color: var(--texto); }
:is(main > section:nth-of-type(odd), .section-dark) .cta-band p { color: var(--texto-suave); }

/* Botones de ruta (Google Maps / Apple Maps) */
.route-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; max-width: 380px; }
.btn-route { background: var(--card); color: var(--texto); border: 1.5px solid var(--borde); padding: .6em .8em; }
@media (max-width: 420px) { .route-src { display: none; } }
.btn-route:hover { border-color: var(--azul); color: var(--texto); }
.btn-route svg { flex: none; }
.route-src { font-weight: 500; font-size: .85em; color: var(--texto-suave); }

/* Servicio externo recomendado (LlaveYa) */
.partner-card { display: grid; gap: 16px; align-items: center; background: var(--card); border: 2px solid var(--azul); border-radius: var(--radio); box-shadow: var(--sombra); padding: 22px; }
.partner-card h2 { margin-bottom: .3em; }
.partner-card p:last-child { margin-bottom: 0; }
.partner-icon { font-size: 2.4rem; line-height: 1; }
@media (min-width: 800px) { .partner-card { grid-template-columns: auto 1fr auto; padding: 24px 28px; } }

/* Formularios */
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); }
.field { display: grid; gap: 6px; align-content: start; }
.form .grid { align-items: start; }
.form > .btn { justify-self: start; min-width: 240px; }
@media (max-width: 640px) { .form > .btn { justify-self: stretch; } }
.field label, .fieldset legend { font-weight: 700; }
.field small { color: var(--texto-suave); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--texto);
  background: var(--fondo); border: 1.5px solid var(--borde); border-radius: 10px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(8, 77, 136, .18); }
.field .invalid, .invalid { border-color: #c0392b !important; }
.fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--borde); border-radius: 10px; cursor: pointer; font-weight: 600; }
.radios input { accent-color: var(--azul); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--azul); flex: none; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--verde-osc); }
.form-status.error { color: #c0392b; }
/* Resultado de las calculadoras */
.calc-result { border-radius: 12px; padding: 18px 20px; border: 2px solid var(--borde); background: var(--fondo-alt); }
.calc-result:focus { outline: none; }
.calc-result p:last-child { margin-bottom: 0; }
.calc-result.ok { border-color: var(--verde); }
.calc-result.pronto { border-color: #e0a800; background: #fff9e6; }
.calc-result.caducada, .calc-result.error { border-color: #c0392b; background: #fdf0ee; }
.calc-big { font-size: 1.25rem; }
.calc-big strong { color: var(--azul); }
.price-box { background: var(--azul-claro); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.form-section { font-size: 1.05rem; margin: 8px 0 -4px; padding-top: 8px; border-top: 1px solid var(--borde); }

/* Contenido editorial (blog, legales, servicios) */
.prose { max-width: 760px; overflow-wrap: break-word; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose figure { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; }
.post-meta { color: var(--texto-suave); font-size: .95rem; }
.post-cover-fig { margin: 0 0 24px; }
.post-cover { border-radius: var(--radio); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; }
.post-cover-fig figcaption { margin-top: 6px; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } .split-sticky { position: sticky; top: 90px; } }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--verde-osc); font-weight: 800; }
.product { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.product img { border-radius: 10px; margin: 0; background: #fff; }
.disclosure { font-size: .88rem; color: var(--texto-suave); border-top: 1px solid var(--borde); padding-top: 12px; margin-top: 24px; }

/* Pie */
.site-footer { background: #06243f; color: #c9d6e4; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { width: 120px; margin-bottom: 12px; background: #fff; border-radius: 6px; padding: 4px; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: .8em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .small { color: #9fb2c7; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 20px; font-size: .88rem; }

/* Banner de cookies: compacto, abajo, sin tapar el contenido */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 760px; margin: 0 auto;
  background: var(--card); color: var(--texto); border: 1px solid var(--borde); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22); padding: 16px 18px; font-size: .92rem; line-height: 1.5;
  max-height: 70vh; overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.cookie-banner p { margin-bottom: 10px; }
.cookie-prefs { display: grid; gap: 8px; margin-bottom: 10px; }
.cookie-prefs label { display: flex; gap: 8px; align-items: center; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { padding: .6em 1em; font-size: .92rem; }
.cookie-actions [data-cookie="accept"] { grid-column: span 2; }
@media (min-width: 640px) { .cookie-actions { display: flex; justify-content: flex-end; } .cookie-actions [data-cookie="accept"] { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cookie-banner { display: none; } }
