/*
Theme Name: dds_citybiobike.com
Theme URI: https://citybiobike.com/
Author: Javier Torres
Description: Tema editorial para un blog sobre vivienda urbana, movilidad y barrios sostenibles en España. Retícula de manzanas, tipografía con serifa y acentos en azul acero y turquesa.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cbbike
*/

/* ---------- Estados ocultos (antes de todo) ---------- */
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
    --c-bg: #F4F7F9;
    --c-bg-alt: #E8EEF2;
    --c-ink-dark: #1B2A3A;
    --c-aside: #EDF2F5;
    --c-text: #1C2A36;
    --c-steel: #2E6F8E;
    --c-teal: #3AAFA9;
    --c-muted: #6B7F8C;
    --c-line: #D3DCE3;
    --c-grid: #DCE4EA;
    --c-grid-alt: #D0DAE2;
    --c-on-dark: #D5E0E8;
    --f-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
    --f-sans: "Inter", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --section-pad: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image:
        linear-gradient(to right, var(--c-grid) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, var(--c-grid) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
}

p, li, dd, blockquote, figcaption, td, th, .card-title, .entry-title, .page-title {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-serif);
    color: var(--c-text);
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    font-weight: 600;
}
h1 { font-size: 3.2rem; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 2.2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

img, svg, video { max-width: 100%; height: auto; }

a {
    color: var(--c-text);
    text-decoration: underline;
    text-decoration-color: var(--c-muted);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color .25s ease, text-decoration-color .25s ease, text-decoration-thickness .25s ease;
}
a:hover, a:focus-visible {
    color: var(--c-steel);
    text-decoration-color: var(--c-teal);
    text-decoration-thickness: 2px;
}
:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5em 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--c-line); font-size: .95rem; }
th, td { border: 1px solid var(--c-line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--c-bg-alt); font-weight: 600; }

blockquote {
    margin: 1.8em 0;
    padding: .4em 0 .4em 1.4em;
    border-left: 3px solid var(--c-teal);
    font-family: var(--f-serif);
    font-size: 1.25rem;
    line-height: 1.55;
}

code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }
pre { overflow-x: auto; background: var(--c-bg-alt); padding: 1em 1.2em; border: 1px solid var(--c-line); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 100;
    background: var(--c-steel);
    color: #fff;
    padding: .6em 1em;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Contenedor único ---------- */
.shell { width: min(85%, 1180px); margin-inline: auto; }

/* ---------- Franja superior ---------- */
.route-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--c-steel) 0 60%, var(--c-teal) 60% 100%);
}

/* ---------- Cabecera ---------- */
.masthead { background: var(--c-ink-dark); color: #fff; }
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: #fff;
    min-width: 0;
    flex: 1 1 auto;
}
.brand:hover, .brand:focus-visible { color: #fff; }
.brand-logo { flex: 0 0 auto; width: 52px; height: 52px; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 560px; }
.brand-name {
    font-family: var(--f-serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-tagline {
    font-size: .78rem;
    line-height: 1.45;
    color: #A9BBC8;
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.nav-list li { position: relative; }
.nav-list a {
    display: inline-block;
    padding: .35rem 0;
    color: #E6EEF3;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}
.nav-list a:hover, .nav-list a:focus-visible,
.nav-list .current-menu-item > a { color: #fff; border-bottom-color: var(--c-teal); }
.nav-list .sub-menu {
    list-style: none; margin: 0; padding: .5rem 0;
    position: absolute; top: 100%; left: 0; z-index: 30;
    min-width: 220px;
    background: var(--c-ink-dark);
    border: 1px solid #2C3E50;
    display: none;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: .45rem 1rem; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: none;
    border: 1.5px solid #4C6275;
    border-radius: 2px;
    color: #fff;
    font: 500 .9rem var(--f-sans);
    padding: .5rem .8rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .72em 1.4em;
    border-radius: 2px;
    font: 500 .95rem/1.3 var(--f-sans);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.btn-solid { background: var(--c-steel); color: #fff; border: 1.5px solid var(--c-steel); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.btn-line { background: transparent; color: var(--c-steel); border: 1.5px solid var(--c-steel); }
.btn-line:hover, .btn-line:focus-visible { color: var(--c-steel); border-color: var(--c-teal); transform: translateX(2px); }

/* ---------- Títulos de sección con regla ---------- */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 2.2rem;
    font-size: 2.3rem;
    letter-spacing: -0.02em;
    min-width: 0;
}
.section-title::before {
    content: "";
    flex: 0 0 40px;
    height: 2px;
    background: var(--c-teal);
    transform: translateY(-0.34em);
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 2.2rem;
}
.section-head .section-title { margin: 0; }

/* ---------- Secciones de la portada ---------- */
.fp-section { padding: var(--section-pad) 0; position: relative; }
.fp-alt {
    background-color: var(--c-bg-alt);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='200' height='200'%3E%3Cg fill='none' stroke='%232E6F8E' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' opacity='0.04'%3E%3Ccircle cx='52' cy='132' r='36'/%3E%3Ccircle cx='150' cy='132' r='36'/%3E%3Cpath d='M52 132l32-56h52l14 56M84 76l-12-18H56M136 76l8-22h18M104 132l32-56'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(to right, rgba(208, 218, 226, .55) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, rgba(208, 218, 226, .55) 0.5px, transparent 0.5px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right 24px bottom 24px, 0 0, 0 0;
    background-size: 200px 200px, 40px 40px, 40px 40px;
}

/* Hero */
.fp-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--c-ink-dark);
}
.fp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 42, 58, .45) 0%, rgba(27, 42, 58, .78) 70%, rgba(27, 42, 58, .9) 100%);
}
.fp-hero-inner { position: relative; z-index: 1; padding: 120px 0 72px; }
.fp-hero-copy { max-width: 760px; }
.fp-hero-title {
    color: #fff;
    margin: 0 0 1.2rem;
    font-size: 3.2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.fp-hero-sub { color: #C9D6DF; font-size: 1.15rem; line-height: 1.65; max-width: 620px; margin: 0 0 2rem; }
.fp-hero-rule { display: block; width: 120px; height: 1px; background: var(--c-teal); }

/* Estadísticas */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
    padding: .5rem 2rem;
    border-left: 1px solid var(--c-line);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    font-family: var(--f-serif);
    font-size: 3.4rem;
    line-height: 1;
    font-weight: 600;
    color: var(--c-steel);
    letter-spacing: -0.02em;
}
.stat-label { font-size: .88rem; line-height: 1.55; color: var(--c-muted); }

/* Cita */
.fp-quote { background: var(--c-ink-dark); color: #fff; }
.quote-block { margin: 0; max-width: 900px; }
.quote-block blockquote {
    margin: 0;
    padding: .3rem 0 .3rem 2rem;
    border-left: 4px solid var(--c-teal);
}
.quote-block blockquote p {
    margin: 0;
    font-family: var(--f-serif);
    font-size: 2rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
}
.quote-block figcaption { margin-top: 1.4rem; padding-left: calc(2rem + 4px); color: #A9BBC8; font-size: .95rem; }

/* ---------- Tarjetas ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.card-grid-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    transition: border-color .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--c-teal);
    opacity: 0;
    z-index: 2;
    transition: opacity .25s ease;
}
.card:hover, .card:focus-within { border-color: var(--c-teal); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card.sticky { border-top: 3px solid var(--c-steel); }

.card-thumb { flex: 0 0 auto; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: 1.4rem 1.5rem 1.6rem;
    min-width: 0;
}
.card-title { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover, .card-title a:focus-visible { color: var(--c-steel); text-decoration: underline; text-decoration-color: var(--c-teal); }
.card-meta { font-size: .82rem; color: var(--c-muted); }
.card-excerpt { font-size: .95rem; line-height: 1.65; color: #34485A; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; font-size: .9rem; font-weight: 500; color: var(--c-steel); }

/* Etiquetas */
.tag-chip {
    display: inline-block;
    padding: .2em .65em;
    border: 1px dashed var(--c-muted);
    border-radius: 0;
    background: none;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-text);
    text-decoration: none;
    transition: border-color .25s ease, color .25s ease;
}
.tag-chip:hover, .tag-chip:focus-visible { border-style: solid; border-color: var(--c-teal); color: var(--c-steel); }

.empty-note { color: var(--c-muted); }

/* ---------- Páginas internas ---------- */
.page-wrap { padding: 2.2rem 0 var(--section-pad); }
.crumbs { font-size: .85rem; color: var(--c-muted); margin-bottom: 2rem; }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-steel); }
.crumbs-sep { margin: 0 .35em; color: var(--c-teal); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.4rem; }
.page-title { margin: 0; font-size: 3.2rem; line-height: 1.12; }
.page-intro { margin-top: 1rem; color: #34485A; }

.entry-head { margin-bottom: 2rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.entry-tags-foot { margin: 2.5rem 0 0; }
.entry-title { margin: 0 0 .9rem; font-size: 3.2rem; line-height: 1.12; letter-spacing: -0.02em; }
.entry-meta { font-size: .88rem; color: var(--c-muted); padding-bottom: 1.2rem; border-bottom: 1px solid var(--c-line); }
.entry-cover { margin: 0 0 2.2rem; }
.entry-cover img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--c-steel); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .5em; }
.entry-content img { display: block; }
.has-dropcap > p:first-of-type::first-letter {
    float: left;
    font-family: var(--f-serif);
    font-size: 3.5rem;
    line-height: .85;
    font-weight: 600;
    color: var(--c-steel);
    margin: .08em .12em 0 0;
}
.page-links { margin-top: 2rem; font-size: .95rem; }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--c-line);
}
.post-nav-link {
    display: flex; flex-direction: column; gap: .3rem;
    font-family: var(--f-serif); font-size: 1.1rem; line-height: 1.35;
    text-decoration: none;
}
.post-nav-link span { font-family: var(--f-sans); font-size: .8rem; color: var(--c-muted); }
.post-nav-next { text-align: right; grid-column: 2; }

/* ---------- Paginación ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 3rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .5rem .85rem;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: #fff;
    color: var(--c-text);
    font-size: .92rem;
    text-decoration: none;
    transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.pager a.page-numbers:hover, .pager a.page-numbers:focus-visible { border-color: var(--c-teal); color: var(--c-steel); }
.pager .page-numbers.current { background: var(--c-steel); border-color: var(--c-steel); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: .5rem .2rem; }

/* ---------- Barra lateral ---------- */
.sidebar {
    background: var(--c-aside);
    border: 1px solid var(--c-line);
    padding: 1.8rem 1.6rem;
    color: var(--c-text);
    min-width: 0;
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--c-text);
    display: flex; align-items: baseline; gap: 10px;
}
.sidebar .widget-title::before { content: ""; flex: 0 0 20px; height: 2px; background: var(--c-teal); transform: translateY(-0.3em); }
.sidebar .widget, .sidebar .widget p { color: var(--c-text); font-size: .95rem; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .6rem 0; border-bottom: 1px solid var(--c-line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--c-text); }
.sidebar .widget a:hover { color: var(--c-steel); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--c-muted); }

/* ---------- Búsqueda ---------- */
.search-box { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .72em 1em;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: #fff;
    font: 400 1rem var(--f-sans);
    color: var(--c-text);
}
.search-field:focus { outline: 2px solid var(--c-teal); outline-offset: 0; border-color: var(--c-teal); }

/* ---------- 404 ---------- */
.not-found { text-align: left; }
.not-found-code {
    font-family: var(--f-serif);
    font-size: 7rem;
    line-height: 1;
    color: var(--c-steel);
    margin: 0 0 .5rem;
    opacity: .9;
}

/* ---------- Comentarios ---------- */
.remarks { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.remarks-title, .comment-reply-title { font-size: 1.6rem; margin: 0 0 1.5rem; }
.remarks-list, .remarks-list .children { list-style: none; margin: 0; padding: 0; }
.remarks-list .children { padding-left: 2rem; border-left: 1px solid var(--c-line); }
.remark-body { padding: 1.3rem 0; border-bottom: 1px solid var(--c-line); }
.remark-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.remark-head img { border-radius: 0; display: block; }
.remark-author { display: block; font-weight: 600; }
.remark-date { font-size: .8rem; color: var(--c-muted); }
.remark-wait { font-size: .9rem; color: var(--c-steel); }
.remark-reply a { font-size: .88rem; }
.remarks-closed { color: var(--c-muted); }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7em .9em;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: #fff;
    font: 400 1rem var(--f-sans);
    color: var(--c-text);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--c-teal); outline-offset: 0; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--c-muted); }
.form-submit .submit {
    background: var(--c-steel); color: #fff; border: 1.5px solid var(--c-steel); border-radius: 2px;
    padding: .72em 1.4em; font: 500 .95rem var(--f-sans); cursor: pointer; transition: background-color .25s ease;
}
.form-submit .submit:hover { background: var(--c-teal); border-color: var(--c-teal); }

/* ---------- Pie ---------- */
.colophon { background: var(--c-ink-dark); color: var(--c-on-dark); padding: 64px 0 32px; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { color: var(--c-on-dark); font-size: .93rem; line-height: 1.7; }
.colophon .widget p { color: var(--c-on-dark); }
.colophon .widget-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.2rem;
    display: flex; align-items: baseline; gap: 10px;
}
.colophon .widget-title::before { content: ""; flex: 0 0 20px; height: 2px; background: var(--c-teal); transform: translateY(-0.3em); }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { padding: .3rem 0; }
.colophon .widget a { color: #E6EEF3; text-decoration-color: #5C7385; }
.colophon .widget a:hover, .colophon .widget a:focus-visible { color: #fff; text-decoration-color: var(--c-teal); }
.colophon-copy {
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #2E4155;
    font-size: .85rem;
    color: #A9BBC8;
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    background: var(--c-ink-dark);
    color: var(--c-on-dark);
    border-left: 4px solid var(--c-teal);
    border-radius: 2px;
}
.cookie-text { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--c-on-dark); min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { font-size: .85rem; color: var(--c-muted); }
.bypostauthor > .remark-body .remark-author { color: var(--c-steel); }

/* ---------- Adaptación ---------- */
@media (max-width: 960px) {
    h1, .page-title, .entry-title, .fp-hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.9rem; }
    .masthead-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .site-nav { flex: 1 0 100%; display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: .5rem 0; border-top: 1px solid #2E4155; }
    .nav-list a { display: block; padding: .7rem 0; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single .content-area { width: 100%; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .quote-block blockquote p { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    :root { --section-pad: 56px; }
    body { font-size: 1rem; }
    .shell { width: 92%; }
    h1, .page-title, .entry-title, .fp-hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; gap: 12px; }
    .section-title::before { flex-basis: 28px; }
    .brand-tagline { display: none; }
    .brand-logo { width: 44px; height: 44px; }
    .fp-hero { min-height: 480px; }
    .fp-hero-inner { padding: 96px 0 48px; }
    .fp-hero-sub { font-size: 1rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat, .stat:nth-child(3) { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px solid var(--c-line); }
    .stat:last-child { border-bottom: 0; padding-bottom: 0; }
    .fp-alt { background-size: 120px 120px, 40px 40px, 40px 40px; }
    .quote-block blockquote { padding-left: 1.2rem; }
    .quote-block blockquote p { font-size: 1.4rem; }
    .quote-block figcaption { padding-left: calc(1.2rem + 4px); }
    .sidebar { padding: 1.4rem 1.2rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; text-align: left; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .has-dropcap > p:first-of-type::first-letter { font-size: 3rem; }
    .not-found-code { font-size: 5rem; }
}
