/*
Theme Name: Vicus Albus
Theme URI: https://vicusalbus.org/
Author: Asociación Vicus Albus
Author URI: https://vicusalbus.org/
Description: Tema WordPress moderno y responsive para la Asociación Vicus Albus. Estilo histórico-patrimonial elegante, con portada destacada, biblioteca de publicaciones y navegación de noticias optimizada. Enfoque mobile-first y buena accesibilidad.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vicus-albus
Tags: cultura, historia, patrimonio, blog, responsive, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Variables de diseño (tokens)
   ========================================================================== */
:root {
    /* Paleta histórico-patrimonial */
    --va-cream: #f7f2e8;
    --va-parchment: #efe6d4;
    --va-parchment-dark: #e4d8bf;
    --va-ink: #2e2318;
    --va-brown-dark: #3a2c1e;
    --va-brown: #5c4633;
    --va-brown-soft: #7a6248;
    --va-terracotta: #a5502f;
    --va-terracotta-dark: #8a3f22;
    --va-gold: #b28b4a;
    --va-gold-soft: #c9a86a;
    --va-line: #d8c9ab;
    --va-white: #fffdf8;

    /* Tipografía */
    --va-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
    --va-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Medidas */
    --va-maxw: 1180px;
    --va-radius: 6px;
    --va-radius-lg: 12px;
    --va-shadow: 0 2px 8px rgba(46, 35, 24, 0.08);
    --va-shadow-lg: 0 12px 32px rgba(46, 35, 24, 0.16);
    --va-gap: clamp(1rem, 3vw, 2rem);
    --va-header-h: 76px;
}

/* ==========================================================================
   2. Reset ligero y base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--va-sans);
    font-size: 1.075rem;
    line-height: 1.7;
    color: var(--va-ink);
    background-color: var(--va-cream);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(178, 139, 74, 0.05), transparent 40%),
        radial-gradient(circle at 85% 8%, rgba(165, 80, 47, 0.045), transparent 45%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--va-terracotta); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--va-terracotta-dark); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--va-serif);
    color: var(--va-brown-dark);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin: 0 0 1.2em; }

/* Foco accesible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--va-gold);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--va-brown-dark);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 9999;
    border-radius: 0 0 var(--va-radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ==========================================================================
   3. Layout / contenedores
   ========================================================================== */
.va-container {
    width: 100%;
    max-width: var(--va-maxw);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.va-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.va-section--alt { background: var(--va-parchment); }

.va-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}
.va-section__eyebrow {
    display: inline-block;
    font-family: var(--va-sans);
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--va-terracotta);
    font-weight: 700;
    margin-bottom: .5rem;
}
.va-section__head h2 { margin-bottom: .3em; }
.va-section__head p { color: var(--va-brown); margin: 0; }

.va-rule {
    width: 70px; height: 3px;
    background: var(--va-gold);
    border: 0; margin: 1rem auto 0;
    border-radius: 3px;
}

.va-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
    .va-layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ==========================================================================
   4. Cabecera y navegación
   ========================================================================== */
.va-topbar {
    background: var(--va-brown-dark);
    color: var(--va-parchment);
    font-size: .85rem;
}
.va-topbar .va-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-block: .4rem; flex-wrap: wrap;
}
.va-topbar a { color: var(--va-gold-soft); }
.va-topbar a:hover { color: #fff; }
.va-topbar__tag { letter-spacing: .04em; }

.va-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--va-white);
    border-bottom: 1px solid var(--va-line);
    box-shadow: var(--va-shadow);
}
.va-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: var(--va-header-h);
}
.va-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.va-brand:hover { text-decoration: none; }
.va-brand img { max-height: 56px; width: auto; }
.va-brand__text .site-title {
    font-family: var(--va-serif); font-weight: 700;
    font-size: 1.35rem; color: var(--va-brown-dark); line-height: 1.1;
}
.va-brand__text .site-desc {
    display: block; font-size: .78rem; color: var(--va-brown-soft);
    letter-spacing: .02em;
}
.va-brand__emblem {
    width: 48px; height: 48px; flex-shrink: 0;
    border: 2px solid var(--va-terracotta); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--va-serif); font-weight: 700; font-size: 1.05rem;
    color: var(--va-terracotta); letter-spacing: .02em;
}
.va-brand--footer { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-bottom: 1rem; }
.va-footer__brand .va-brand__emblem { border-color: var(--va-gold-soft); color: var(--va-gold-soft); }
.va-footer__brand .va-brand--footer .site-title { color: #fff; font-size: 1.25rem; font-family: var(--va-serif); }

/* Menú principal */
.va-nav { display: flex; align-items: center; gap: .5rem; }
.va-menu { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.va-menu li { position: relative; }
.va-menu a {
    display: block; padding: .6rem .85rem; border-radius: var(--va-radius);
    color: var(--va-brown-dark); font-weight: 600; font-size: .98rem;
    text-decoration: none;
}
.va-menu a:hover, .va-menu .current-menu-item > a,
.va-menu .current_page_item > a, .va-menu .current-cat > a {
    background: var(--va-parchment); color: var(--va-terracotta-dark);
}
.va-menu .menu-item-has-children > a::after {
    content: "▾"; font-size: .7em; margin-left: .35em; color: var(--va-brown-soft);
}
/* Submenús */
.va-menu ul.sub-menu {
    list-style: none; margin: 0; padding: .4rem;
    position: absolute; left: 0; top: 100%;
    min-width: 230px; background: var(--va-white);
    border: 1px solid var(--va-line); border-radius: var(--va-radius);
    box-shadow: var(--va-shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: 70vh; overflow-y: auto; z-index: 210;
}
.va-menu li:hover > ul.sub-menu,
.va-menu li:focus-within > ul.sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.va-menu ul.sub-menu a { font-weight: 500; font-size: .92rem; padding: .5rem .7rem; }

/* Botón buscar + hamburguesa */
.va-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--va-line);
    background: var(--va-white); border-radius: var(--va-radius);
    color: var(--va-brown-dark); cursor: pointer;
}
.va-icon-btn:hover { background: var(--va-parchment); }
.va-icon-btn svg { width: 20px; height: 20px; }

.va-menu-toggle { display: none; }

/* Búsqueda desplegable */
.va-search-panel {
    display: none; border-top: 1px solid var(--va-line);
    background: var(--va-parchment);
}
.va-search-panel.is-open { display: block; }
.va-search-panel .va-container { padding-block: 1rem; }

/* ==========================================================================
   5. Botones
   ========================================================================== */
.va-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: 50px;
    font-family: var(--va-sans); font-weight: 700; font-size: .98rem;
    text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.va-btn:hover { text-decoration: none; transform: translateY(-2px); }
.va-btn--primary { background: var(--va-terracotta); color: #fff; box-shadow: 0 6px 16px rgba(165,80,47,.28); }
.va-btn--primary:hover { background: var(--va-terracotta-dark); color: #fff; }
.va-btn--ghost { background: transparent; color: var(--va-brown-dark); border-color: var(--va-brown-soft); }
.va-btn--ghost:hover { background: var(--va-brown-dark); color: #fff; }
.va-btn--light { background: var(--va-white); color: var(--va-brown-dark); }
.va-btn--light:hover { background: var(--va-parchment); color: var(--va-brown-dark); }

/* ==========================================================================
   6. Hero / portada
   ========================================================================== */
.va-hero {
    position: relative; color: #fff;
    display: flex; align-items: center;
    min-height: min(78vh, 620px);
    background: var(--va-brown-dark);
    background-size: cover; background-position: center;
    text-align: center;
}
.va-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(46,35,24,.45) 0%, rgba(46,35,24,.72) 100%);
}
.va-hero__inner { position: relative; z-index: 2; max-width: 820px; margin-inline: auto; padding-block: 4rem; }
.va-hero__eyebrow {
    letter-spacing: .22em; text-transform: uppercase; font-size: .85rem;
    color: var(--va-gold-soft); font-weight: 700; margin-bottom: 1rem; display: block;
}
.va-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.75rem); margin-bottom: .5em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.va-hero p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #f3ead9; margin-bottom: 2rem; }
.va-hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.va-hero__scroll {
    position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    z-index: 4; color: #f3ead9; font-size: .8rem; letter-spacing: .1em;
    text-transform: uppercase; opacity: .85;
}

/* Fotos flotantes tipo collage (idea maqueta Framer) */
.va-hero__photos { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.va-hero__photo {
    position: absolute; display: block;
    width: clamp(100px, 11vw, 172px); aspect-ratio: 3 / 4;
    object-fit: cover; background: #fff;
    border: 5px solid #fffdf8; border-radius: 3px;
    box-shadow: 0 14px 34px rgba(0,0,0,.45);
    opacity: .92; will-change: transform;
    animation: va-float 7s ease-in-out infinite;
}
.va-hero__photo:nth-child(2n) { aspect-ratio: 4 / 3; animation-duration: 8.5s; }
.va-hero__photo:nth-child(3n) { animation-duration: 9.5s; }
@keyframes va-float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
/* Oscurecemos un poco el hero cuando hay fotos para mantener legible el texto */
.va-hero.has-photos::after { background: linear-gradient(180deg, rgba(46,35,24,.58) 0%, rgba(46,35,24,.8) 100%); }
@media (max-width: 900px) { .va-hero__photos { display: none; } }

/* Logo del tema */
.va-brand .custom-logo, .va-brand__logo { max-height: 58px; width: auto; }
.va-footer__brand .custom-logo, .va-footer__brand .va-brand__logo { max-height: 66px; }

/* ==========================================================================
   7. Tarjetas (noticias / publicaciones)
   ========================================================================== */
.va-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.va-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.va-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.va-card {
    background: var(--va-white);
    border: 1px solid var(--va-line);
    border-radius: var(--va-radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--va-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.va-card:hover { transform: translateY(-4px); box-shadow: var(--va-shadow-lg); }
.va-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--va-parchment-dark); }
.va-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.va-card:hover .va-card__media img { transform: scale(1.05); }
.va-card__media--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--va-brown-soft); font-family: var(--va-serif); font-size: 2.5rem; opacity: .5;
}
.va-card__tag {
    position: absolute; top: .75rem; left: .75rem;
    background: rgba(58,44,30,.88); color: var(--va-gold-soft);
    font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
    padding: .3rem .6rem; border-radius: 50px; font-weight: 700;
}
.va-card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.va-card__date { font-size: .8rem; color: var(--va-brown-soft); margin-bottom: .4rem; letter-spacing: .03em; }
.va-card__title { font-size: 1.2rem; margin: 0 0 .5rem; line-height: 1.25; }
.va-card__title a { color: var(--va-brown-dark); text-decoration: none; }
.va-card__title a:hover { color: var(--va-terracotta); }
.va-card__excerpt { color: var(--va-brown); font-size: .95rem; margin: 0 0 1rem; flex: 1; }
.va-card__more { font-weight: 700; font-size: .9rem; color: var(--va-terracotta); align-self: flex-start; }
.va-card__more::after { content: " →"; }

/* Publicaciones (tipos) */
.va-pubtype {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 2rem 1.25rem; background: var(--va-white);
    border: 1px solid var(--va-line); border-radius: var(--va-radius-lg);
    box-shadow: var(--va-shadow); text-decoration: none; color: var(--va-brown-dark);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.va-pubtype:hover { transform: translateY(-4px); box-shadow: var(--va-shadow-lg); border-color: var(--va-gold); text-decoration: none; color: var(--va-brown-dark); }
.va-pubtype__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--va-parchment); color: var(--va-terracotta);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.va-pubtype__icon svg { width: 30px; height: 30px; }
.va-pubtype h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.va-pubtype p { margin: 0; font-size: .9rem; color: var(--va-brown-soft); }

/* ==========================================================================
   8. Franja destacada / CTA socio
   ========================================================================== */
.va-cta {
    background:
        linear-gradient(135deg, rgba(58,44,30,.92), rgba(138,63,34,.88)),
        var(--va-brown);
    color: #fff; text-align: center; border-radius: var(--va-radius-lg);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}
.va-cta h2 { color: #fff; }
.va-cta p { color: #f3ead9; max-width: 620px; margin: 0 auto 1.75rem; font-size: 1.1rem; }

/* Bloque museo (imagen + texto) */
.va-feature {
    display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 820px) { .va-feature { grid-template-columns: 1fr 1fr; } }
.va-feature__media img { border-radius: var(--va-radius-lg); box-shadow: var(--va-shadow-lg); width: 100%; }
.va-feature__body h2 { margin-bottom: .5em; }
.va-feature ul.va-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.va-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.va-checklist li::before {
    content: "✦"; position: absolute; left: 0; top: 0; color: var(--va-gold); font-size: 1.05em;
}

/* Reproductor audio */
.va-audio { background: var(--va-parchment); border-radius: var(--va-radius-lg); padding: 1.5rem; text-align: center; }
.va-audio audio { width: 100%; max-width: 520px; }

/* ==========================================================================
   9. Contenido de artículo
   ========================================================================== */
.va-page-hero {
    background: var(--va-brown-dark); color: #fff;
    padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center;
}
.va-page-hero h1 { color: #fff; margin-bottom: .3em; }
.va-page-hero p { color: var(--va-gold-soft); margin: 0; }
.va-breadcrumbs { font-size: .85rem; color: var(--va-brown-soft); margin-bottom: 1.25rem; }
.va-breadcrumbs a { color: var(--va-brown); }

.va-article { background: var(--va-white); border: 1px solid var(--va-line); border-radius: var(--va-radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--va-shadow); }
.va-article__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--va-brown-soft); margin-bottom: 1.5rem; }
.va-article__meta a { color: var(--va-brown); }
.va-article__featured { margin: 0 0 2rem; border-radius: var(--va-radius); overflow: hidden; }
.va-content { font-size: 1.08rem; }
.va-content h2, .va-content h3 { margin-top: 1.8em; }
.va-content img { border-radius: var(--va-radius); margin-block: 1.5rem; }
.va-content blockquote {
    border-left: 4px solid var(--va-gold); background: var(--va-parchment);
    margin: 1.5rem 0; padding: 1rem 1.5rem; font-style: italic; color: var(--va-brown-dark);
    border-radius: 0 var(--va-radius) var(--va-radius) 0;
}
.va-content a { text-decoration: underline; }
.va-content ul, .va-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.va-content figcaption { font-size: .85rem; color: var(--va-brown-soft); text-align: center; }

.va-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.va-tags a {
    background: var(--va-parchment); color: var(--va-brown-dark); font-size: .82rem;
    padding: .3rem .8rem; border-radius: 50px; text-decoration: none;
}
.va-tags a:hover { background: var(--va-gold); color: var(--va-brown-dark); }

.va-postnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.va-postnav a { flex: 1; min-width: 220px; background: var(--va-white); border: 1px solid var(--va-line); border-radius: var(--va-radius); padding: 1rem 1.25rem; text-decoration: none; box-shadow: var(--va-shadow); }
.va-postnav span { display: block; font-size: .78rem; color: var(--va-brown-soft); text-transform: uppercase; letter-spacing: .05em; }
.va-postnav strong { color: var(--va-brown-dark); font-family: var(--va-serif); font-weight: 600; }
.va-postnav .next { text-align: right; }

/* ==========================================================================
   10. Barra lateral / widgets
   ========================================================================== */
.va-sidebar .widget {
    background: var(--va-white); border: 1px solid var(--va-line);
    border-radius: var(--va-radius-lg); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem;
    box-shadow: var(--va-shadow);
}
.va-sidebar .widget-title, .va-sidebar h2, .va-sidebar h3 {
    font-size: 1.15rem; margin: 0 0 1rem; padding-bottom: .6rem;
    border-bottom: 2px solid var(--va-gold); display: inline-block;
}
.va-sidebar ul { list-style: none; padding: 0; margin: 0; }
.va-sidebar li { padding: .45rem 0; border-bottom: 1px dotted var(--va-line); font-size: .95rem; }
.va-sidebar li:last-child { border-bottom: 0; }
.va-sidebar a { color: var(--va-brown-dark); text-decoration: none; }
.va-sidebar a:hover { color: var(--va-terracotta); }

/* Widget de años (navegación noticias mejorada) */
.va-years { display: flex; flex-wrap: wrap; gap: .4rem; }
.va-years a {
    background: var(--va-parchment); border-radius: 50px; padding: .3rem .75rem;
    font-size: .85rem; font-weight: 600; color: var(--va-brown-dark); text-decoration: none;
}
.va-years a:hover { background: var(--va-gold); }

/* Formulario de búsqueda */
.va-searchform { display: flex; gap: .5rem; }
.va-searchform input[type="search"] {
    flex: 1; padding: .7rem 1rem; border: 1px solid var(--va-line);
    border-radius: var(--va-radius); font-size: 1rem; background: var(--va-white); font-family: inherit;
}
.va-searchform button {
    background: var(--va-terracotta); color: #fff; border: 0; border-radius: var(--va-radius);
    padding: 0 1.1rem; cursor: pointer; font-weight: 700;
}
.va-searchform button:hover { background: var(--va-terracotta-dark); }

/* ==========================================================================
   11. Paginación
   ========================================================================== */
.va-pagination { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.va-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 .75rem;
    background: var(--va-white); border: 1px solid var(--va-line); border-radius: var(--va-radius);
    color: var(--va-brown-dark); text-decoration: none; font-weight: 600;
}
.va-pagination .page-numbers.current { background: var(--va-terracotta); color: #fff; border-color: var(--va-terracotta); }
.va-pagination .page-numbers:hover:not(.current) { background: var(--va-parchment); }

/* ==========================================================================
   12. Pie de página
   ========================================================================== */
.va-footer { background: var(--va-brown-dark); color: var(--va-parchment); margin-top: 3rem; }
.va-footer a { color: var(--va-gold-soft); }
.va-footer a:hover { color: #fff; }
.va-footer__top { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 700px) { .va-footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.va-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.va-footer__brand img { max-height: 60px; margin-bottom: 1rem; background: #fff; padding: .4rem; border-radius: var(--va-radius); }
.va-footer p { color: #d8c9ab; font-size: .95rem; }
.va-footer ul { list-style: none; padding: 0; margin: 0; }
.va-footer li { margin-bottom: .5rem; }
.va-footer__bottom { border-top: 1px solid rgba(216,201,171,.25); padding-block: 1.25rem; font-size: .85rem; color: #c9b98f; text-align: center; }
.va-footer__bottom a { text-decoration: underline; }

/* ==========================================================================
   13. Utilidades y responsive
   ========================================================================== */
.va-center { text-align: center; }
.va-mt-2 { margin-top: 2rem; }
.va-more-wrap { text-align: center; margin-top: 2.5rem; }

/* Menú móvil */
@media (max-width: 900px) {
    .va-menu-toggle { display: inline-flex; }
    .va-nav__menu {
        position: fixed; inset: 0 0 0 auto; width: min(85vw, 340px);
        background: var(--va-white); z-index: 300;
        transform: translateX(100%); transition: transform .28s ease;
        padding: 5rem 1.25rem 2rem; overflow-y: auto;
        box-shadow: -10px 0 40px rgba(46,35,24,.25);
    }
    .va-nav__menu.is-open { transform: translateX(0); }
    .va-menu { flex-direction: column; gap: 0; }
    .va-menu > li { border-bottom: 1px solid var(--va-line); }
    .va-menu a { padding: .85rem .5rem; font-size: 1.05rem; }
    .va-menu ul.sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; background: var(--va-parchment);
        border-radius: var(--va-radius); margin: 0 0 .5rem; padding-left: 1rem;
        max-height: 300px;
    }
    .va-menu .menu-item-has-children > a::after { float: right; }
    .va-nav__close {
        position: absolute; top: 1rem; right: 1rem;
        width: 44px; height: 44px; border: 0; background: var(--va-parchment);
        border-radius: var(--va-radius); font-size: 1.4rem; cursor: pointer; color: var(--va-brown-dark);
    }
    .va-nav__overlay {
        position: fixed; inset: 0; background: rgba(46,35,24,.5); z-index: 250;
        opacity: 0; visibility: hidden; transition: opacity .28s;
    }
    .va-nav__overlay.is-open { opacity: 1; visibility: visible; }
    body.va-nav-open { overflow: hidden; }
}
@media (min-width: 901px) {
    .va-nav__close, .va-nav__overlay { display: none; }
}

@media (max-width: 560px) {
    .va-postnav .next { text-align: left; }
    .va-brand__text .site-desc { display: none; }
}

/* ==========================================================================
   14. Línea del tiempo por épocas (idea de la maqueta Framer)
   ===================
/* ==========================================================================
   14. Línea del tiempo por épocas (idea de la maqueta Framer)
   ========================================================================== */
.va-timeline-wrap { position: relative; }
.va-timeline {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
    gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: .5rem .25rem 1.5rem; margin: 0 -0.25rem;
    scrollbar-color: var(--va-gold) var(--va-parchment);
}
.va-timeline::-webkit-scrollbar { height: 8px; }
.va-timeline::-webkit-scrollbar-track { background: var(--va-parchment); border-radius: 8px; }
.va-timeline::-webkit-scrollbar-thumb { background: var(--va-gold); border-radius: 8px; }

.va-era {
    scroll-snap-align: start;
    position: relative; display: block; overflow: hidden;
    min-height: 360px; border-radius: var(--va-radius);
    background: linear-gradient(150deg, #4a3a2a, #2b2016);
    box-shadow: var(--va-shadow); text-decoration: none; color: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.va-era:hover { transform: translateY(-5px); box-shadow: var(--va-shadow-lg); text-decoration: none; color: #fff; }
.va-era__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .5s ease;
}
.va-era:hover .va-era__img { transform: scale(1.06); }
.va-era__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(30,22,14,.62) 0%, rgba(30,22,14,.34) 45%, rgba(30,22,14,.58) 100%);
    transition: background .25s ease;
}
.va-era:hover .va-era__overlay {
    background: linear-gradient(180deg, rgba(30,22,14,.5) 0%, rgba(30,22,14,.22) 45%, rgba(30,22,14,.5) 100%);
}
.va-era__content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; height: 100%;
    padding: 1.5rem 1.5rem 3.25rem;
}
.va-era__label {
    font-family: var(--va-serif); font-size: 1.7rem; font-weight: 700;
    color: #fff; margin: 0 0 .7rem; line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.va-era__quote {
    font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.9);
    margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.va-era__plus {
    position: absolute; bottom: 1.1rem; right: 1.25rem; z-index: 3;
    width: 30px; height: 30px; color: #fff; opacity: .9;
    line-height: 1; transition: transform .25s ease, opacity .2s ease;
}
.va-era__plus svg { width: 100%; height: 100%; }
.va-era:hover .va-era__plus { transform: rotate(90deg); opacity: 1; }
.va-timeline-hint { text-align: center; font-size: .82rem; color: var(--va-brown-soft); letter-spacing: .04em; }
.va-timeline-line { height: 3px; background: linear-gradient(90deg, var(--va-gold-soft), var(--va-gold), var(--va-gold-soft)); border-radius: 3px; margin-bottom: 1.5rem; }

/* ==========================================================================
   15. Newsletter
   ========================================================================== */
.va-newsletter {
    background: var(--va-brown-dark); color: #fff; border-radius: var(--va-radius-lg);
    padding: clamp(2rem, 5vw, 3rem); text-align: center;
    background-image: radial-gradient(circle at 80% 0%, rgba(178,139,74,.18), transparent 55%);
}
.va-newsletter h2 { color: #fff; }
.va-newsletter p { color: #e4d8bf; max-width: 560px; margin: 0 auto 1.5rem; }
.va-newsletter__form {
    display: flex; gap: .6rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.va-newsletter__form input[type="email"] {
    flex: 1; min-width: 200px; padding: .85rem 1.15rem; border: 0; border-radius: 50px;
    font-size: 1rem; font-family: inherit; background: var(--va-white); color: var(--va-ink);
}
.va-newsletter__form button {
    background: var(--va-terracotta); color: #fff; border: 0; border-radius: 50px;
    padding: .85rem 1.6rem; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.va-newsletter__form button:hover { background: var(--va-terracotta-dark); }
.va-newsletter__note { font-size: .78rem; color: #c9b98f; margin: 1rem 0 0; }

/* ==========================================================================
   16. Pie enriquecido: mapa, horario, redes
   ========================================================================== */
.va-footer__info { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 760px) { .va-footer__info { grid-template-columns: 1.3fr 1fr 1.2fr; } }
.va-footer__hours { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.va-footer__hours strong { color: #fff; font-family: var(--va-serif); }
.va-footer address { font-style: normal; color: #d8c9ab; font-size: .95rem; line-height: 1.7; }
.va-footer__map {
    border: 0; width: 100%; height: 200px; border-radius: var(--va-radius-lg);
    filter: sepia(.25) saturate(.9); box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.va-social { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.va-social a {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(216,201,171,.12); color: var(--va-gold-soft);
    border: 1px solid rgba(216,201,171,.25); transition: background .2s ease, color .2s ease, transform .15s;
}
.va-social a:hover { background: var(--va-terracotta); color: #fff; transform: translateY(-2px); }
.va-social svg { width: 20px; height: 20px; }

/* ==========================================================================
   17. Galería / collage central
   ========================================================================== */
.va-collage {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: clamp(.75rem, 2vw, 1.25rem); padding: 1rem 0;
}
.va-collage__item {
    width: clamp(130px, 20vw, 200px); aspect-ratio: 3 / 4; object-fit: cover;
    background: #fffdf8; border: 6px solid #fffdf8; border-radius: 3px;
    box-shadow: 0 14px 30px rgba(46, 35, 24, .22);
    transition: transform .3s ease, box-shadow .3s ease;
}
.va-collage__item:nth-child(odd) { transform: rotate(-4deg); }
.va-collage__item:nth-child(even) { transform: rotate(3deg); margin-top: 1.75rem; }
.va-collage__item:nth-child(3n) { aspect-ratio: 4 / 3; }
.va-collage__item:hover { transform: rotate(0) scale(1.05); box-shadow: 0 22px 44px rgba(46, 35, 24, .32); position: relative; z-index: 2; }
@media (max-width: 600px) {
    .va-collage__item { width: 43%; margin-top: 0 !important; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
