body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ccc;
    cursor: none;
}

#book-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10;
}

#canvas-webgl,
#canvas-css3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#canvas-webgl {
    pointer-events: none;
}

/* --- Las dimensiones se heredan del JS --- */
.page-content-wrapper {
    background: #111;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    /* OCULTO POR DEFECTO PARA ELIMINAR SOMBRAS */
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.page-content-wrapper.active {
    display: flex;
    /* Sombra refinada solo para páginas activas */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.empty-page {
    background: #bbb;
}

.page-anverso {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-anverso video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* OCUPA TODO EL ESPACIO SIN DEFORMAR */
    display: block;
}

.page-anverso .info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: #fff;
    pointer-events: none;
    font-family: 'Cutive Mono', monospace;
    z-index: 5;
}

.page-anverso h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.page-anverso p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 90%;
    opacity: 0.9;
    line-height: 1.2;
}

.page-reverso {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-reverso iframe {
    width: 100%;
    flex-grow: 1;
    /* OCUPA RELEVANTE */
    border: none;
    pointer-events: none;
}

.page-reverso .action-bar {
    padding: 20px;
    background: #000;
    display: flex;
    justify-content: center;
}

.btn-go {
    background: #fff;
    color: #000;
    padding: 12px 40px;
    border: none;
    font-family: 'Cutive Mono', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-go:hover {
    background: #444;
    color: #fff;
}

/* --- Navegación LATERAL centrada --- */
.book-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    pointer-events: none;
}

.nav-arrow {
    color: #000;
    font-size: 6rem;
    cursor: pointer;
    opacity: 0.2;
    transition: all 0.3s;
    pointer-events: auto;
}

.nav-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #000;
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    position: fixed;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
}