/* ==========================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================== */
   :root {
    --bg-main-dark: #0b0b0e;
    --bg-main-darker: #050507;
    --accent-warning: #ffc107;
}

body {
    background-color: var(--bg-main-dark);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ==========================================
   ESTILOS PARA EL PRELOADER (LOGOTIPO GRANDE)
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-logo-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    z-index: 2;
    animation: logoPulse 1.5s infinite ease-in-out;
}

.quantum-loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 193, 7, 0.1);
    border-top: 4px solid var(--accent-warning);
    border-radius: 50%;
    animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 25px rgba(255, 193, 7, 0.6)); }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================
   BOTÓN HAMBURGUESA Y MENÚ FLOTANTE
   ========================================== */
.hamburger-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    background: rgba(11, 11, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    border-color: var(--accent-warning);
    background: #000;
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================
   MENÚ DE PANTALLA COMPLETA
   ========================================== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transition: background-image 0.5s ease;
}

.menu-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(11,11,14,0.7));
}

.fullscreen-nav-links {
    list-style: none;
    padding: 0;
}

.fullscreen-nav-links li {
    margin-bottom: 1.2rem;
}

.fullscreen-link {
    color: #fff;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.fullscreen-link .num {
    color: var(--accent-warning);
    font-size: 1.2rem;
    margin-right: 15px;
}

.fullscreen-link:hover {
    color: var(--accent-warning);
    padding-left: 10px;
}

.social-icon {
    color: #fff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-warning);
}

/* ==========================================
   ESTILOS PARA LOGOTIPO GIGANTE EN SECCIÓN INICIO
   ========================================== */
.hero-giant-logo-wrapper {
    position: relative;
    z-index: 5;
    animation: fadeInDown 1s ease-out;
}

.hero-giant-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.5));
    transition: transform 0.4s ease;
}

.hero-giant-logo:hover {
    transform: scale(1.05);
}

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

/* ==========================================
   SECCIÓN HERO Y FONDOS
   ========================================== */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 14, 0.82);
}

/* ==========================================
   TARJETAS Y COMPONENTES CUSTOM
   ========================================== */
.custom-card {
    background-color: rgba(20, 20, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.custom-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-5px);
}

/* ==========================================
   BOTÓN FLOTANTE WHATSAPP BOT (EN AMARILLO)
   ========================================== */
.whatsapp-bot-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-float-btn {
    background-color: var(--accent-warning); /* Modificado a amarillo */
    color: #000000; /* Texto/Icono en color oscuro para contraste */
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #e0a800; /* Amarillo un poco más oscuro al pasar el ratón */
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.whatsapp-chat-box.active {
    display: block;
}



/* ==========================================
   ESTILOS RESPONSIVOS PARA EL FLIPBOOK
   ========================================== */
/* Ajuste para el contenedor de carga de la revista para que no sea tan alto */
#revista-loader {
    min-height: 300px !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.magazine-viewport {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    height: 600px; /* Forzamos la altura fija para que reserve el espacio exacto */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.pdf-flipbook {
    width: 900px !important;
    height: 600px !important;
    position: relative;
    margin: 0 auto;
}

.pdf-flipbook .page {
    background-color: white;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.pdf-flipbook canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
}

/* Adaptación automática para pantallas móviles o pequeñas */
@media (max-width: 992px) {
    .pdf-flipbook {
        width: 100% !important;
        max-width: 450px !important;
        height: 550px !important;
    }
}