/* ═══════════════════════════════════════
   FUNDAMENTOS
   ═══════════════════════════════════════ */
:root {
    --morado: #6a1b9a;
    --bipiki-orange: #f37335;
    --morado-oscuro: #310d4a;
    --albero: #f4d35e;
    --blanco: #ffffff;
    --negro: #111111;
    --lila-lunar: #d1b2e0;
    --overlap: 5rem;
}

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

html {
    scroll-behavior: smooth;
    /* overflow-x aquí en html también puede causar problemas — se gestiona en .page-wrapper */
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--blanco);
    /* ✅ ELIMINADO overflow-x: hidden — era el culpable del scroll roto */
    color: var(--negro);
}

/* ✅ NUEVO: wrapper que contiene el overflow horizontal sin romper el scroll vertical */
.page-wrapper {
    overflow-x: hidden;
    width: 100%;
    /* Importante: no usar height ni min-height aquí */
}

li {
    list-style: none;
}

/* ═══════════════════════════════════════
   TIPOGRAFÍA GLOBAL
   ═══════════════════════════════════════ */
h1 {
    font-family: 'Georgia', serif;
    font-size: clamp(3.5rem, 14vw, 8rem);
    line-height: 0.85;
    margin: 0;
    text-transform: lowercase;
    color: var(--morado);
    font-weight: 900;
}

h2 {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.pretitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    color: var(--morado);
    margin-bottom: 10px;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   LUNARES (decorativos)
   ═══════════════════════════════════════ */
.dots-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
    opacity: 0.3;
}

.dot {
    position: absolute;
    background: var(--morado);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0px);
}

.dot:nth-child(1) { top: 10%; left: 5%;  width: 120px; height: 120px; }
.dot:nth-child(2) { top: 40%; left: 80%; width: 180px; height: 180px; }
.dot:nth-child(3) { top: 75%; left: 15%; width: 140px; height: 140px; }
.dot:nth-child(4) { top: 25%; left: 60%; width: 70px;  height: 70px;  }
.dot:nth-child(5) { top: 85%; left: 70%; width: 160px; height: 160px; }
.dot:nth-child(6) { top: 5%;  left: 85%; width: 50px;  height: 50px;  }

/* ═══════════════════════════════════════
   MENÚ HAMBURGUESA
   ═══════════════════════════════════════ */
#menu-toggle {
    display: none;
}

.menu-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    box-sizing: initial;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

.menu-btn .bar {
    display: block;
    width: 100%;
    height: 4px;
    background: var(--morado-oscuro);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación hamburguesa → X */
#menu-toggle:checked ~ .menu-btn .bar:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
}

#menu-toggle:checked ~ .menu-btn .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .menu-btn .bar:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   OVERLAY DEL MENÚ
   ═══════════════════════════════════════ */
.full-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu-toggle:checked ~ .full-menu {
    visibility: visible;
    opacity: 1;
}

/* Fondo de franjas */
.lonas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: linear-gradient(90deg, transparent 50%, #18bf98ff 50%);
    background-size: 80px 100%;
    z-index: -1;
}

.full-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.menu-content {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.menu-label {
    color: var(--albero);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-links li {
    margin: 1.5rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s;
}

#menu-toggle:checked ~ .full-menu .menu-links li {
    transform: translateY(0);
    opacity: 1;
}

.menu-links a {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--negro);
    text-decoration: none;
    text-transform: lowercase;
    background: var(--albero);
    padding: 5px 20px;
    display: inline-block;
    box-shadow: 5px 5px 0px var(--morado);
    transition: 0.3s;
}

.menu-links a:hover {
    transform: scale(1.1) rotate(-2deg);
    background: var(--blanco);
    box-shadow: 8px 8px 0px var(--morado-oscuro);
}

.menu-footer {
    margin-top: 3rem;
    color: white;
    opacity: 0.4;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   SECCIONES Y RECORTES
   ═══════════════════════════════════════ */
section {
    display: block;
    position: relative;
    z-index: 1;
    padding-top: calc(var(--overlap) + 4rem);
    padding-bottom: 4rem;
    margin-top: calc(var(--overlap) * -1);
}

.content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

/* Colores de sección */
.section-white {
    background: var(--blanco);
    margin-top: 0;
    padding-top: 0;
    z-index: 1;
}

.section-albero {
    background: var(--albero);
    color: var(--negro);
    z-index: 2;
    clip-path: polygon(0 var(--overlap), 100% 0, 100% 100%, 0 100%);
}

.section-morado-oscuro {
    background: var(--morado-oscuro);
    color: white;
    z-index: 3;
    clip-path: polygon(0 0, 100% var(--overlap), 100% 100%, 0 100%);
}

.section-morado-medio {
    background: var(--morado);
    color: white;
    z-index: 4;
    clip-path: polygon(0 var(--overlap), 100% 0, 100% 100%, 0 100%);
}

.section-negro {
    background: var(--negro);
    color: white;
    z-index: 5;
    clip-path: polygon(0 0, 100% var(--overlap), 100% 100%, 0 100%);
}

/* ═══════════════════════════════════════
   UI ELEMENTS
   ═══════════════════════════════════════ */
.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tag {
    background: var(--morado);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.admin-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tool-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--albero);
    background: transparent;
    color: var(--albero);
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    width: fit-content;
    min-width: 200px;
    max-width: 100%;
}

.tool-btn:hover {
    background: var(--albero);
    color: var(--negro);
}

.tool-btn.dark {
    background: var(--morado-oscuro);
    color: white;
    border: none;
    margin-top: 1rem;
}

.footer {
    padding-bottom: 2rem;
    opacity: 0.4;
    font-size: 0.8rem;
}

.emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--morado-oscuro);
    margin-top: 1.5rem;
}

.event-list .event {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed var(--albero);
}

.event-grid {
    margin-top: 2rem;
}

.event-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    border-left: 5px solid var(--albero);
    position: relative;
    text-align: center;
    list-style: none;
}

/* ✅ FOOTER: unificado sin !important ni height fijo */
.footer-section {
    font-size: 0.9rem;
    text-align: center;
}

/* Modal sitio */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--blanco);
    width: 90%;
    max-width: 600px;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--negro);
}

.close {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    color: var(--morado);
}

.separator hr {
    border: none;
    border-top: 3px dashed var(--negro);
    width: 50%;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   RESERVAS
   ═══════════════════════════════════════ */
.reservas-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

.reserva-condiciones {
    background: rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--morado-oscuro);
}

.reserva-condiciones h3 {
    font-family: 'Georgia', serif;
    color: var(--morado-oscuro);
    margin-top: 0;
    font-size: 1.4rem;
}

.reserva-menus {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reserva-menus .menu-badge {
    position: relative;
}

.menu-badge {
    background: var(--morado-oscuro);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid var(--negro);
    box-shadow: 4px 4px 0px var(--negro);
}

.menu-badge a {
    text-decoration: none;
    color: var(--albero);
}

/* ═══════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════ */
.contact-layout-simple {
    margin-top: 2rem;
    max-width: 600px;
}

.contact-layout-simple .contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.programacion-nota {
    margin-top: 1.5rem;
    opacity: 0.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.minimal-form input,
.minimal-form textarea,
.minimal-form select {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-info {
    color: white;
}

/* ═══════════════════════════════════════
   TIMELINE CARTELERÍA
   ═══════════════════════════════════════ */
.timeline-visual {
    margin-top: 5rem;
    position: relative;
    padding: 2rem 0;
}

.t-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 6rem;
}

.t-block.alt {
    flex-direction: row-reverse;
    text-align: right;
}

.t-img {
    flex: 1;
    max-width: 300px;
    background: white;
    padding: 10px;
    box-shadow: 10px 10px 0px var(--albero);
    border: 2px solid var(--morado);
    transform: rotate(-2deg);
    transition: 0.3s;
}

.t-block.alt .t-img {
    transform: rotate(2deg);
    box-shadow: -10px 10px 0px var(--morado);
}

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

.t-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.t-desc {
    flex: 1;
}

.t-desc h3 {
    font-family: 'Georgia', serif;
    color: var(--morado);
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.t-desc p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* ═══════════════════════════════════════
   LAYOUT EDITORIAL HISTORIA
   ═══════════════════════════════════════ */
.history-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
    position: relative;
}

.history-block.reverse {
    flex-direction: row-reverse;
}

.text-side {
    flex: 1.2;
}

.text-side h2 {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    color: var(--morado);
    margin-bottom: 1.5rem;
}

.text-side p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.visual-side {
    flex: 0.8;
    position: relative;
}

.reverse .poster-img {
    transform: rotate(2deg);
    box-shadow: -15px 15px 0px var(--morado);
}

.poster-stack {
    position: relative;
    height: 400px;
}

.poster-stack .s1 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.poster-stack .s2 {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 1;
    transform: rotate(5deg);
}

/* ═══════════════════════════════════════
   SEPARADOR TIPO RECORTE
   ═══════════════════════════════════════ */
.history-separator {
    background: var(--morado-oscuro);
    color: white;
    padding: 4rem 2rem;
    margin: 6rem 0;
    transform: rotate(-1deg);
    display: flex;
    justify-content: center;
    box-shadow: 0 0 0 100vmax var(--morado-oscuro);
    clip-path: inset(0 -100vmax);
}

.quote-pali {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    text-align: center;
    max-width: 800px;
    margin: 0;
    transform: rotate(1deg);
}

/* ═══════════════════════════════════════
   BOTÓN RÓTULO DE FERIA
   ═══════════════════════════════════════ */
.cta-container {
    margin-top: 2.5rem;
}

.btn-roto {
    display: inline-block;
    background: var(--morado);
    color: white;
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 15px 30px;
    border: 2px solid var(--negro);
    box-shadow: 7px 7px 0px var(--negro);
    transform: rotate(-1.5deg);
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.btn-roto:hover {
    transform: rotate(0deg) scale(1.05);
    background: var(--morado-oscuro);
    box-shadow: 10px 10px 0px var(--negro);
}

.img-recorte {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    background: white;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
}

/* ═══════════════════════════════════════
   BADGE MORADO
   ═══════════════════════════════════════ */
.badge-morado {
    border: 3px solid var(--morado);
    padding: 2rem;
    text-align: center;
    background: rgba(106, 27, 154, 0.1);
    transform: rotate(2deg);
    border-radius: 15px;
}

.badge-morado .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.badge-morado p {
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--blanco);
    margin: 0;
}

/* ═══════════════════════════════════════
   FIRMA BIPIKI
   ═══════════════════════════════════════ */
#bipiki-signature {
    padding: 0;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.3s;
    height: 100px;
    color: var(--blanco);
    width: 100%;
}

#bipiki-signature a {
    color: var(--bipiki-orange);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
}

#bipiki-signature:hover {
    opacity: 1;
}

#bipiki-signature a:hover {
    border-bottom: 1px solid currentColor;
}

/* ═══════════════════════════════════════
   GRID, BOTONES Y LOGOS
   ═══════════════════════════════════════ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 1rem;
}

.btn-maps {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--bipiki-teal, #1ba79f);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-maps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-link {
    display: inline-block;
    color: var(--morado-oscuro);
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    border-bottom: 2px solid var(--albero);
    padding-bottom: 3px;
    transition: opacity 0.3s;
}

.btn-link:hover {
    opacity: 0.7;
}

.header-logos {
    position: fixed;
    top: 90px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    z-index: 100;
}

.header-logos img {
    height: 55px;
    width: auto;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════
   MISCELÁNEA
   ═══════════════════════════════════════ */
#navmenu li {
    position: relative;
}

#seguir a {
    color: var(--blanco);
    text-decoration: none;
}

#seguir ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

#mail-reservas {
    color: inherit;
    text-decoration: underline;
}

#inicio,
#reservas,
#espacio,
#programacion,
#seguir,
#puntomorado {
    position: relative;
}

/* ✅ FOOTER: height y min-height unificados, sin !important, sin valores fijos */
.section-negro.footer-section {
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 0;
    flex-wrap: wrap;
    text-align: center;
    min-height: unset;
    height: auto;
    padding-top: calc(var(--overlap) + 4rem);
    padding-bottom: 6rem;
    /* ✅ El último section no necesita clip-path que recorte su parte inferior */
    /* Si quieres mantener el clip superior, se queda. Si quieres quitarlo: */
    /* clip-path: none; */
}

#nrd,
#marimorena {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .history-block,
    .history-block.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .poster-img {
        max-width: 100%;
    }
}



@media (max-width: 900px) {
    :root {
        --overlap: 3rem;
    }

    section {
        padding-left: 5%;
        padding-right: 5%;
    }

    #inicio.section-white {
        padding-top: 8rem;
    }

    .t-block,
    .t-block.alt {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    .t-img {
        max-width: 100%;
    }
}
@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content {
        padding: 3rem 0;
    }
}

@media (max-width: 800px) {
    /* ✅ ELIMINADO el height: 80vh del footer que conflictuaba con min-height: 20vh !important */
    .section-negro.footer-section {
        padding-top: calc(var(--overlap) + 2rem);
        padding-bottom: 4rem;
    }

    .reservas-info,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    section {
        padding: 0 7%;
    }

    .menu-links a {
        padding: 0.8rem 0;
    }
}

@media print {
    .dots-container,
    .dot,
    header,
    form,
    .menu-btn,
    .full-menu,
    .tpv-switch-minimal,
    .admin-access,
    .back-link,
    #tpv-panel,
    .tpv-floating-panel,
    .finish-btn,
    .aviso-alergenos {
        display: none !important;
    }

    body,
    .carta-body,
    .history-body,
    .section-white {
        background: white !important;
        color: black !important;
        margin: 0;
        padding: 0;
    }

    .dots {
        border-bottom: 1px dotted #ccc !important;
    }

    .btn-roto,
    .poster-img {
        box-shadow: none !important;
        transform: none !important;
        border: 1px solid #000 !important;
    }
}

/* ── Lightbox ─────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999999;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    cursor: zoom-out;
}

.lightbox-overlay.activo {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: min(90vw, 600px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
    animation: lightbox-in 0.22s ease;
}

@keyframes lightbox-in {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.lightbox-cerrar {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    padding: 0.25rem 0.5rem;
}

.lightbox-cerrar:hover {
    opacity: 1;
}



        /* ── 404 específico ─────────────────────────── */

        .error-code {
            font-family: 'Georgia', serif;
            font-size: clamp(8rem, 25vw, 16rem);
            color: var(--morado);
            line-height: 0.85;
            margin: 0;
            text-shadow: 10px 10px 0px var(--albero);
            transform: rotate(-4deg);
            display: block;
            user-select: none;
        }

        .error-container {
            position: relative;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 2rem;
            gap: 1.5rem;
            animation: fade-in 0.6s ease both;
        }

        @keyframes fade-in {
            from { opacity: 0; transform: translateY(24px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .error-pretitle {
            text-transform: uppercase;
            letter-spacing: 4px;
            font-weight: bold;
            color: var(--morado);
            font-size: 0.75rem;
            opacity: 0.8;
        }

        .error-heading {
            font-family: 'Georgia', serif;
            font-size: clamp(1.8rem, 5vw, 3rem);
            font-weight: 900;
            text-transform: lowercase;
            color: var(--morado);
            margin: 0;
            line-height: 1.1;
        }

        .error-body {
            font-size: 1.1rem;
            line-height: 1.6;
            max-width: 480px;
            opacity: 0.85;
            margin: 0;
        }

        /* Botón reutilizando el estilo de menú */
        .error-btn {
            font-family: 'Georgia', serif;
            font-size: 1.4rem;
            font-weight: 900;
            color: var(--negro);
            text-decoration: none;
            text-transform: lowercase;
            background: var(--albero);
            padding: 8px 24px;
            display: inline-block;
            box-shadow: 5px 5px 0px var(--morado-oscuro);
            transition: 0.3s;
            margin-top: 0.5rem;
        }

        .error-btn:hover {
            transform: scale(1.06) rotate(-2deg);
            background: var(--blanco);
            box-shadow: 8px 8px 0px var(--morado-oscuro);
        }

        /* Separador decorativo */
        .error-divider {
            width: 60px;
            height: 4px;
            background: var(--albero);
            opacity: 0.5;
            border-radius: 2px;
        }

.section-blanco {
    background: var(--blanco);
    color: var(--negro);
    z-index: 2;
    clip-path: polygon(0 var(--overlap), 100% 0, 100% 100%, 0 100%);
}

/* ── TARJETAS DE EDICIÓN (index.html) ─────────────────────────── */
.edicion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.edicion-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--blanco);
    border: 2px solid var(--negro);
    box-shadow: 5px 5px 0px var(--morado);
    text-decoration: none;
    color: var(--negro);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 4px;
}

.edicion-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px var(--morado-oscuro);
}

.edicion-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.edicion-card-body {
    flex: 1;
}

.edicion-card-body h3 {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
    color: var(--morado-oscuro);
}

.edicion-card-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.75;
}

.edicion-card-arrow {
    font-size: 1.4rem;
    color: var(--morado);
    align-self: center;
    transition: transform 0.2s;
}

.edicion-card:hover .edicion-card-arrow {
    transform: translateX(4px);
}
