/* Trabajar en Andorra — sistema de diseño «guía de montaña, clara». Mobile-first. */

/* ---------- Tipografía (Inter variable, autoalojada; licencia OFL en assets/fonts) ---------- */
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --azul: #15426d;
    --azul-900: #0c2440;
    --azul-800: #10345a;
    --azul-600: #2b5f8f;
    --azul-100: #e3edf6;
    --azul-50: #f2f6fa;
    --naranja: #e0761d;
    --naranja-700: #b85c10;
    --naranja-100: #fdeedd;
    --nieve: #f6f8fa;
    --blanco: #ffffff;
    --tinta: #17212b;
    --gris: #56687a;
    --gris-claro: #8b99a8;
    --linea: #dde4ec;
    --linea-suave: #eaeff4;
    --ok: #1c6b34;
    --ok-100: #e0f2e5;
    --aviso: #8a5a13;
    --aviso-100: #fdeeda;
    --peligro: #b4231f;
    --peligro-100: #fbe4e3;
    --radio: 14px;
    --radio-s: 8px;
    --sombra: 0 1px 2px rgba(12, 36, 64, 0.06), 0 10px 28px -14px rgba(12, 36, 64, 0.22);
    --sombra-flotante: 0 12px 40px -12px rgba(12, 36, 64, 0.35);
    --max: 72rem;
    --prose: 46rem;
    --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* alias de la paleta anterior, por compatibilidad */
    --azul-claro: #e3edf6;
    --acento: #e0761d;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--tinta);
    background: var(--nieve);
    font-feature-settings: "cv11", "ss01";
}
body.nav-open { overflow: hidden; }
a { color: var(--azul); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--azul-800); }
h1, h2, h3, h4 { color: var(--azul-900); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.ico { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
:focus-visible { outline: 3px solid rgba(21, 66, 109, 0.45); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--azul-900); color: #fff; padding: 0.5rem 0.75rem; border-radius: var(--radio-s); z-index: 2000; }
.skip-link:focus { left: 0.5rem; }

main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 4rem; }
body.is-home main { max-width: none; padding: 0 0 4rem; }

/* ---------- Botones ---------- */
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--azul); color: #fff; border: 1px solid var(--azul);
    border-radius: 10px; padding: 0.7rem 1.2rem; font: inherit; font-weight: 600; line-height: 1.2;
    cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
button:hover, .button:hover { background: var(--azul-800); border-color: var(--azul-800); color: #fff; }
button:active, .button:active { transform: translateY(1px); }
.button-accent, button.button-accent { background: var(--naranja); border-color: var(--naranja); color: #fff; }
.button-accent:hover, button.button-accent:hover { background: var(--naranja-700); border-color: var(--naranja-700); }
.button-light { background: #fff; border-color: #fff; color: var(--azul-900); }
.button-light:hover { background: var(--azul-100); border-color: var(--azul-100); color: var(--azul-900); }
.button-ghost, button.button-ghost { background: transparent; color: var(--azul); border-color: var(--linea); }
.button-ghost:hover, button.button-ghost:hover { background: var(--azul-50); border-color: var(--azul-600); color: var(--azul-800); }
.button-link, button.button-link, button.link { background: none; border: 0; color: var(--azul); padding: 0.4rem 0.25rem; font-weight: 600; }
.button-link:hover, button.button-link:hover, button.link:hover { background: none; color: var(--azul-800); text-decoration: underline; }
button.danger { background: var(--peligro); border-color: var(--peligro); }
button.danger:hover { background: #8c1d19; border-color: #8c1d19; }
.link-danger { background: none; border: 0; color: var(--peligro); padding: 0; font-weight: 600; font-size: 0.875rem; }
.link-danger:hover { background: none; color: #8c1d19; text-decoration: underline; }

/* ---------- Cabecera ---------- */
/* Sin backdrop-filter: crearía un contenedor para el panel del menú móvil y lo dejaría sin altura */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--linea); }
.site-header-inner { max-width: var(--max); margin: 0 auto; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--azul-900); text-decoration: none; }
.brand-mark { color: var(--azul); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; letter-spacing: -0.01em; }
.brand-top { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); }
.brand-bottom { font-size: 1.25rem; font-weight: 800; color: var(--azul-900); }
.brand-light .brand-top { color: #9fb3c8; }
.brand-light .brand-bottom { color: #fff; }

.nav-toggle { margin-left: auto; background: #fff; color: var(--azul-900); border: 1px solid var(--linea); padding: 0.5rem 0.75rem; gap: 0.5rem; }
.nav-toggle:hover { background: var(--azul-50); color: var(--azul-900); border-color: var(--linea); }
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; display: block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
    display: flex; flex-direction: column; gap: 0.25rem;
    position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 4.25rem); max-height: calc(100dvh - 4.25rem);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff; padding: 1rem 1rem 2rem; border-top: 1px solid var(--linea); box-shadow: var(--sombra-flotante);
}
.site-nav > a, .site-nav > details > summary {
    display: block; padding: 0.7rem 0.75rem; border-radius: 10px; color: var(--azul-900);
    font-weight: 600; text-decoration: none; cursor: pointer; list-style: none;
}
.site-nav > details > summary::-webkit-details-marker { display: none; }
.site-nav > details > summary::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); transition: transform 0.15s; }
.site-nav > details[open] > summary::after { transform: translateY(0.05em) rotate(-135deg); }
.site-nav > a:hover, .site-nav > details > summary:hover, .site-nav > details[open] > summary { background: var(--azul-50); color: var(--azul); }
.nav-panel { padding: 0.25rem 0.75rem 0.75rem; }
.nav-panel-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); margin: 0.5rem 0 0.5rem; }
.nav-guide { margin: 0; padding: 0 0 0 1.5rem; columns: 1; }
.nav-guide li { padding: 0.2rem 0; break-inside: avoid; }
.nav-guide a, .nav-community a { color: var(--tinta); text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.nav-guide a:hover, .nav-community a:hover { color: var(--azul); text-decoration: underline; }
.nav-guide li::marker { color: var(--gris-claro); font-weight: 600; font-size: 0.85em; }
.nav-community { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.nav-community a { padding: 0.35rem 0; }
.nav-community .ico { color: var(--azul-600); width: 1.25rem; height: 1.25rem; }
.site-nav .nav-cuenta { margin-top: 0.5rem; }

@media (min-width: 64rem) {
    .nav-toggle { display: none; }
    .site-nav, .site-nav.is-open { display: flex; position: static; flex-direction: row; align-items: center; gap: 0.25rem; margin-left: auto; padding: 0; border: 0; background: none; overflow: visible; }
    .site-nav > a, .site-nav > details > summary { padding: 0.5rem 0.8rem; font-size: 0.95rem; }
    .site-nav > details { position: relative; }
    .nav-panel {
        position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 18rem;
        background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-flotante);
        padding: 1rem 1.25rem 1.25rem; z-index: 950;
    }
    .nav-menu-guia .nav-panel { min-width: 36rem; }
    .nav-guide { columns: 2; column-gap: 2rem; }
    .nav-menu-comunidad .nav-panel { left: auto; right: 0; }
    .site-nav .nav-cuenta { margin: 0 0 0 0.5rem; padding: 0.5rem 1rem; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--azul-900) 0%, var(--azul) 70%, var(--azul-600) 100%); color: #fff; padding: 3.5rem 1rem 6.5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 30rem at 85% -20%, rgba(255, 255, 255, 0.12), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.hero-kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd39b; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 0.3rem 0.75rem; margin: 0 0 1.25rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.4rem); max-width: 18ch; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: #d6e4f2; max-width: 56ch; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-cta .button { padding: 0.85rem 1.4rem; font-size: 1.02rem; }
.hero-points { font-size: 0.9rem; color: #a9bfd4; margin: 0; }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 7rem; display: block; }
@media (min-width: 48rem) { .hero { padding: 5rem 1rem 8rem; } }

.section { max-width: var(--max); margin: 0 auto; padding: 3rem 1rem 0; }
.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 0.35rem; }
.section-head p { color: var(--gris); margin: 0; font-size: 1.05rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .cards-2, .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card, .card-link {
    position: relative; display: flex; flex-direction: column; gap: 0.4rem;
    background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
    padding: 1.35rem 1.35rem 1.4rem; text-decoration: none; color: var(--tinta);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover, .card-link:hover { transform: translateY(-2px); border-color: var(--azul-600); box-shadow: var(--sombra); color: var(--tinta); }
.card strong, .card-link { font-weight: 700; color: var(--azul-900); font-size: 1.08rem; line-height: 1.3; }
.card-link { display: block; }
.card small, .card-link small { display: block; font-weight: 400; color: var(--gris); font-size: 0.93rem; line-height: 1.5; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--azul-50); color: var(--azul); margin-bottom: 0.5rem; }
.card:hover .card-icon { background: var(--azul-100); }
.card-step { position: absolute; top: 1.1rem; right: 1.2rem; font-size: 0.8rem; font-weight: 700; color: var(--gris-claro); }
.card-tool .card-icon { background: var(--naranja-100); color: var(--naranja-700); }
.card-mini { flex-direction: row; align-items: flex-start; gap: 0.9rem; padding: 1.1rem 1.2rem; }
.card-mini .card-icon { margin: 0; width: 2.5rem; height: 2.5rem; }
.card-mini strong { font-size: 1rem; }
.card-mini > strong, .card-mini > small { display: block; }
.card-mini .card-icon + strong { margin-top: 0.1rem; }
.card-mini { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; row-gap: 0.15rem; }
.card-mini .card-icon { grid-row: 1 / span 2; }

.guia-mas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.guia-mas-label { color: var(--gris); font-size: 0.9rem; margin-right: 0.25rem; }
.chip { display: inline-block; background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; color: var(--azul-900); text-decoration: none; font-weight: 500; }
.chip:hover { border-color: var(--azul-600); background: var(--azul-50); color: var(--azul); }

.band { max-width: var(--max); margin: 3rem auto 0; padding: 0 1rem; }
.band-inner { display: grid; gap: 1.25rem; background: linear-gradient(135deg, var(--azul-100), #f3f7fb); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.75rem; }
.band-icon { width: 3.25rem; height: 3.25rem; border-radius: 14px; background: var(--azul); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.band-icon .ico { width: 1.75rem; height: 1.75rem; }
.band-text h2 { margin-bottom: 0.35rem; }
.band-text p { margin: 0; color: var(--gris); }
.band-cta { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.band-link { font-weight: 600; text-decoration: none; }
.band-link:hover { text-decoration: underline; }
@media (min-width: 48rem) { .band-inner { grid-template-columns: auto 1fr auto; align-items: center; padding: 2rem 2.25rem; } .band-cta { align-items: flex-end; } }

.nl-cta { max-width: var(--max); margin: 3rem auto 0; padding: 0 1rem; text-align: center; }
.nl-cta > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.nl-cta-icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--naranja-100); color: var(--naranja-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.nl-cta h2 { margin-bottom: 0.4rem; }
.nl-cta p { color: var(--gris); margin-bottom: 1.25rem; }
body.is-home .patrocinadores { max-width: var(--max); margin: 3rem auto 0; padding: 0 1rem; }

/* ---------- Páginas interiores ---------- */
.breadcrumbs { font-size: 0.875rem; color: var(--gris); margin: 0.25rem 0 1.25rem; }
.breadcrumbs a { color: var(--gris); text-decoration: none; }
.breadcrumbs a:hover { color: var(--azul); text-decoration: underline; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 0.5rem; }
.page-head h1 { margin: 0; }
.lead { font-size: 1.15rem; color: var(--gris); max-width: 60ch; }

.page { max-width: var(--prose); min-width: 0; }
.page-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.page-aside { order: 2; font-size: 0.92rem; border-top: 1px solid var(--linea); padding-top: 1.25rem; }
.page-aside-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); margin: 0 0 0.6rem; font-weight: 700; }
.page-aside ol { margin: 0; padding-left: 1.4rem; }
.page-aside li { padding: 0.22rem 0; }
.page-aside li::marker { color: var(--gris-claro); font-weight: 600; font-size: 0.85em; }
.page-aside a { color: var(--tinta); text-decoration: none; }
.page-aside a:hover { color: var(--azul); text-decoration: underline; }
.page-aside .is-current span { font-weight: 700; color: var(--azul); }
@media (min-width: 64rem) {
    .page-layout { grid-template-columns: minmax(0, var(--prose)) 15rem; gap: 4rem; align-items: start; }
    .page-layout.single { grid-template-columns: minmax(0, var(--prose)); }
    .page-aside { order: 2; position: sticky; top: 5.5rem; border-top: 0; padding-top: 0.25rem; border-left: 1px solid var(--linea); padding-left: 1.5rem; }
}
.page-header { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--linea); }
.page-header h1 { margin-bottom: 0.5rem; }
.revision { display: inline-block; font-size: 0.8rem; color: var(--gris); background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 0.2rem 0.7rem; margin: 0; }

.prose { font-size: 1.06rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.25rem; padding-top: 0.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose img { height: auto; border-radius: var(--radio-s); }
.prose table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.25rem 0; font-size: 0.95rem; border: 1px solid var(--linea); border-radius: var(--radio-s); overflow: hidden; background: #fff; }
.prose th, .prose td { padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea-suave); }
.prose th { background: var(--azul-50); color: var(--azul-900); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 1.25rem 0; padding: 0.75rem 1.25rem; border-left: 4px solid var(--azul-600); background: #fff; border-radius: 0 var(--radio-s) var(--radio-s) 0; color: var(--gris); }
.prose code { background: var(--azul-50); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.prose .button { font-size: 1rem; }
.content { font-size: 1.06rem; line-height: 1.7; }
.content h2 { margin-top: 2.25rem; }
.content table { border-collapse: collapse; width: 100%; }
.content th, .content td { border: 1px solid var(--linea); padding: 0.5rem 0.625rem; text-align: left; }
.aviso-pendiente { background: var(--aviso-100); border-left: 4px solid var(--naranja); padding: 0.75rem 1rem; border-radius: 0 var(--radio-s) var(--radio-s) 0; }

.faqs { margin-top: 2.5rem; }
.faqs details { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0 1rem; margin: 0.5rem 0; }
.faqs summary { font-weight: 600; cursor: pointer; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-size: 1.3rem; color: var(--azul-600); flex: 0 0 auto; }
.faqs details[open] summary::after { content: "–"; }
.faqs details > div { padding: 0 0 1rem; color: var(--tinta); }

.page-siblings { display: grid; gap: 0.75rem; margin: 2.5rem 0 0; grid-template-columns: 1fr 1fr; }
.sibling { display: flex; flex-direction: column; gap: 0.1rem; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0.75rem 1rem; text-decoration: none; }
.sibling:hover { border-color: var(--azul-600); }
.sibling small { color: var(--gris); font-size: 0.8rem; }
.sibling span { font-weight: 600; color: var(--azul-900); }
.sibling-next { text-align: right; align-items: flex-end; }

.fuentes { margin-top: 2.5rem; font-size: 0.9rem; color: var(--gris); border-top: 1px solid var(--linea); padding-top: 1.25rem; }
.fuentes h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); }
.fuentes ul { padding-left: 1.2rem; }
.fuentes small { color: var(--gris-claro); }

.error-page { text-align: center; padding: 4rem 1rem; max-width: 36rem; margin: 0 auto; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--azul-100); line-height: 1; margin: 0; letter-spacing: -0.04em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--azul-900); color: #b9c9d9; margin-top: 2rem; }
.site-footer-inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; font-size: 0.95rem; }
.site-footer a { color: #d3dfeb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { font-size: 0.95rem; max-width: 30ch; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 2.5rem 0 0; padding-top: 1.25rem; font-size: 0.85rem; color: #8ea4ba; }
.site-footer .patrocinadores { margin: 0 0 2rem; }
.site-footer .patrocinadores-label { color: #8ea4ba; }
.site-footer .patrocinadores-list img { max-height: 44px; max-width: 120px; }

/* ---------- Formularios ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"],
input[type="search"], input[type="date"], input[type="datetime-local"], input[type="tel"], select, textarea {
    width: 100%; padding: 0.65rem 0.8rem; border: 1px solid #c6d0db; border-radius: var(--radio-s);
    font: inherit; color: var(--tinta); background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-600); box-shadow: 0 0 0 3px rgba(21, 66, 109, 0.15); }
textarea { min-height: 7rem; resize: vertical; }
label { font-weight: 600; }
.tool-form { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.5rem; margin: 1.25rem 0; box-shadow: var(--sombra); }
.tool-form label { display: block; font-weight: 600; margin: 0.9rem 0; }
.tool-form input, .tool-form select, .tool-form textarea { margin-top: 0.35rem; }
.tool-form fieldset { border: 0; border-top: 1px solid var(--linea-suave); padding: 0.9rem 0 0; margin: 1.25rem 0 0; }
.tool-form legend { font-weight: 700; padding-right: 0.5rem; color: var(--azul-900); }
.tool-form label.radio { font-weight: 400; margin: 0.45rem 0; display: flex; align-items: center; gap: 0.5rem; }
.tool-form label.radio input, .consent input, .cc-option input, .chk input { width: auto; margin: 0; accent-color: var(--azul); }
.tool-form button { margin-top: 1rem; }
.form-narrow { max-width: 28rem; margin-left: auto; margin-right: auto; }
/* Etiqueta de consentimiento: texto con enlaces en línea; la casilla queda a la izquierda */
.consent { font-weight: 400; display: block; position: relative; padding-left: 1.75rem; line-height: 1.5; }
.consent input { position: absolute; left: 0; top: 0.3rem; }
.cf-turnstile { margin: 1rem 0 0.25rem; }
.grid-2 { display: grid; gap: 0 1rem; }
.grid-3 { display: grid; gap: 0 1rem; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 40rem) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.hint { color: var(--gris); font-size: 0.92rem; }
.alert { padding: 0.75rem 1rem; border-radius: var(--radio-s); border: 1px solid transparent; }
.alert-ok { background: var(--ok-100); color: var(--ok); border-color: #bfe3ca; }
.alert-error { background: var(--peligro-100); color: #8c1d19; border-color: #f3c4c1; }
.normas { background: var(--aviso-100); border-radius: var(--radio-s); padding: 0.9rem 1.1rem; margin: 1rem 0; font-size: 0.95rem; }
.normas ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* ---------- Herramientas ---------- */
.tool-result { background: var(--azul-50); border: 1px solid var(--azul-100); border-radius: var(--radio); padding: 1.5rem; margin: 1.5rem 0; }
.tool-result table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radio-s); overflow: hidden; }
.tool-result td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--linea-suave); }
.tool-result tr.total td { border-top: 2px solid var(--azul); border-bottom: 0; font-weight: 700; }
.tool-result td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-result + .fuentes .button { margin-top: 0.75rem; }
.check-item { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0.8rem 1rem; margin: 0.5rem 0; cursor: pointer; font-weight: 400; }
.check-item input { width: auto; margin-top: 0.3rem; accent-color: var(--azul); }
.check-item small { display: block; color: var(--gris); }
.check-item input:checked + span { text-decoration: line-through; color: var(--gris); }
.timeline { list-style: none; padding: 0; }
.timeline-item { border-left: 3px solid var(--azul); background: #fff; border-radius: 0 var(--radio-s) var(--radio-s) 0; padding: 0.85rem 1.1rem; margin: 0.75rem 0; box-shadow: var(--sombra); }
.timeline-date { display: block; color: var(--gris); font-size: 0.9rem; }

/* ---------- Opiniones de empleadores ---------- */
.employer-list { list-style: none; padding: 0; }
.employer-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0.9rem 1.1rem; margin: 0.6rem 0; }
.employer-list a { text-decoration: none; font-weight: 600; }
.emp-sector { display: block; color: var(--gris); font-size: 0.875rem; font-weight: 400; }
.emp-score { white-space: nowrap; color: var(--naranja-700); font-weight: 700; }
.emp-score small { color: var(--gris); font-weight: 400; }
.agg { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; background: var(--azul-50); border: 1px solid var(--azul-100); border-radius: var(--radio); padding: 1.25rem 1.5rem; margin: 1rem 0; }
.agg-overall { text-align: center; }
.agg-num { display: block; font-size: 2.25rem; font-weight: 800; color: var(--azul); letter-spacing: -0.02em; }
.agg-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem 1.5rem; grid-template-columns: 1fr 1fr; }
.agg-cats li { display: flex; justify-content: space-between; gap: 1rem; }
.review { border-top: 1px solid var(--linea); padding: 1.1rem 0; }
.review-score { font-weight: 700; color: var(--naranja-700); margin-right: 0.5rem; }
.review-meta { color: var(--gris); font-size: 0.9rem; }
.review-cats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.875rem; color: var(--gris); }
.report-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.report-form input { flex: 1; min-width: 12rem; width: auto; padding: 0.4rem 0.6rem; }
fieldset.rating { border: 0; padding: 0; margin: 0.5rem 0; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
fieldset.rating legend { float: left; width: 8rem; font-weight: 600; }
label.star { font-weight: 400; display: inline-flex; align-items: center; gap: 0.2rem; }
label.star input { width: auto; }
.mod-item { border-top: 1px solid var(--linea-suave); padding: 1rem 0; }
.mod-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.mod-actions input { flex: 1; min-width: 10rem; width: auto; padding: 0.45rem 0.6rem; }

/* ---------- Empleo ---------- */
.job-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem; margin: 1.25rem 0; box-shadow: var(--sombra); }
.job-filters input[type="search"], .job-filters select { width: auto; padding: 0.55rem 0.7rem; }
.job-filters input[type="search"] { flex: 1; min-width: 12rem; }
.job-filters .chk { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.93rem; font-weight: 500; }
.offer-list { list-style: none; padding: 0; }
.offer-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem 1.25rem; margin: 0.75rem 0; transition: border-color 0.15s, box-shadow 0.15s; }
.offer-card:hover { border-color: var(--azul-600); box-shadow: var(--sombra); }
.offer-card.featured { border-color: var(--naranja); box-shadow: 0 0 0 1px var(--naranja); }
.offer-card a { text-decoration: none; font-weight: 700; font-size: 1.1rem; color: var(--azul-900); }
.offer-company { display: block; color: var(--tinta); font-weight: 600; font-size: 0.95rem; }
.offer-meta { display: block; color: var(--gris); font-size: 0.9rem; }
.offer-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.offer-tags .tag { background: var(--azul-50); color: var(--azul); border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.8rem; font-weight: 600; }
.badge-feat { background: var(--naranja); color: #fff; }
.offer-facts { list-style: none; display: grid; gap: 0.4rem; grid-template-columns: 1fr; background: var(--azul-50); border: 1px solid var(--azul-100); border-radius: var(--radio); padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.offer-facts li { display: flex; justify-content: space-between; gap: 1rem; }
.offer-facts span { color: var(--gris); }
.offer-apply { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.5rem; margin: 1.5rem 0; box-shadow: var(--sombra); }
.offer-save-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (min-width: 40rem) { .offer-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Mapa ---------- */
#mapa { height: 26rem; border-radius: var(--radio); border: 1px solid var(--linea); margin: 1rem 0; z-index: 0; }
.map-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.875rem; }
.map-legend li { display: flex; align-items: center; gap: 0.4rem; }
.map-legend .dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c4cdd6; }
.dot.kind-supermercado { background: #2e8b57; }
.dot.kind-medico { background: #c0392b; }
.dot.kind-banco { background: #2c6fb8; }
.dot.kind-transporte { background: #8a5a13; }
.dot.kind-tramites { background: #6a3fb5; }
.dot.kind-ocio { background: #d9822b; }
.dot.kind-otros { background: #5a6b7d; }
#prop-coords.ok { color: var(--ok); font-weight: 600; }

/* ---------- Pisos ---------- */
.eurofinques { background: var(--azul-50); border: 1px solid var(--azul-100); border-radius: var(--radio); padding: 1.1rem 1.35rem; margin: 1rem 0; }
.eurofinques p { margin: 0.5rem 0 0; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.housing-list { list-style: none; padding: 0; }
.housing-list li { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0.9rem 1.1rem; margin: 0.6rem 0; }
.housing-list a { text-decoration: none; font-weight: 600; }
.housing-meta { display: block; color: var(--gris); font-size: 0.92rem; margin-top: 0.15rem; }
.housing-contact { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.5rem; margin: 1.5rem 0; }

/* ---------- Foro ---------- */
.forum-cats { list-style: none; padding: 0; }
.forum-cats li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0.9rem 1.1rem; margin: 0.6rem 0; }
.forum-cats a { text-decoration: none; font-weight: 600; }
.forum-cats a span { display: block; color: var(--gris); font-size: 0.875rem; font-weight: 400; }
.forum-count { white-space: nowrap; color: var(--gris); font-size: 0.875rem; }
.forum-recent { margin-top: 2rem; }
.forum-recent ul, .thread-list { list-style: none; padding: 0; }
.forum-recent li, .thread-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--linea-suave); }
.thread-list .thread-meta { display: block; color: var(--gris); font-size: 0.875rem; }
.thread-list .solved { color: var(--ok); font-weight: 700; }
.thread-question { border-bottom: 2px solid var(--linea); padding-bottom: 1rem; }
.answer { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linea-suave); }
.answer.is-best { background: var(--ok-100); border-radius: var(--radio-s); padding: 1rem; }
.vote-col { text-align: center; min-width: 2.5rem; }
.vote-col form { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
button.vote { background: none; border: 0; color: var(--gris); padding: 0.1rem 0.4rem; font-size: 1.1rem; line-height: 1; }
button.vote:hover { background: var(--azul-50); color: var(--azul); }
button.vote.on { color: var(--azul); }
.vote-col .score { font-weight: 700; }
.best-badge { color: var(--ok); font-weight: 700; margin: 0 0 0.25rem; }
.answer-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.answer-actions .link { background: none; border: 0; color: var(--azul); padding: 0; font-weight: 600; font-size: 0.875rem; }
.answer-actions form.inline, form.inline { display: inline; }

/* ---------- Experiencias ---------- */
.exp-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .exp-list { grid-template-columns: 1fr 1fr; } }
.exp-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; transition: box-shadow 0.15s, border-color 0.15s; }
.exp-card:hover { border-color: var(--azul-600); box-shadow: var(--sombra); }
.exp-card a { text-decoration: none; display: block; }
.exp-cover { width: 100%; height: 11rem; object-fit: cover; display: block; }
.exp-card strong { display: block; padding: 0.85rem 1rem 0; color: var(--azul-900); }
.exp-meta { display: block; padding: 0.25rem 1rem 1rem; color: var(--gris); font-size: 0.875rem; }
.exp-gallery { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.exp-gallery img { max-width: 100%; width: 14rem; height: auto; border-radius: var(--radio-s); }

/* ---------- Patrocinadores (publicidad identificada como tal) ---------- */
.patrocinadores { margin: 1.5rem 0; }
.patrocinadores-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); margin: 0 0 0.6rem; }
.patrocinadores-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.patrocinadores-list li { margin: 0; }
.patrocinadores-list a, .patrocinadores-list > li > span { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.4rem 0.9rem; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s); text-decoration: none; color: inherit; }
.patrocinadores-list a:hover { border-color: var(--azul-600); }
.patrocinadores-list img { display: block; max-width: 180px; max-height: 90px; width: auto; height: auto; }
.patrocinador-nombre { font-weight: 600; font-size: 0.93rem; }

/* ---------- Newsletter ---------- */
.nl-segments { margin: 1rem 0; }
.nl-segments legend { font-weight: 700; padding: 0 0.25rem; }
.nl-segments label.radio { display: grid; grid-template-columns: auto 1fr; gap: 0 0.6rem; align-items: start; margin: 0.6rem 0; }
.nl-segments label.radio input { margin-top: 0.35rem; }
.nl-segments label.radio small { grid-column: 2; color: var(--gris); font-weight: 400; }
.nl-canales { margin-top: 2rem; }

/* ---------- Alertas de cuotas y plazos ---------- */
.alert-banner { display: grid; gap: 0.5rem; margin: 0 0 1.25rem; }
body.is-home .alert-banner { max-width: var(--max); margin: 1.25rem auto 0; padding: 0 1rem; }
.alert-banner-item { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; padding: 0.7rem 1rem; border-radius: var(--radio-s); background: var(--aviso-100); border-left: 4px solid #d98f16; color: inherit; text-decoration: none; }
.alert-banner-item:hover .alert-title { text-decoration: underline; }
.alert-kind { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--aviso); }
.alert-kind-cuota .alert-kind { color: #8c1d19; }
.alert-kind-cuota.alert-banner-item { background: var(--peligro-100); border-left-color: var(--peligro); }
.alert-kind-plazo .alert-kind { color: var(--azul); }
.alert-kind-plazo.alert-banner-item { background: var(--azul-100); border-left-color: var(--azul); }
.alert-title { font-weight: 600; }
.alert-until { color: var(--gris); font-size: 0.9rem; }
.alert-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem 1.35rem; margin: 1rem 0; }
.alert-card header, .alert-full header time { display: flex; gap: 0.75rem; align-items: baseline; color: var(--gris); font-size: 0.9rem; }
.alert-card h2 { margin: 0.25rem 0 0.5rem; font-size: 1.2rem; }
.alert-card h2 a { color: inherit; text-decoration: none; }
.alert-card h2 a:hover { text-decoration: underline; }
.alert-full .alert-body { font-size: 1.06rem; line-height: 1.7; }
.alert-dates { color: var(--gris); }
.alert-suscribe { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin: 1.25rem 0; }
footer.alert-suscribe { border-top: 1px solid var(--linea-suave); padding-top: 1rem; }

/* ---------- Multimedia ---------- */
.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.media-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem 1.35rem; }
.media-card-link { color: inherit; text-decoration: none; }
.media-card-link:hover h2 { text-decoration: underline; }
.media-card h2 { font-size: 1.1rem; margin: 0.25rem 0 0.5rem; }
.media-kind { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--azul); }
.media-full .media-body { margin-top: 1.25rem; line-height: 1.7; }
.embed-facade { position: relative; background: linear-gradient(135deg, var(--azul-900), var(--azul)); color: #fff; border-radius: var(--radio); padding: 2rem 1.5rem; text-align: center; margin: 1rem 0; }
.embed-video { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; }
.embed-audio { min-height: 10rem; display: flex; flex-direction: column; justify-content: center; }
.embed-load { background: #fff; color: var(--azul-900); border: 0; border-radius: 999px; padding: 0.8rem 1.4rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 0.5rem; align-items: center; margin: 0 auto; }
.embed-load:hover { background: var(--azul-100); color: var(--azul-900); }
.embed-play { font-size: 1.1rem; }
.embed-note { font-size: 0.85rem; opacity: 0.85; margin: 1rem auto 0; max-width: 36rem; }
.embed-alt { font-size: 0.85rem; margin: 0.25rem 0 0; }
.embed-alt a { color: #fff; }
.embed-loaded { padding: 0; background: #000; overflow: hidden; }
.embed-loaded iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-audio.embed-loaded { min-height: 0; }
.embed-audio.embed-loaded iframe { height: 232px; }
.embed-ivoox.embed-loaded iframe { height: 200px; }

/* ---------- Consentimiento ---------- */
#cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 0 0.75rem 0.75rem; }
#cookie-consent[hidden] { display: none; }
.cc-inner { max-width: var(--max); margin: 0 auto; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra-flotante); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cc-title { font-weight: 700; color: var(--azul-900); margin: 0 0 0.25rem; }
.cc-inner p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--gris); }
.cc-inner p a { color: var(--azul); }
.cc-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.cc-buttons button { padding: 0.6rem 1rem; }
.cc-options { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0.6rem 0 0; }
.cc-options[hidden] { display: none; }
.cc-option { font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; color: var(--tinta); }
@media (min-width: 60rem) { .cc-inner { flex-direction: row; align-items: center; justify-content: space-between; } .cc-buttons { flex-shrink: 0; } }

/* ---------- Varios ---------- */
.nav-cuenta { font-weight: 600; }
.section-cards { margin-top: 2rem; }
.footer-legal { font-size: 0.875rem; }

@media print {
    .no-print, .site-header, .site-footer, .site-nav, .alert-banner, .patrocinadores, #cookie-consent { display: none !important; }
    .check-item { break-inside: avoid; border: 1px solid #999; }
    body { background: #fff; }
}
