/* Sistema de color: dos hilos —rojo para el presente que convoca (2026),
   negro/tinta para la memoria de archivo (1937)— sobre una tipografía de cartel. */
:root {
    --red: #c81e1e;
    --red-deep: #8f1414;
    --red-tint: #fbdcdc;
    --red-tint-border: #f0b3b3;
    --tinta: #1a1816;
    --tinta-line: rgba(26, 24, 22, 0.28);
    --font-display: 'Barlow Condensed', sans-serif;
}

/* Estilos Globales y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navegación Superior */
.main-header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    background-color: #ffffff;
}

.header-left {
    justify-self: start;
}

.header-right {
    justify-self: end;
}

/* Marca tipográfica 2026: barras "III" + texto, sin imagen, todo junto a la izquierda */
.marca-cabecera {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.marca-cabecera:hover {
    opacity: 0.8;
}

.marca-barras {
    display: flex;
    gap: 0.16em;
    height: 2rem;
    flex-shrink: 0;
}

.marca-barras span {
    display: block;
    height: 100%;
    aspect-ratio: 0.32 / 1;
    background: var(--red);
}

.nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #21201d;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Portada: franja de cabecera con la identidad del Congreso */
.home-hero {
    position: relative;
    overflow: hidden;
    background: #17161a;
    padding: 4.5rem 2rem;
    text-align: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -8%;
    width: 46%;
    height: 220%;
    background: var(--red);
    opacity: 0.92;
    transform: rotate(11deg);
    clip-path: polygon(38% 0, 62% 0, 32% 100%, 8% 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.home-hero-barras {
    justify-content: center;
    height: 3.4rem;
    margin: 0 auto 1.8rem;
}

.home-hero-titulo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: 0.01em;
    line-height: 1.08;
    color: #ece7da;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
    margin: 0;
}

.home-hero-titulo em {
    font-style: normal;
    color: var(--red);
}

.home-hero-sub {
    margin: 1.4rem 0 0;
    font-family: "EB Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ece7da;
    opacity: 0.82;
}

.main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.main-nav .nav-fila {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
}

/* Contenedor Principal (Centrado para la Home) */
.home-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem 4rem;
    animation: fadeIn 1.2s ease-out;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Tipografía y Textos */
h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--red);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555555;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.description {
    font-size: 1.15rem;
    font-weight: 300;
    color: #333333;
    max-width: 650px;
    margin: 0 auto 4rem auto;
    text-align: justify;
    text-align-last: center;
}

.description-fase {
    margin-bottom: 1.5rem;
}

.hito-proximo {
    align-self: center;
    display: inline-block;
    background-color: var(--red-tint);
    border: 1px solid var(--red-tint-border);
    border-radius: 3px;
    padding: 0.6rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red);
    text-align: center;
    letter-spacing: 0.5px;
    margin: 2.5rem 0 3rem;
}

/* Sección de Contacto / Acción */
.contact-section {
    border-top: 1px solid #eaeaea;
    padding-top: 2.5rem;
    margin-top: 2rem;
}

.contact-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888888;
    margin-bottom: 0.8rem;
}

.email-link {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
    text-decoration: none;
    letter-spacing: 0.03em;
    position: relative;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.email-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--red);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.email-link:hover {
    color: var(--red);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================================
   Estilos para la Revista (Digitalización)
   ========================================= */
.page-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
    animation: fadeIn 0.8s ease-out;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.8rem;
    color: var(--red);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #555555;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Grid de Artículos */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    border: 1px solid #eaeaea;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--red);
}

.article-meta {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lector de Artículo Individual */
.article-reader {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
}

.article-reader-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.article-reader-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-reader-header .meta {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content p:first-of-type::first-letter {
    font-family: 'Cinzel', serif;
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 0.5rem;
    color: var(--tinta);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--red);
}


/* Footer sutil */
.main-footer {
    text-align: center;
    padding: 3rem 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #aaaaaa;
    text-transform: uppercase;
    border-top: 1px solid #eaeaea;
    margin-top: auto;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* La cabecera necesita apilarse algo antes que el resto (tablets incluidas),
   porque el menú en dos filas todavía no cabe en anchos intermedios. */
@media (max-width: 850px) {
    .main-header {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav {
        align-items: center;
    }

    .main-nav .nav-fila {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .nav-group-2026, .nav-group-1937 {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .marca-cabecera {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .nav-logo {
        max-width: 100%;
    }
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    .home-container {
        padding: 2rem 1.5rem 3rem;
    }

    /* En móvil, adelantamos las llamadas a la acción por delante del texto
       explicativo: las tarjetas de participación van primero, la descripción
       después, para que no haya que hacer tanto scroll para llegar a
       "Súmate"/"Aporta tu obra". El hero con el titular ya va siempre primero,
       en su propia franja, fuera de este contenedor. */
    .participa-portada-grid {
        order: 1;
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hito-proximo {
        order: 2;
        margin: 1.5rem 0 3rem;
        font-size: 0.8rem;
        padding: 0.55rem 1.2rem;
    }

    .description {
        order: 3;
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .description-fase {
        margin-bottom: 1rem;
    }

    .contact-section {
        order: 4;
    }

    .home-hero {
        padding: 3rem 1.5rem;
    }

    .home-hero-barras {
        height: 2.4rem;
        margin-bottom: 1.2rem;
    }

    .home-hero-titulo {
        font-size: 1.7rem;
    }

    .home-hero-sub {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .email-link {
        font-size: 1.1rem;
    }

    .article-content p:first-of-type::first-letter {
        font-size: 3rem;
    }
}

/* AÑADIR AL FINAL DE style.css */

/* =========================================
   Estilos de la Cronología (Timeline)
   ========================================= */
.cronologia-intro {
    margin-bottom: 2rem;
}

.cronologia-video {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.cronologia-video-marco {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(20, 16, 10, 0.16);
    border: 1px solid #eaeaea;
    border-top: 3px solid var(--tinta);
}

.cronologia-video-marco iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cronologia-video-fuente {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #eaeaea;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -6px;
    /* Para centrar sobre la línea de 2px */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tinta);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #eaeaea;
    transition: background 0.3s, transform 0.3s;
}

.timeline-item:hover::before {
    background: #ffffff;
    border-color: var(--tinta);
    transform: scale(1.2);
}

.timeline-date {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.15rem;
    color: var(--tinta);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: #fafafa;
    border: 1px solid #eaeaea;
    padding: 1.5rem;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}

.timeline-content:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #111;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive para la cronología */
@media (max-width: 600px) {
    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}

/* =========================================
   Estilos para las Actas del Congreso
   ========================================= */
.actas-container {
    max-width: 800px;
    margin: 0 auto;
}

.actas-group {
    margin-bottom: 3rem;
}

.actas-search-container {
    margin-bottom: 3rem;
    text-align: center;
}

.actas-search-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 25px;
    font-size: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 30px;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s;
}

.actas-search-input:focus {
    box-shadow: 0 6px 20px rgba(200, 30, 30, 0.12);
}

.actas-group h2 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.7rem;
    color: var(--tinta);
    border-bottom: 2px solid var(--tinta-line);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.actas-list {
    list-style: none;
}

.actas-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.actas-list li:hover {
    background-color: #fafafa;
}

.acta-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.acta-author {
    font-weight: 600;
    color: #111;
    font-size: 1.05rem;
}

.acta-title {
    color: #444;
    font-size: 0.95rem;
    font-style: italic;
}

.acta-date {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.acta-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 1rem;
}

.acta-link.available {
    background-color: var(--red);
    color: white;
}

.acta-link.available:hover {
    background-color: var(--red-deep);
}

.acta-link.pending {
    background-color: #f0f0f0;
    color: #888;
    cursor: default;
}

@media (max-width: 600px) {
    .actas-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .acta-link {
        margin-left: 0;
    }
}

/* =========================================
   Estilos para el Selector de Idioma
   ========================================= */
.lang-switcher {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #eaeaea;
    color: #aaaaaa;
}

.lang-switcher a {
    color: #888888;
    text-decoration: none;
    font-weight: 400;
}

.lang-switcher a:hover {
    color: var(--red);
}

.lang-switcher a.lang-active {
    color: #111111;
    font-weight: 600;
}

/* =========================================
   Estilos para la página "El II Congreso" (1937)
   ========================================= */
.congreso1937-container {
    max-width: 1250px;
}

.congreso1937-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.congreso1937-eyebrow {
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--tinta);
}

.congreso1937-titulo {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.congreso1937-subtitulo {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #555;
}

.congreso1937-cartel {
    max-width: 450px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.congreso1937-cartel img {
    width: 100%;
    box-shadow: 0 18px 40px rgba(20, 16, 10, 0.22);
}

.congreso1937-desc {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.congreso1937-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto 4rem auto;
}

.congreso1937-card {
    background: #fafafa;
    padding: 2rem;
    border: 1px solid #eaeaea;
    border-top: 3px solid var(--tinta);
    text-align: center;
}

.congreso1937-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tinta);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.congreso1937-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.congreso1937-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--red);
    color: var(--red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.25s, color 0.25s;
}

.congreso1937-btn:hover {
    background: var(--red);
    color: #fff;
}

/* =========================================
   Estilos para el Manifiesto 2026
   ========================================= */
.manifiesto-titulo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.regla-seccion {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid #eaeaea;
}

.adhesiones-titulo {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--red);
}

.manifiesto-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: var(--red);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.manifiesto-content blockquote {
    border-left: 4px solid var(--red);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #444;
    background: #fafafa;
    padding: 1.5rem;
}

.manifiesto-content ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.manifiesto-content li {
    margin-bottom: 0.8rem;
}

.firmas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.firmas-grupo-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.firmas-list {
    list-style: none;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.firmas-list li {
    margin-bottom: 0.5rem;
}

/* =========================================
   Nuevos estilos para el Menú por Bloques y Footer
   ========================================= */

.nav-group-2026, .nav-group-1937 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
    margin-left: 0.5rem;
}

.nav-group-2026 {
    background-color: var(--red);
}

.nav-group-1937 {
    background-color: var(--tinta);
}

.nav-group-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-group-2026 a,
.nav-group-1937 a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-group-2026 a:hover, .nav-group-2026 a.active,
.nav-group-1937 a:hover, .nav-group-1937 a.active {
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer elegante */
.elegant-footer {
    background-color: #fafafa;
    border-top: 1px solid #eaeaea;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.footer-marca-barras {
    display: flex;
    gap: 0.16em;
    height: 1.8rem;
    margin-bottom: 1.5rem;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.footer-marca-barras:hover {
    opacity: 1;
}

.footer-marca-barras span {
    display: block;
    height: 100%;
    aspect-ratio: 0.32 / 1;
    background: var(--red);
}

.footer-text {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
}

/* =========================================
   Estilos para Poetas (Poetas en la España Leal, 1937)
   ========================================= */
.poeta-intro {
    font-style: italic;
    color: #555;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.poema-bloque {
    margin-bottom: 4rem;
}

.poema-bloque:not(:last-child) {
    padding-bottom: 3rem;
    border-bottom: 1px solid #eaeaea;
}

.poema-titulo {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.7rem;
    color: var(--tinta);
    text-align: center;
    margin-bottom: 0.5rem;
}

.poema-subtitulo {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.poema-dedicatoria {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-bottom: 1.5rem;
}

.poema-parte {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tinta);
    font-size: 1rem;
    letter-spacing: 2px;
    margin: 2rem 0 1rem;
}

.poema-texto {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    text-align: center;
    white-space: pre-line;
    margin-bottom: 1.5rem;
}

.poema-fecha {
    text-align: center;
    font-style: italic;
    color: #999;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.aviso-derechos {
    background: #fafafa;
    border-left: 4px solid var(--tinta);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0 3rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.poemas-indice {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.poemas-indice li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
}

.poemas-indice .poema-nombre {
    font-family: 'Cinzel', serif;
    color: #111;
    font-size: 1.05rem;
}

.poemas-indice .poema-meta {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
}

.indice-anexo {
    margin-top: 2.5rem;
}

.indice-anexo h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.35rem;
    color: var(--tinta);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.indice-anexo ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.indice-anexo li {
    padding: 0.3rem 0;
    color: #555;
    font-size: 0.95rem;
}

.indice-anexo .num-pagina {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* =========================================
   Índice del libro "Poetas en la España Leal"
   Portada tipográfica (recreación, sin escanear la cubierta)
   ========================================= */
.cubierta {
    position: relative;
    max-width: 480px;
    margin: 0 auto 4rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(160deg, #e9dcb8 0%, #ddc9a0 55%, #d3bb8d 100%);
    box-shadow: 0 25px 50px rgba(58, 41, 18, 0.22);
}

.cubierta::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(60, 40, 15, 0.35);
    pointer-events: none;
}

.cubierta-sello {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tinta);
    margin-bottom: 0.4rem;
}

.cubierta-lugar {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2a2114;
    margin-bottom: 2.8rem;
}

.cubierta-titulo {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--tinta);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cubierta-subtitulo {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: #2a2114;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0.6rem 0;
}

.cubierta-titulo-2 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 3rem;
    line-height: 1;
    color: var(--tinta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.2rem;
}

.cubierta-regla {
    width: 60px;
    height: 1px;
    margin: 0 auto 1.8rem;
    background: rgba(60, 40, 15, 0.4);
    border: none;
}

.cubierta-autores {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #7a3418;
}

/* Ficha bibliográfica introductoria */
.libro-ficha {
    max-width: 700px;
    margin: 0 auto 5rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
}

.libro-ficha p {
    margin-bottom: 1.3rem;
    text-align: justify;
}

.libro-ficha p:first-of-type::first-letter {
    font-family: 'Cinzel', serif;
    float: left;
    font-size: 3.6rem;
    line-height: 0.8;
    margin: 0.1rem 0.5rem 0 0;
    color: var(--tinta);
}

/* Índice de autores y poemas */
.indice-libro-titulo {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 3rem;
    position: relative;
}

.indice-libro-titulo::before,
.indice-libro-titulo::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #ccc;
    vertical-align: middle;
    margin: 0 1rem;
}

.poetas-indice-libro {
    max-width: 720px;
    margin: 0 auto;
}

.poeta-entry {
    margin-bottom: 3.2rem;
    padding-bottom: 3.2rem;
    text-align: center;
}

.poeta-entry:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.poeta-entry-nombre {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.7rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.poeta-entry-fechas {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.4rem;
    margin-bottom: 1.8rem;
}

.poeta-entry-poemas {
    list-style: none;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.poeta-entry-poemas li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.55rem 0;
}

.poeta-entry-poemas .poema-nombre {
    font-family: 'EB Garamond', serif;
    font-size: 1.08rem;
    color: #333;
    flex: 1;
}

.poeta-entry-poemas .poema-pagina {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: #b08a5f;
    white-space: nowrap;
}

.poeta-entry-link {
    display: inline-block;
    margin-top: 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 30, 30, 0.35);
    padding-bottom: 2px;
    transition: border-color 0.25s;
}

.poeta-entry-link:hover {
    border-color: var(--red);
}

@media (max-width: 700px) {
    .cubierta {
        padding: 2.5rem 1.5rem;
    }

    .cubierta-titulo,
    .cubierta-titulo-2 {
        font-size: 2.3rem;
    }

    .cubierta-subtitulo {
        font-size: 1rem;
    }

    .cubierta-autores {
        font-size: 0.95rem;
    }

    .poeta-entry-poemas li {
        flex-direction: column;
        gap: 0.1rem;
    }
}

/* =========================================
   Participa: colectivos/agenda y repositorio creativo
   ========================================= */
.participa-cta {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 1.8rem 2rem;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 3px;
    text-align: center;
}

.participa-cta p {
    margin-bottom: 1rem;
    color: #444;
}

.bases-participa {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 1.4rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.bases-participa li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.bases-participa li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--red);
}

.vacio-participa {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 3rem;
}

.participa-portada-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    min-width: 0;
    margin: 3rem auto 0;
    box-sizing: border-box;
}

.participa-portada-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 3px;
    padding: 2.2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.participa-portada-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--red);
}

.participa-portada-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.participa-portada-card p {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.participa-portada-card .cta {
    font-weight: 600;
    color: var(--red);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Formularios públicos */
.form-participa {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.form-participa h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.form-participa h3:first-child {
    margin-top: 0;
}

.form-participa label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 1rem 0 0.4rem;
}

.form-participa input[type="text"],
.form-participa input[type="email"],
.form-participa input[type="url"],
.form-participa input[type="date"],
.form-participa input[type="file"],
.form-participa select,
.form-participa textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: #222;
    background: #fff;
}

.form-participa textarea {
    min-height: 90px;
    resize: vertical;
}

.form-participa .campo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1.2rem 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
    color: #444;
}

.form-participa .campo-checkbox input {
    margin-top: 0.2rem;
}

.ayuda-campo {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
    text-transform: none;
    letter-spacing: normal;
}

.campo-trampa {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-enviar-participa {
    margin-top: 2rem;
    padding: 0.9rem 2rem;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.05rem;
    cursor: pointer;
    align-self: center;
    transition: background 0.25s;
}

.btn-enviar-participa:hover {
    background: var(--red-deep);
}

.errores-participa {
    background: #fdecea;
    border-left: 4px solid var(--red);
    color: var(--red);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.errores-participa ul {
    padding-left: 1.2rem;
}

.msg-exito-participa {
    max-width: 560px;
    margin: 0 auto;
    background: #eef7ee;
    border-left: 4px solid #2e7d32;
    padding: 1.5rem 2rem;
    color: #2e5c2e;
}

/* Agenda: agrupación de actividades por mes, plegable */
.mes-grupo {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.mes-grupo summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    cursor: pointer;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 3px;
    list-style: none;
    transition: background 0.2s, border-color 0.2s;
}

.mes-grupo summary::-webkit-details-marker {
    display: none;
}

.mes-grupo summary::before {
    content: '▸';
    color: var(--red);
    margin-right: 0.8rem;
    transition: transform 0.2s;
    display: inline-block;
}

.mes-grupo[open] summary::before {
    transform: rotate(90deg);
}

.mes-grupo summary:hover {
    border-color: var(--red);
}

.mes-nombre {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: #111;
    flex: 1;
}

.mes-contador {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mes-grupo .timeline {
    margin: 2rem auto 2.5rem;
    padding-left: 2rem;
}

/* Mapa de actos */
.mapa-actos {
    max-width: 1000px;
    height: 500px;
    margin: 2rem auto 0;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
}

.mapa-actos .leaflet-popup-content strong {
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .mapa-actos {
        height: 400px;
    }
}

/* Mapa de confirmación de dirección (formulario de proponer actividad) */
.btn-mapa-comprobar {
    margin: 0.8rem 0 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    align-self: flex-start;
}

.btn-mapa-comprobar:hover {
    background: var(--red);
    color: #fff;
}

.mapa-confirmacion-envoltorio {
    margin: 1rem 0 1.5rem;
}

.mapa-confirmacion {
    height: 280px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.mapa-confirmacion-nota {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.6rem;
    line-height: 1.5;
}

.mapa-candidatos {
    margin-bottom: 0.8rem;
}

.mapa-candidatos-titulo {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 0.5rem;
}

.mapa-candidato-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.mapa-candidato-btn:hover {
    border-color: var(--red);
}

.mapa-candidato-btn.activo {
    border-color: var(--red);
    background: #fdf3f3;
    color: var(--red);
    font-weight: 600;
}

.mapa-actividad {
    max-width: 700px;
    height: 320px;
    margin: 2rem auto 0.5rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

.enlace-titulo-actividad {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.enlace-titulo-actividad:hover {
    color: var(--red);
    text-decoration: underline;
}

/* Repositorio creativo: escaparate */
.repositorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.aportacion-card {
    border: 1px solid #eaeaea;
    border-radius: 3px;
    padding: 1.8rem;
    background: #fafafa;
}

.aportacion-card .disciplina {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 0.6rem;
}

.aportacion-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 0.4rem;
}

.aportacion-card .autor {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.9rem;
}

.aportacion-card p.desc {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 1rem;
}

.aportacion-card .muestra img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.aportacion-card .muestra a {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 30, 30, 0.35);
}

@media (max-width: 700px) {
    .participa-cta {
        padding: 1.4rem 1.2rem;
    }
}