@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght=0,700;1,400&family=Lato:wght=300;400;700&display=swap');

/* ── Variables ── */
:root {
    --rojo:       #8B0000;
    --rojo-hover: #b30000;
    --rojo-suave: #c0392b;
    --crema:      #fdf6ec;
    --crema-2:    #f5e9d6;
    --crema-3:    #ede0c8;
    --texto:      #2a1a0e;
    --texto-suave:#6b4c35;
    --blanco:     #ffffff;
    --nav-h:      60px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--crema);
    color: var(--texto);
    font-family: 'Playfair display', serif;
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
}

#menu-toggle { display: none; }

/* ── Header ── */
header {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 48px 24px 36px;
    text-align: center;
    position: relative;
    z-index: 20;
    border-bottom: 4px solid var(--crema-3);
}

header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 16px auto 0;
}

header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

header p.subtitulo {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 8px;
}

/* ── Menu-btn (hamburger, solo mobile) ── */
.menu-btn {
    display: none;
    font-size: 26px;
    color: var(--blanco);
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    line-height: 1;
    user-select: none;
}

/* ── Clasificación label ── */
h3.clasificacion {
    font-family: 'Playfair display', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--texto-suave);
    text-align: center;
    padding: 20px 0 8px;
    background: var(--crema-2);
    border-bottom: 1px solid var(--crema-3);
}

/* ── Main ── */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

main > p.intro {
    font-size: 1rem;
    color: var(--texto-suave);
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
    line-height: 1.8;
    font-style: italic;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--crema-3);
}

/* ── Sections ── */
section {
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--crema-3);
}
section:last-child { border-bottom: none; margin-bottom: 0; }

section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--rojo);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--crema-3);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--rojo);
}

/* ── Fanfic list ── */
section ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

section ul li {
    background: var(--blanco);
    border: 1px solid var(--crema-3);
    border-left: 3px solid var(--rojo);
    padding: 14px 20px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    color: var(--texto);
    transition: border-left-width 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}

section ul li:hover {
    border-left-width: 6px;
    padding-left: 17px;
    background: var(--crema-2);
}

/* ── Footer ── */
footer {
    background-color: var(--rojo);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 300;
}

footer strong { color: var(--blanco); font-weight: 700; }

/* ══════════════════════════════════════════
   RESPONSIVE — Desktop (> 480px)
══════════════════════════════════════════ */
@media (min-width: 481px) {
    #nav-mobile { 
        display: none !important; 
    }
    .menu-btn { 
        display: none !important; 
    }
    #biblioteca { 
        display: flex !important; 
    }
    main .fandom-section { 
        display: none !important; 
    }
    .mobile-libros-grid {
        display: none !important;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
    #nav-mobile { 
        display: flex !important;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        z-index: 95;
        transform: translateY(-200%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 2px solid var(--crema-3);
        box-shadow: 0 6px 16px rgba(0,0,0,0.18);
        background-color: var(--crema-2);
    }

    #nav-mobile div {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--crema-3);
        background-color: var(--crema-2);
    }
    #nav-mobile div:last-child { 
        border-bottom: none; 
    }

    #nav-mobile div a {
        display: block;
        padding: 18px 24px;
        color: var(--rojo);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-align: center;
        text-transform: uppercase;
        transition: color 0.25s ease;
    }
    #nav-mobile div:not(:has(.nav-mobile-section-title)):hover { 
        background-color: var(--rojo); 
    }
    #nav-mobile div:not(:has(.nav-mobile-section-title)):hover a { 
        color: var(--blanco); 
    }

    #menu-toggle:checked ~ #nav-mobile {
        transform: translateY(0%);
    }
    .menu-btn { 
        display: flex !important; 
    }

    /* ── Títulos de sección del nav mobile ── */
    .nav-mobile-section-title {
        text-align: center !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        color: var(--rojo) !important;
        padding: 18px 24px 10px !important;
        font-family: 'Playfair Display', serif !important;
        background-color: var(--crema-2) !important;
    }

    .nav-mobile-idea {
        display: block;
        text-align: center;
        padding: 10px 24px;
        color: var(--texto-suave);
        font-size: 0.9rem;
    }

    .nav-mobile-divider {
        border-top: 1px solid var(--crema-3);
        margin: 4px 24px;
    }

    .nav-mobile-contacto {
        text-align: center !important;
    }
    #biblioteca {
        display: none !important;
    }
    main .fandom-section { 
        display: none !important; 
    }
    main > p.intro {
        display: none !important;
    }
    body:not(.pagina-propuesta) main {
        padding: 0 !important;
        position: relative;
        z-index: 1;
    }

    .mobile-libros-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 32px 24px 48px;
        width: 100%;
    }

    body { 
        position: relative; 
    }

    body:not(.pagina-propuesta) header {
        padding: 0 20px 0 64px;
        text-align: left;
        height: var(--nav-h);
        display: flex;
        align-items: center;
        position: relative;
        z-index: 100;
    }

    header h1 { 
        font-size: 1.15rem; 
    }
    header::after { 
        display: none; 
    }
    header p.subtitulo { 
        display: none; 
    }
}

/* ══════════════════════════════════════════════════════════
   BIBLIOTECA — Contenedor general del bloque interactivo
══════════════════════════════════════════════════════════ */
#biblioteca {
    background: transparent;
    border-bottom: none;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px;
    overflow: visible;
}

.btn-volver {
    background: none;
    border: 1px solid var(--crema-3);
    color: var(--texto-suave);
    font-family: 'Playfair display', serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.btn-volver:hover {
    background: var(--rojo);
    color: var(--blanco);
    border-color: var(--rojo);
}

/* ══════════════════════════════════════════════════════════
   ESTANTERÍA DE LOMOS — 3D CON TAPA, LOMO Y CONTRATAPA
   ══════════════════════════════════════════════════════════ */
.estanteria {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.estanteria-hint {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--texto-suave);
    opacity: 0.6;
}

.lomos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px; 
    justify-content: center;
    align-items: flex-end;
    perspective: 1200px;
    perspective-origin: center 15%;
    padding: 0;
    background: transparent;
    min-height: 260px;
}

/* MOBILE: 2x2 lomos */
@media (max-width: 768px) {
    .lomos-grid {
        gap: 16px;
        max-width: 350px;
        margin: 0 auto;
        min-height: 280px;
    }
    
    .lomo {
        width: 38px !important;
        height: 200px !important;
    }

    .lomo-cara-frontal {
        width: 38px !important;
        height: 190px !important;
    }

    .lomo-cara-top {
        width: 38px !important;
    }

    .lomo-cara-bottom {
        width: 38px !important;
    }

    .lomo::before {
        display: none !important;
    }

    .lomo::after {
        display: none !important;
    }

    .lomo-titulo {
        font-size: 0.65rem !important;
    }

    .lomo-banda {
        height: 10px;
    }

    .estanteria-hint {
        font-size: 0.65rem;
    }
}

/* TABLET: 3 lomos */
@media (min-width: 769px) and (max-width: 1024px) {
    .lomos-grid {
        gap: 28px;
    }
}

/* DESKTOP: 4 lomos */
@media (min-width: 1025px) {
    .lomos-grid {
        gap: 32px;
        height: 260px;
    }
}

/* ══════════════════════════════════════════════════════════
   EL LOMO: Estructura 3D (Tapa + Lomo frontal + Contratapa)
   ══════════════════════════════════════════════════════════ */
.lomo {
    width: 42px;
    height: 260px;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center bottom;
    transform: rotateY(-15deg);  
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.lomo:hover {
    transform: rotateY(0deg) translateZ(40px) translateY(-12px);
    z-index: 20;
}

/* ────────────────────────────────────────
   TAPA DELANTERA (::before)
   Gira 90° hacia afuera (rotateY(-90deg))
   ──────────────────────────────────────── */
.lomo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -180px;
    width: 180px;
    height: 240px;  /* ← CAMBIÓ DE 100% A 240px (mismo que .lomo-cara-frontal) */
    background-color: var(--color-lomo);
    background-image: linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
    transform-origin: right center;
    transform: rotateY(-90deg);
    backface-visibility: hidden;
    z-index: 1;
}

/* ────────────────────────────────────────
   CONTRATAPA TRASERA (::after)
   Gira 90° hacia adentro (rotateY(90deg))
   ──────────────────────────────────────── */
.lomo::after {
    content: '';
    position: absolute;
    top: 0;
    right: -180px;
    width: 180px;
    height: 240px;  /* ← CAMBIÓ DE 100% A 240px */
    background-color: var(--color-lomo);
    background-image: linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
    transform-origin: left center;
    transform: rotateY(90deg);
    backface-visibility: hidden;
    z-index: 1;
}


/* ────────────────────────────────────────
   CARA FRONTAL — LOMO VISIBLE
   ──────────────────────────────────────── */
.lomo-cara-frontal {
    position: absolute;
    width: 42px;
    height: 240px;
    left: 0;
    top: 0;
    background-color: var(--color-lomo);
    backface-visibility: hidden;
    box-shadow:
        inset -5px 0 12px rgba(0,0,0,0.7),
        inset 4px 0 6px rgba(255,255,255,0.25),
        3px 2px 6px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 10;
    transform-style: preserve-3d;
}

/* ────────────────────────────────────────
   CARA SUPERIOR — TAPA TOP
   ──────────────────────────────────────── */
.lomo-cara-top {
    position: absolute;
    width: 42px;
    height: 22px;
    top: -22px;
    left: 0;
    background: linear-gradient(to right,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.15) 25%,
        rgba(0,0,0,0.05) 75%,
        rgba(0,0,0,0.3) 100%
    );
    background-color: var(--color-lomo);
    transform: rotateX(90deg);
    transform-origin: bottom center;
    backface-visibility: hidden;
    box-shadow:
        inset 0 -4px 8px rgba(0,0,0,0.6),
        0 -2px 8px rgba(0,0,0,0.35);
    z-index: 9;
}

/* ────────────────────────────────────────
   CARA INFERIOR — TAPA BOTTOM
   ──────────────────────────────────────── */
.lomo-cara-bottom {
    position: absolute;
    width: 42px;
    height: 22px;
    bottom: -22px;
    left: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.55) 100%
    );
    background-color: var(--color-lomo);
    transform: rotateX(-90deg);
    transform-origin: top center;
    backface-visibility: hidden;
    box-shadow:
        inset 0 4px 8px rgba(0,0,0,0.65),
        0 4px 10px rgba(0,0,0,0.4);
    z-index: 9;
}

/* ────────────────────────────────────────
   CARA DERECHA — INTERIOR LOMO (NO VISIBLE)
   ──────────────────────────────────────── */
.lomo-cara-tapa {
    display: none;
}

/* ────────────────────────────────────────
   CARA IZQUIERDA — CONTRATAPA (NO VISIBLE)
   ──────────────────────────────────────── */
.lomo-cara-contratapa {
    display: none;
}

/* ────────────────────────────────────────
   BANDAS DECORATIVAS EN EL LOMO
   ──────────────────────────────────────── */
.lomo-banda {
    position: absolute;
    width: 100%;
    height: 12px;
    background: var(--color-accento);
    opacity: 0.9;
    z-index: 11;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
}

.lomo-banda.top {
    top: 18px;
}

.lomo-banda.bottom {
    bottom: 18px;
}

/* ────────────────────────────────────────
   TÍTULO DEL LOMO (VERTICAL)
   ──────────────────────────────────────── */
.lomo-titulo {
    color: var(--color-accento);
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    z-index: 12;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    padding: 0 4px;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}

/* ────────────────────────────────────────
   ANIMACIÓN DE SALIDA
   ──────────────────────────────────────── */
.lomo--saliendo {
    animation: lomo-exit 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lomo-exit {
    0% {
        opacity: 1;
        transform: rotateX(0deg) rotateY(-15deg) rotateZ(0deg) translateY(0) scale(1);
    }
    30% {
        opacity: 1;
        transform: rotateX(0deg) rotateY(-15deg) rotateZ(0deg) translateY(-30px) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: rotateX(20deg) rotateY(-25deg) rotateZ(3deg) translateY(400px) scale(0.85);
    }
}

/* ══════════════════════════════════════════════════════════
   LIBRO ABIERTO INTERNO (Controles e interfaz)
══════════════════════════════════════════════════════════ */
.libro-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.libro-controles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(680px, 95%);
}

.libro-controles-top {
    display: none;
}

.libro-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    position: relative;
}

.libro-nav .btn-volver {
    position: absolute;
    left: 0;
}

.libro-nav-hint {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--texto-suave);
    opacity: 0.5;
}

.btn-pagina {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--crema-3);
    background: var(--crema);
    color: var(--rojo);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-indice {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--crema-3);
    background: var(--crema);
    color: var(--texto-suave);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-indice:hover {
    background: var(--rojo);
    color: var(--blanco);
    border-color: var(--rojo);
}

.btn-pagina:hover:not(:disabled) {
    background: var(--rojo);
    color: var(--blanco);
    border-color: var(--rojo);
}

.btn-pagina:disabled {
    opacity: 0.3;
}

/* Escena del libro abierto */
.libro-escena {
    perspective: 1500px;
    width: min(680px, 95%);
    display: flex;
    justify-content: center;
    filter: drop-shadow(-10px 14px 24px rgba(0,0,0,0.4));
}

/* Estructura del libro físico */
.libro-3d {
    position: relative;
    width: 100%;
    height: 320px;
    transform-style: preserve-3d;
    opacity: 0;
    transform-origin: 25% center;
    transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
}

.libro-3d--visible {
    opacity: 1;
    transform: rotateX(14deg) rotateY(30deg) rotateZ(-1.5deg) scale(0.96);
}

.libro-3d--abierto {
    opacity: 1;
    transform: rotateX(4deg) rotateY(0deg) rotateZ(0deg) scale(1) !important;
}

/* Lomo central de unión en el libro abierto */
.libro-lomo-centro {
    width: 18px;
    flex-shrink: 0;
    background: linear-gradient(to right,
        rgba(0,0,0,0.38) 0%,
        var(--color-lomo, #8B0000) 25%,
        rgba(60,0,0,0.94) 50%,
        var(--color-lomo, #8B0000) 75%,
        rgba(0,0,0,0.32) 100%
    );
    box-shadow:
        inset 3px 0 6px rgba(0,0,0,0.45),
        inset -3px 0 6px rgba(0,0,0,0.45);
    z-index: 50;
}

/* Mitad izquierda */
.libro-pagina-izq {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
    border-left: 3.5px solid #140103;
    box-shadow:
        inset -22px 0 28px rgba(0,0,0,0.45),
        inset 4px 0 8px rgba(0,0,0,0.25);
    transform-origin: right center;
    z-index: 10;
    transition: width 0.6s ease;
}

/* Tapa giratoria */
.libro-tapa {
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0;
    transform-origin: right center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border-radius: 4px 0 0 4px;
    transition: transform 1.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 100;
}

.libro-tapa-front {
    background-color: var(--color-lomo);
    background-image: radial-gradient(rgba(0,0,0,0.12) 12%, transparent 13%);
    background-size: 4px 4px;
    border-radius: 0 4px 4px 0;
    border-right: 4px solid #140103;
    box-shadow: 5px 4px 14px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.libro-tapa-back {
    background-color: #f0e8d0;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--crema-3);
}

/* Empieza ya en posición final sin animación */
.libro-tapa-back--oculta {
    transform: rotateY(-180deg) !important;
    transition: none !important;
}

.libro-3d--abierto .libro-tapa:not(.libro-tapa-front--oculta) {
    transform: rotateY(-180deg);
}

/* Tapa que empieza ya abierta, sin flash visual */
.libro-tapa-front--oculta {
    transform: rotateY(-180deg) !important;
    transition: none !important;
}

.tapa-interior-texto {
    font-size: 1.2rem;
    color: var(--color-accento, #c9a84c);
    opacity: 0.3;
}

.tapa-banda {
    width: 100%;
    height: 14px;
    background-color: var(--color-accento);
    opacity: 0.9;
}

.tapa-banda.top    { border-radius: 4px 0 0 0; }
.tapa-banda.bottom { border-radius: 0 0 0 4px; }

.tapa-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 10px;
    text-align: center;
}

.tapa-ornamento {
    color: var(--color-accento);
    font-size: 0.9rem;
    opacity: 0.7;
}

.tapa-titulo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 700;
    color: var(--color-accento);
    line-height: 1.3;
}

.tapa-subtitulo {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* Stack de páginas derechas */
.libro-paginas {
    position: relative;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    flex-grow: 1;
    transition: width 0.6s ease;
}

.pagina {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.pagina--girada {
    transform: rotateY(-180deg);
}

.cara {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    padding: 18px 14px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cara-front {
    background: #faf4e8;
    border-left: none;
    border-radius: 0 4px 4px 0;
    border-right: 3.5px solid #dfd5be;
    box-shadow:
        inset 20px 0 26px rgba(0,0,0,0.14),
        inset 4px 0 6px rgba(0,0,0,0.08),
        3px 1px 6px rgba(0,0,0,0.1);
}

.cara-back {
    background: transparent;
    transform: rotateY(180deg);
}

/* Marcos decorativos pergamino */
.cara-front::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1.5px solid var(--color-accento, #c9a84c);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.cara-front::after {
    content: '';
    position: absolute;
    inset: 4px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2 Q2 8 8 8' stroke='%23c9a84c' stroke-width='1.5' fill='none' opacity='0.7'/%3E%3Cpath d='M2 2 Q2 6 5 5 Q6 2 2 2' stroke='%23c9a84c' stroke-width='1' fill='none' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M22 2 Q22 8 16 8' stroke='%23c9a84c' stroke-width='1.5' fill='none' opacity='0.7'/%3E%3Cpath d='M22 2 Q22 6 19 5 Q18 2 22 2' stroke='%23c9a84c' stroke-width='1' fill='none' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 22 Q2 16 8 16' stroke='%23c9a84c' stroke-width='1.5' fill='none' opacity='0.7'/%3E%3Cpath d='M2 22 Q2 18 5 19 Q6 22 2 22' stroke='%23c9a84c' stroke-width='1' fill='none' opacity='0.5'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M22 22 Q22 16 16 16' stroke='%23c9a84c' stroke-width='1.5' fill='none' opacity='0.7'/%3E%3Cpath d='M22 22 Q22 18 19 19 Q18 22 22 22' stroke='%23c9a84c' stroke-width='1' fill='none' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top left, top right, bottom left, bottom right;
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.cara > * {
    position: relative;
    z-index: 1;
}

/* Página izquierda roja */
.pagina-izq-roja {
    position: absolute;
    inset: 0;
    background-color: var(--color-lomo, #6b0f1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 4px 0 0 4px;
}

.pagina-izq-roja-ornamento {
    color: var(--color-accento, #c9a84c);
    font-size: 1.1rem;
    opacity: 0.7;
}

.pagina-izq-roja-nombre {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--color-accento, #c9a84c);
    text-align: center;
    padding: 0 12px;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* Página izquierda con imagen */
.pagina-imagen-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
    z-index: 0;
}

.pagina-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    filter: sepia(20%) contrast(1.05);
}

.pagina-imagen-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.25) 100%
    );
}

/* Visibilidad de las hojas traseras en giro */
.cara-back:has(.pagina-imagen-wrapper),
.cara-back:has(.pagina-izq-roja) {
    background: transparent;
    padding: 0;
    isolation: isolate;
}

.pagina:not(.pagina--girada) .cara-back {
    visibility: hidden;
}

.pagina.pagina--girada .cara-back {
    visibility: visible;
}

.cara-back:has(.pagina-imagen-wrapper)::before,
.cara-back:has(.pagina-imagen-wrapper)::after,
.cara-back:has(.pagina-izq-roja)::before,
.cara-back:has(.pagina-izq-roja)::after {
    display: none;
}

/* Estilos de fichas y textos internos */
.pagina-ornamento-top {
    text-align: center;
    color: var(--color-accento, #c9a84c);
    font-size: 0.8rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.pagina-numero {
    text-align: center;
    font-size: 0.6rem;
    color: var(--texto-suave);
    opacity: 0.5;
    margin-top: auto;
}

.pagina-seccion {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--texto);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pagina-fandom-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--texto);
    margin-bottom: 16px;
    font-style: italic;
}

.indice-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.indice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
    font-size: 0.85rem;
    pointer-events: all;
    user-select: none;
}

.indice-item:hover {
    opacity: 0.7;
}

.indice-numero {
    font-weight: 700;
    color: var(--color-accento);
    font-size: 0.8rem;
}

.indice-titulo {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.indice-puntos {
    flex: 0 1 auto;
    border-bottom: 1px dotted rgba(0,0,0,0.2);
    flex-grow: 1;
    height: 0;
    margin: 0 4px;
    pointer-events: none;
}

/* Fichas de fanfics */
.ficha {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    flex: 1;
}

.ficha-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.3;
}

.ficha-autor {
    font-size: 0.85rem;
    color: var(--texto-suave);
    font-style: italic;
}

.ficha-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    display: inline-block;
    font-size: 0.6rem;
    padding: 2px 6px;
    background-color: rgba(0,0,0,0.05);
    border: 0.5px solid var(--color-accento);
    color: var(--texto);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ficha-descripcion {
    font-size: 15px;
    color: var(--texto-suave);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.ficha-link {
    display: inline-block;
    margin-top: auto;
    padding: 6px 10px;
    background-color: var(--rojo);
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.65rem;
    border-radius: 3px;
    transition: opacity 0.2s ease;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ficha-link:hover {
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════
   MOBILE GRILLA — Vista 2×2 de libros en celular
══════════════════════════════════════════════════════════ */
.mobile-libros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px 16px 48px;
    width: 100%;
}

.mobile-libro-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-lomo);
    background-image: radial-gradient(rgba(0,0,0,0.15) 12%, transparent 13%);
    background-size: 5px 5px;
    box-shadow: 
        3px 6px 16px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-libro-card:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 1px 3px 8px rgba(0,0,0,0.3);
}

/* Marco dorado interior */
.mobile-libro-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--color-accento);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    border-radius: 2px;
}

/* Sombra interna izquierda (efecto lomo) */
.mobile-libro-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
    z-index: 2;
    pointer-events: none;
}

.mobile-libro-card-img {
    display: none;
}

.mobile-libro-card-banda {
    display: none;
}

.mobile-libro-card-banda.top { top: 22px; }
.mobile-libro-card-banda.bottom { bottom: 22px; }

.mobile-libro-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 4;
    padding: 40px 16px;
}

.mobile-libro-card-ornamento {
    display: block;
    color: var(--color-accento);
    font-size: 0.7rem;
    opacity: 0.75;
    text-align: center;
}

.mobile-libro-card-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accento);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.4;
    padding: 0 8px;
    writing-mode: horizontal-tb;
    transform: none;
    -webkit-font-smoothing: antialiased;
}

.mobile-libro-card-sub {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accento);
    opacity: 0.9;
    text-align: center;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   MOBILE PANEL — Alternativa para dispositivos pequeños
══════════════════════════════════════════════════════════ */
.fandom-mobile-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.fandom-mobile-panel.fmp--abierto {
    display: flex;
}

.fmp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.fmp-sheet {
    position: relative;
    margin-left: auto;
    width: 100%;
    max-width: 90%;
    height: 100%;
    background: var(--crema);
    display: flex;
    flex-direction: column;
    z-index: 2;
    animation: slideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fmp-cerrar {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--blanco);
    z-index: 10;
}

.fmp-header {
    background: linear-gradient(135deg, var(--rojo), var(--rojo-suave));
    color: var(--blanco);
    padding: 24px;
    text-align: center;
}

.fmp-categoria {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}

.fmp-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fmp-ornamento {
    font-size: 0.9rem;
    opacity: 0.6;
}

.fmp-lista {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fmp-ficha {
    background: var(--blanco);
    border-left: 4px solid var(--rojo);
    padding: 16px;
    border-radius: 4px;
}

.fmp-ficha-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rojo);
    opacity: 0.5;
    margin-bottom: 8px;
    line-height: 1;
}

.fmp-ficha-cuerpo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fmp-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto);
}

.fmp-autor {
    font-size: 0.85rem;
    color: var(--texto-suave);
    font-style: italic;
}

.fmp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fmp-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid currentColor;
    color: var(--rojo);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fmp-desc {
    font-size: 0.9rem;
    color: var(--texto-suave);
    line-height: 1.5;
}

.fmp-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 8px 14px;
    background-color: var(--rojo);
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.fmp-link:hover {
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════
   CONTRATAPA — Ocultar página izquierda en última página
══════════════════════════════════════════════════════════ */
.libro-3d--contratapa .libro-pagina-izq {
    visibility: hidden;
    width: 0;
    flex-shrink: 1;
    transition: width 0.6s ease;
}

.libro-3d--contratapa .libro-lomo-centro {
    visibility: hidden;
    width: 0;
    flex-shrink: 1;
    transition: width 0.6s ease;
}

/* ══════════════════════════════════════════════════════════
   MODAL DE FANFIC INDIVIDUAL — Detalles completos
══════════════════════════════════════════════════════════ */
.fanfic-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
}

.fanfic-modal.fanfic-modal--abierto {
    display: flex;
}

.fanfic-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.fanfic-modal-contenido {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 85vh;
    background: var(--crema);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fanfic-modal-cerrar {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--rojo);
    z-index: 10;
    transition: opacity 0.2s ease;
}

.fanfic-modal-cerrar:hover {
    opacity: 0.7;
}

.fanfic-modal-header {
    padding: 20px 20px 10px;
    text-align: center;
    border-bottom: 1px solid var(--crema-3);
}

.fanfic-modal-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.fanfic-modal-ornamento {
    text-align: center;
    font-size: 1rem;
    opacity: 0.5;
}

.fanfic-modal-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.3;
    text-align: center;
}

.fanfic-modal-autor {
    font-size: 0.9rem;
    color: var(--texto-suave);
    font-style: italic;
    text-align: center;
}

.fanfic-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.fanfic-modal-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fanfic-modal-descripcion {
    font-size: 0.95rem;
    color: var(--texto-suave);
    line-height: 1.6;
    text-align: center;
    margin: 12px 0;
}

.fanfic-modal-link {
    display: inline-block;
    align-self: center;
    margin-top: 12px;
    padding: 10px 20px;
    background-color: var(--rojo);
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    text-align: center;
}

.fanfic-modal-link:hover {
    opacity: 0.85;
}
/* ══════════════════════════════════════════════════════════
   BANNER "PROPONÉ UN FANFIC" — entre los fandoms y el footer
══════════════════════════════════════════════════════════ */
#cta-proponer {
    background: var(--crema);
    text-align: center;
    padding: 56px 24px;
    border-top: 4px solid var(--rojo);
    border-bottom: 4px solid var(--rojo);
}

.cta-proponer-contenido {
    max-width: 480px;
    margin: 0 auto;
}

#cta-proponer h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: var(--rojo);
    margin-bottom: 10px;
}

#cta-proponer p {
    color: #6b4c35;
    font-size: 0.95rem;
    margin-bottom: 26px;
}

.btn-cta-proponer {
    display: inline-block;
    background: var(--crema);
    color: var(--rojo);
    font-family: 'Playfair display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 4px;
    border: 2px solid var(--rojo);
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cta-proponer:hover {
    background: #dfd5be;
    transform: scale(1.03);
}

@media (max-width: 480px) {
    #cta-proponer {
        padding: 40px 20px;
    }
    .btn-cta-proponer {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ══════════════════════════════════════════════════════════
   PÁGINA "PROPONÉ UN FANFIC" — Header simple con botón volver
══════════════════════════════════════════════════════════ */
.header-simple {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.header-simple > div {
    flex: 1;
    text-align: center;
}

.header-btn-volver {
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.header-btn-volver:hover {
    background: rgba(255,255,255,0.28);
    color: #ffffff;
}

@media (max-width: 480px) {
    .header-simple {
        gap: 10px;
    }
    .header-btn-volver {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* ══════════════════════════════════════════════════════════
   PÁGINA "PROPONÉ UN FANFIC" — Contenedor centrado
══════════════════════════════════════════════════════════ */
.main-propuesta {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.propuesta-intro h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    color: var(--rojo);
    margin-bottom: 14px;
}

.propuesta-intro p {
    color: var(--texto-suave);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.formulario-propuesta {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ── Grupos: datos del fanfic / datos de quien lo propone ── */
.datos-fanfic,
.datos-propone {
    background: var(--blanco);
    border: 1px solid var(--crema-3);
    border-radius: 6px;
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.datos-fanfic h3,
.datos-propone h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--rojo);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--crema-3);
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo label,
.campo-titulo {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--texto);
    letter-spacing: 0.2px;
}

.campo label .opcional {
    font-weight: 300;
    color: var(--texto-suave);
    font-size: 0.8rem;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="url"],
.campo select,
.campo textarea {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--texto);
    background: var(--crema);
    border: 1px solid var(--crema-3);
    border-radius: 4px;
    padding: 11px 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.campo input[type="text"]:focus,
.campo input[type="email"]:focus,
.campo input[type="url"]:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--rojo);
    background: var(--blanco);
}

.campo textarea {
    resize: vertical;
    min-height: 90px;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

/* ── Grupos de radio y checkbox ── */
.campo-radios,
.campo-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opciones-simples,
.opciones-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Radio: usan id/for de a pares, como en la teoría de las Etapas.
   Se ocultan visualmente pero el <label for="..."> sigue activando
   el input correspondiente al hacer click sobre el texto. */
.opcion-radio,
.opcion-checkbox-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--crema-3);
    border-radius: 4px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--texto-suave);
    background: var(--crema);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.opcion-radio input[type="radio"],
.opcion-checkbox-tag input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--rojo);
}

.opcion-radio:hover,
.opcion-checkbox-tag:hover {
    border-color: var(--rojo-suave);
}

.opcion-radio:has(input:checked),
.opcion-checkbox-tag:has(input:checked) {
    background: var(--rojo);
    border-color: var(--rojo);
    color: var(--blanco);
}

/* ── Botón enviar ── */
.btn-enviar-propuesta {
    align-self: flex-start;
    background-color: var(--rojo);
    color: var(--blanco);
    border: none;
    font-family: 'Playfair display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-enviar-propuesta:hover {
    background-color: var(--rojo-hover);
}

.btn-enviar-propuesta:active {
    transform: scale(0.98);
}

/* ── Mensaje de agradecimiento (post envío, sin backend) ── */
.mensaje-gracias {
    background: var(--blanco);
    border: 1px solid var(--crema-3);
    border-left: 4px solid var(--rojo);
    border-radius: 6px;
    padding: 40px 28px;
    text-align: center;
    max-width: 640px;
}

.mensaje-gracias-icono {
    color: var(--rojo);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.mensaje-gracias h3 {
    font-family: 'Playfair Display', serif;
    color: var(--rojo);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.mensaje-gracias p {
    color: var(--texto-suave);
    font-size: 0.95rem;
}

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
    .datos-fanfic,
    .datos-propone {
        padding: 20px 16px 22px;
    }
    .opciones-simples,
    .opciones-tags {
        flex-direction: column;
    }
}