@font-face {
    font-family: 'WichoFont';
    src: url('font/7cfa930a-ebaf-4c7f-a1b5-455e6d513e15.otf') format('opentype');
}

html {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

.phone-icon{
    display: none;
}

.link{
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    color: #4ade80;
}

.nav-link {
    color: #4ade80;
    text-decoration: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
    border-bottom: 2px solid #fff;
}

.nav-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-family: 'WichoFont', serif;
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

/* La línea ahora está en el navbar completo */

.nav-right {
    display: flex;
    align-items: center;
}

.nav-text {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    opacity: 0.9;
    transform: translateY(8px);
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 80px; /* Espacio para el navbar */
}

.center-image {
    position: absolute;
    top: 45%;
    left: 52%;
    z-index: 10;
    pointer-events: none;
    animation: bookEntrance 2s ease-out forwards;
    opacity: 0;
}

.main-image {
    max-width: 85%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

@keyframes bookEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) translateZ(-100px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateZ(0px);
    }
}

.welcome-text {
    position: absolute;
    left: 5%;
    top: 43%;
    transform: translateY(-50%);
    z-index: 20;
    color: #fff;
    font-family: 'WichoFont', serif;
    text-align: left;
}

.text-line {
    font-size: 3.5rem;
    margin-bottom: -25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.name-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'WichoFont', serif;
    font-size: 3.5rem;
    width: 250px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    caret-color: #fff;
}

.name-input::placeholder {
    color: rgba(255,255,255,0.7);
    font-family: 'WichoFont', serif;
    font-size: 3.5rem;
}

.underline {
    width: 150px;
    height: 2px;
    background: #fff;
    margin-top: -3px;
    margin-left: 0px;
    box-shadow: 0 1px 3px rgba(255,255,255,0.3);
    display: block;
}

.enter-button {
    position: absolute;
    right: 10%;
    top: 45%;
    transform: translateY(-50%);
    z-index: 20;
}

.ingresar-btn {
    background: transparent;
    border: 2px solid #6b7280;
    border-radius: 10px;
    color: #6b7280;
    font-family: 'WichoFont', serif;
    font-size: 3.5rem;
    padding: 0px 20px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
    transform: translateY(-10px);
    opacity: 0.6;
}

.ingresar-btn.enabled {
    border: 2px solid #fff;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,255,255,0.2);
    opacity: 1;
}

.ingresar-btn.enabled:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.ingresar-btn.enabled:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255,255,255,0.2);
}

/* Tooltip para el botón deshabilitado */
.ingresar-btn[data-tooltip] {
    position: relative;
}

.ingresar-btn[data-tooltip]:not(.enabled)::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ingresar-btn[data-tooltip]:not(.enabled)::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 4px;
}

.ingresar-btn[data-tooltip]:not(.enabled):hover::after,
.ingresar-btn[data-tooltip]:not(.enabled):hover::before {
    opacity: 1;
    visibility: visible;
}

.frog-image {
    position: absolute;
    bottom: 8%;
    right: 2%;
    z-index: 20;
}

.frog-img {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}


#falling-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf {
    position: absolute;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #1b5e20, #2e7d32, #388e3c, #43a047, #4caf50);
    border-radius: 0 100% 0 100%;
    opacity: 0.9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.1s ease-out;
}

.leaf::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: 0 100% 0 100%;
}

.leaf:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #1b5e20, #2e7d32);
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.leaf:nth-child(odd) {
    background: linear-gradient(45deg, #1b5e20, #2e7d32, #388e3c);
    animation-duration: 6s;
    transform: scale(1.2);
}

.leaf:nth-child(even) {
    background: linear-gradient(45deg, #4caf50, #66bb6a, #81c784);
    animation-duration: 8s;
    transform: scale(0.7);
}

.leaf:nth-child(3n) {
    background: linear-gradient(45deg, #388e3c, #43a047, #4caf50);
    animation-duration: 7s;
    transform: scale(1.5);
}

.leaf:nth-child(4n) {
    background: linear-gradient(45deg, #2e7d32, #43a047, #66bb6a);
    animation-duration: 9s;
    transform: scale(0.6);
}

.leaf:nth-child(5n) {
    background: linear-gradient(45deg, #1b5e20, #2e7d32, #4caf50);
    animation-duration: 5s;
    transform: scale(1.8);
}

.leaf:nth-child(6n) {
    background: linear-gradient(45deg, #2e7d32, #43a047, #66bb6a);
    animation-duration: 6.5s;
    transform: scale(0.5);
}

.leaf:nth-child(7n) {
    background: linear-gradient(45deg, #1b5e20, #388e3c, #4caf50);
    animation-duration: 7.5s;
    transform: scale(1.1);
}

.leaf:nth-child(8n) {
    background: linear-gradient(45deg, #388e3c, #66bb6a, #81c784);
    animation-duration: 8.5s;
    transform: scale(0.9);
}

/* Las animaciones CSS ya no se usan, se manejan con JavaScript */

/* Las animaciones CSS ya no se usan, se manejan con JavaScript para mayor fluidez */

/* Estilos para el video del libro */
.book-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    pointer-events: none;
}

.book-video.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.book-video video {
    max-width: 84vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.8));
}

/* Flecha que aparece cuando termina el video */
.video-arrow {
    position: fixed;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    opacity: 0;
    transform: translateY(-50%) translateX(30px);
    transition: all 0.8s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.video-arrow.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.video-arrow:hover {
    transform: translateY(-50%) translateX(-10px) scale(1.1);
}

.arrow-symbol {
    font-size: 6rem;
    color: #fff;
    font-family: 'WichoFont', serif;
    text-shadow: 0 4px 8px rgba(0,0,0,0.8);
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
    transition: all 0.3s ease;
    transform: scaleX(1.5);
}

.arrow-text {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    filter: drop-shadow(0 1px 2px rgba(255,255,255,0.3));
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-top: -20px;
}

.video-arrow:hover .arrow-symbol {
    color: #4ade80;
    text-shadow: 0 6px 12px rgba(74, 222, 128, 0.6);
}

.video-arrow:hover .arrow-text {
    color: #4ade80;
    text-shadow: 0 4px 8px rgba(74, 222, 128, 0.6);
}

/* Estilos para la notificación */
.notification {
    position: fixed;
    top: 90px; /* Debajo del navbar */
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 90%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 1.1rem;
}



.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}



/* Banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 20px;
    z-index: 9999;
    border-top: 2px solid #4ade80;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.cookie-btn.accept:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}



/* Responsive para móviles */
@media (max-width: 884px) {
    /* Navbar más pequeño para móviles */
    .navbar {
        height: 45px;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
        transform: translateY(2px);
    }
    
    /* Mover el texto de bienvenida arriba de la imagen solo en móviles */
    .welcome-text {
        top: 6%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .text-line {
        font-size: 3.2rem;
        margin-bottom: -15px;
    }
    
    .name-input {
        font-size: 3.2rem;
        width: 220px;
        text-align: left;
        padding-left: 0;
        margin-left: -15px;
    }
    
    .name-input::placeholder {
        font-size: 3.2rem;
    }
    
    .underline {
        width: 120px;
        margin-top: -2px;
    }
    
    /* Centrar mejor la imagen del libro en móviles */
    .center-image {
        top: 50%;
        left: 50%;
        transition: all 1s ease;
    }
    
    .main-image {
        max-width: 90%;
        max-height: 60vh;
        transition: all 1s ease;
    }
    
    /* Ocultar completamente la imagen cuando se active el video */
    .center-image.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Ajustar el botón de ingresar */
    .enter-button {
        right: 50%;
        top: 75%;
        transform: translateX(50%);
    }
    
    .ingresar-btn {
        font-size: 2.5rem;
        padding: 0px 15px;
    }
    
    /* Ajustar la rana */
    .frog-image {
        bottom: 15%;
        right: 5%;
    }
    
    .frog-img {
        max-width: 120px;
        max-height: 120px;
    }
    
    /* Video del libro en móvil */
    .book-video {
        transform: translate(-50%, -95%);
}

/* Ajuste específico para el rango de 768px a 884px */
@media (min-width: 768px) and (max-width: 884px) {
    .nav-text {
        font-size: 1.5rem;
        transform: translateY(4px);
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    /* Subir todos los elementos principales */
    .welcome-text {
        top: -2vh !important;
    }
    
    .center-image {
        top: 45vh !important;
    }
    
    .enter-button {
        top: 80vh !important;
    }
    
    .frog-image {
        bottom: 6vh !important;
    }
    
    /* Mover el input del nombre a la izquierda */
    .name-input {
        margin-left: -7vh !important;
    }

    .book-video {
        transform: translate(-50%, -95%) !important;
    }

    .book-video video {
        width: 65vh !important;
        height: 65vw !important;
        object-fit: contain !important;
    }
}

@media (max-width: 375px) {

    .welcome-text {
        top: -6vh !important;
    }
    
    .center-image {
        top: 40vh !important;
    }
    
    .enter-button {
        top: 70vh !important;
    }
    
    .frog-image {
        bottom: 0% !important;
    }
    
    .book-video video {
        max-width: 48vh !important;
        max-height: 48vw !important;
    }
    
}

@media (max-width: 428px) {

    .welcome-text {
        top: -3vh !important;
    }
    
    .center-image {
        top: 47vh !important;
    }
    
    .enter-button {
        top: 77vh !important;
    }
    
    .frog-image {
        bottom: -5% !important;
    }
    
    .book-video video {
        max-width: 55vh !important;
        max-height: 55vw !important;
    }
    
}

@media (max-width: 414px) {

    .welcome-text {
        top: -4vh !important;
    }
    
    .center-image {
        top: 40vh !important;
    }
    
    .enter-button {
        top: 65vh !important;
    }
    
    .frog-image {
        bottom: 24% !important;
    }
    
    .book-video video {
        max-width: 52vh !important;
        max-height: 52vw !important;
    }
    
    .book-video {
        transform: translate(-50%, -95%) !important;
    }
    
}

@media (max-width: 320px) {

    .welcome-text {
        top: -5vh !important;
    }
    
    .text-line {
        font-size: 1.5rem !important;
    }
    
    .name-input {
        font-size: 1.5rem !important;
        margin-left: 60px !important;
    }
    
    .name-input::placeholder {
        font-size: 1rem !important;
    }
    
    .underline {
        width: 60px !important;
        margin-left: 60px !important;
    }
    
    .center-image {
        top: 37vh !important;
    }
    
    .enter-button {
        top: 65vh !important;
    }
    
    .ingresar-btn {
        font-size: 1rem !important;
        padding: 4px 8px !important;
    }
    
    .book-video {
        transform: translate(-50%, -95%) !important;
    }
    
    .book-video video {
        max-width: 50vh !important;
        max-height: 50vw !important;
    }
    
    .frog-image {
        bottom: 4% !important;
    }
    
}
    
    .book-video video {
        max-width: 70vh;
        max-height: 70vw;
    }
    
    /* Mover la flecha donde está la ranita en móvil */
    .video-arrow {
        right: 50% !important;
        top: auto !important;
        bottom: 8% !important;
        transform: translateX(50%) !important;
    }
    
    .video-arrow.show {
        transform: translateX(50%) !important;
    }
    
    .video-arrow:hover {
        transform: translateX(40%) scale(1.1) !important;
    }
    
    /* Hacer la flecha más pequeña en móvil */
    .video-arrow .arrow-symbol {
        font-size: 4rem !important;
    }
    
    .video-arrow .arrow-text {
        font-size: 1.2rem !important;
        margin-top: -15px !important;
    }
    
    /* Animación de subir volumen */
    .phone-rotate-animation {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2000;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 20px;
        padding: 30px;
        text-align: center;
        color: white;
        font-family: Arial, sans-serif;
        display: none;
        animation: fadeIn 0.5s ease;
    }
    
    .phone-rotate-animation.show {
        display: block;
    }
    
    .phone-icon {
        font-size: 4rem;
        margin-bottom: 20px;
        animation: volumeUp 2s infinite ease-in-out;
    }
    
    .rotate-text {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .rotate-subtext {
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    @keyframes volumeUp {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.2);
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-text {
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        min-width: 150px;
    }
}

/* Estilos para móviles muy pequeños */
@media (max-width: 480px) {
    .welcome-text {
        top: 2%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    
    .name-input {
        text-align: center;
        margin: 0 auto;
    }
    
    .text-line {
        font-size: 2.8rem;
        margin-bottom: -10px;
    }
    
    .name-input {
        font-size: 2.8rem;
        width: 200px;
        text-align: left;
        padding-left: 0;
        margin-left: -57px;
    }
    
    .name-input::placeholder {
        font-size: 2.8rem;
    }
    
    .underline {
        width: 100px;
    }
    
    .main-image {
        max-width: 95%;
        max-height: 50vh;
        transition: all 1s ease;
    }
    
    /* Ocultar completamente la imagen en móviles pequeños */
    .center-image.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .ingresar-btn {
        font-size: 2rem;
        padding: 0px 10px;
    }
    
    .enter-button {
        right: 50%;
        top: 77%;
        transform: translateX(50%);
    }
    
    .frog-img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .frog-image {
        bottom: 10%;
        right: 2%;
    }
    
    /* Video del libro en móviles pequeños */
    .book-video {
        transform: translate(-50%, -95%);
    }
    
    .book-video video {
        width: 95vh;
        height: 95vw;
        object-fit: contain;
    }
    
    /* Ajustar animación de volumen para móviles pequeños */
    .phone-rotate-animation {
        padding: 25px;
    }
    
    .phone-icon {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }
    
    .rotate-text {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .rotate-subtext {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    /* Ajustar la flecha para móviles pequeños */
    .video-arrow {
        bottom: 6% !important;
        right: 50% !important;
        transform: translateX(50%) !important;
    }
    
    /* Hacer la flecha aún más pequeña en móviles pequeños */
    .video-arrow .arrow-symbol {
        font-size: 3.5rem !important;
    }
    
    .video-arrow .arrow-text {
        font-size: 1rem !important;
        margin-top: -12px !important;
    }
}

/* Logo solo cuando no hay navegación */
.logo-solo {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 100;
    animation: fadeInDown 0.5s ease-out;
}

.logo-solo .logo {
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Estilos para el indicador de usuario existente */
.existing-user-indicator {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el input cuando está deshabilitado (usuario existente) */
.name-input:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Estilos para el botón cuando es usuario existente */
.ingresar-btn.enabled {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    transform: scale(1.02);
}

/* Estilos para la lupa */
.magnifier {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: none;
}

.magnifier.active {
    display: block;
}

.magnifier-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid #4ade80;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.magnifier-lens::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(74, 222, 128, 0.1) 100%);
}

/* Efecto de zoom en el contenido de la lupa */
.magnifier-lens::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: inherit;
    transform: scale(2);
    pointer-events: none;
}

/* Indicador visual de que la lupa está activa */
.magnifier.active .magnifier-lens {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 222, 128, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    }
}

/* Ocultar lupa en dispositivos móviles */
@media (max-width: 884px) {
    .magnifier {
        display: none !important;
    }
    
    .magnifier.active {
        display: none !important;
    }
}

/* Media query para tablets (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .book-video video {
        width: 600px;
        height: 450px;
        object-fit: contain;
    }
}

/* Media query para pantallas de computadora (1024px y más) */
@media (min-width: 1024px) {
    .book-video video {
        width: 800px;
        height: 600px;
        object-fit: contain;
    }
}

/* Media query para pantallas grandes de computadora (1440px y más) */
@media (min-width: 1440px) {
    .book-video video {
        width: 900px;
        height: 675px;
        object-fit: contain;
    }
}

/* Media query para pantallas muy grandes (1920px y más) */
@media (min-width: 1920px) {
    .book-video video {
        width: 1000px;
        height: 750px;
        object-fit: contain;
    }
}

/* Estilos para el control de volumen */
.volume-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.volume-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: rgba(74, 222, 128, 0.8);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.volume-btn:active {
    transform: scale(0.95);
}

.volume-btn.muted {
    background: rgba(255, 0, 0, 0.7);
}

.volume-btn.muted:hover {
    background: rgba(255, 0, 0, 0.9);
}

/* Animación de subir volumen - Global */
.phone-rotate-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    display: none;
    animation: fadeIn 0.5s ease;
}

.phone-rotate-animation.show {
    display: block;
}

.phone-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: volumeUp 2s infinite ease-in-out;
}

.rotate-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.rotate-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes volumeUp {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Fuente personalizada */
@font-face {
    font-family: 'WuichoFont';
    src: url('font/7cfa930a-ebaf-4c7f-a1b5-455e6d513e15.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Estilos para el popup de correos */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid #4CAF50;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    transform: scale(1.2);
}

.popup-icon {
    margin-bottom: 20px;
}

.envelope-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.popup-title {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'WuichoFont', 'Georgia', serif;
    letter-spacing: 3px;
}

.verde-word {
    color: #3DB96B;
}

.popup-message {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-input {
    padding: 15px 20px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    font-size: 16px;
    background: #2a2a2a;
    color: #fff;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.popup-input:focus {
    outline: none;
    border-color: #66bb6a;
    background: #333;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.popup-input::placeholder {
    color: #888;
}

.popup-submit {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 10px;
}

.popup-submit:hover {
    background: #66bb6a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.popup-submit:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.popup-loading {
    display: none;
    margin-left: 10px;
}

.popup-loading.active {
    display: inline-block;
}

.popup-message-success {
    color: #fff;
    background: rgba(76, 175, 80, 0.8);
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
}

.popup-message-error {
    color: #fff;
    background: rgba(244, 67, 54, 0.8);
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
}

.popup-skip {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.popup-skip:hover {
    color: #ccc;
}

/* Animación de entrada del popup */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-container {
    animation: popupSlideIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-container {
        padding: 20px;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-message {
        font-size: 14px;
    }
    
    .popup-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .popup-submit {
        padding: 10px 20px;
        font-size: 14px;
    }
}
