/* --- Tipografías --- */
@font-face {
    font-family: 'Avenir Next';
    src: url('./avenir-next-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next Ultralight';
    src: url('./AvenirNextCyr-UltraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Wrapper Principal --- */
.belt-resource-wrapper {
    font-family: 'Avenir Next', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    transition: background-color 0.3s;
}

.container {
    display: flex;
    flex-direction: row;
    width: 1200px;
    gap: 120px;
    align-items: stretch;
}

/* --- Sección Izquierda (Carrusel) --- */
.left-section {
    width: 566px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 414px;
    margin-bottom: 20px;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-wrapper img,
.carousel-main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Botones Flechas */
body .left-section .carousel-container button.arrow-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: min(2.60vw, 50px) !important;
    height: min(2.60vw, 50px) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body .left-section .carousel-container button.arrow-btn svg {
    width: min(0.52vw, 10px) !important;
    height: min(1.20vw, 23px) !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

body .left-section .carousel-container button.arrow-btn svg path {
    transition: stroke 0.3s ease !important;
}

body button.arrow-btn:focus,
body button.arrow-btn:active,
body button.arrow-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.left-arrow {
    left: -70px;
}

.right-arrow {
    right: -70px;
}

/* Puntos */
.dots-container {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Botones Acciones */
.action-buttons {
    display: flex;
    gap: 20px;
}

.action-btn {
    padding: 10px 30px;
    background: transparent;
    font-family: 'Avenir Next', sans-serif;
    font-size: 14px;
    cursor: pointer;
    width: 140px;
    transition: all 0.3s ease;
}

/* --- Sección Derecha (Información y Botones) --- */
.right-section { 
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    /* font-size: 36px; */
    letter-spacing: 2px;
    margin-bottom: 30px;
}



.font-light {
    font-family: 'Avenir Next Ultralight', sans-serif;
    font-weight: normal;
}

.font-bold {
    font-family: 'Avenir Next', sans-serif;
    font-weight: bold;
}

.description p {
    /* font-size: 15px; */
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =========================================
   ESTILOS DINÁMICOS: LIGHT & DARK
   ========================================= */

/* THEME LIGHT */
.theme-light {
    background-color: #F6F6F6;
    color: #111111;
}

.theme-light .container {
    flex-direction: row;
}

.theme-light .title {
    color: #111111;
}

.theme-light .description p {
    color: #555555;
}

.theme-light .action-btn {
    border: 1px solid #111111;
    color: #111111;
}

body .theme-light .arrow-btn {
    border: 1px solid #111111 !important;
    color: #111111 !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.theme-light .action-btn:hover {
    background: #111111;
    color: #ffffff;
}

body .theme-light .arrow-btn:hover,
body .theme-light .arrow-btn:focus {
    background: #111111 !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.theme-light .dot {
    background-color: #cccccc;
}

.theme-light .dot.active {
    background-color: #111111;
}

.theme-light.modal-content {
    background: #F6F6F6;
    color: #111111;
}

.theme-light .close-btn-dark {
    color: #111111 !important;
}

.theme-light .submit-btn {
    background: #111111;
    color: #ffffff;
}

.theme-light .submit-btn:hover {
    background: #333333;
}

.theme-light .input-group input {
    border: 1px solid #cccccc;
    background: #ffffff;
}

/* THEME DARK */
.theme-dark {
    background-color: #18191F;
    color: #ffffff;
}

.theme-dark .container {
    flex-direction: row-reverse;
}



.theme-dark .title {
    color: #ffffff;
}

.theme-dark .description p {
    color: #dddddd;
}

.theme-dark .action-btn {
    border: 1px solid #ffffff;
    color: #ffffff;
}

body .theme-dark .arrow-btn {
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.theme-dark .action-btn:hover {
    background: #ffffff;
    color: #18191F;
}

body .theme-dark .arrow-btn:hover,
body .theme-dark .arrow-btn:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #18191F !important;
    border-color: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

.theme-dark .dot {
    background-color: #555555;
}

.theme-dark .dot.active {
    background-color: #ffffff;
}

.theme-dark.modal-content {
    background: #18191F;
    color: #ffffff;
    border: 1px solid #333333;
}

.theme-dark .close-btn-dark {
    color: #ffffff !important;
}

.theme-dark .submit-btn {
    background: #ffffff;
    color: #18191F;
}

.theme-dark .submit-btn:hover {
    background: #dddddd;
    color: #18191F !important;
}

.theme-dark .input-group input {
    background: #2A2B32;
    color: #ffffff;
    border: 1px solid #555555;
}

/* --- Modales --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex; /* Mantiene el contenido centrado */
    opacity: 0; /* Oculto por defecto */
    visibility: hidden; /* Evita clics cuando está oculto */
    transition: all 0.4s ease-in-out; /* Transición suave estilo Magazine */
}

/* Clase para mostrar el modal dinámicamente */
.modal.show {
    opacity: 1;
    visibility: visible;
}

.view-modal {
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.view-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.download-modal {
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 40px;
    width: 400px;
    position: relative;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.modal-content h2 {
    font-family: 'Avenir Next', sans-serif;
    margin-top: 0;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 25px;
}

/* --- BLINDAJE DE BOTONES (WordPress Reset) --- */

/* --- BLINDAJE TOTAL PARA EL BOTÓN SUBMIT --- */
form.download-form button.submit-btn,
form.download-form button.submit-btn:hover,
form.download-form button.submit-btn:focus,
form.download-form button.submit-btn:active {
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important; /* Neutraliza estilos nativos curvos en móviles/Safari */
}
button.close-btn{
    position: absolute;
    top: -4px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    transition: transform 0.2s;
    padding: 0;
    color: #ffffff !important;
}

button.close-btn-dark {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    transition: transform 0.2s;
    padding: 0;
}
button.close-btn:hover{
    transform: scale(1.2);
    background-color: transparent !important;
    border: none !important;
}

button.close-btn-dark:hover {
    transform: scale(1.2);
    background-color: transparent !important;
    border: none !important;
}


button:focus,
button:active,
button:focus-visible,
.action-btn:focus,
.arrow-btn:focus,
.close-btn:focus,
.close-btn-dark:focus {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.arrow-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.action-btn:active {
    transform: scale(0.95);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    font-family: 'Avenir Next', sans-serif;
}

.submit-btn {
    border: none;
    padding: 14px 30px;
    font-family: 'Avenir Next', sans-serif;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 10px;
}


.arrow-btn,
.action-btn,
.btn-submit {
    border-radius: 0px !important;
    border: solid 1px !important;
}


/* =========================================
   BLOQUE PARA FONT-SIZES EN PANTALLAS GRANDES (>= 769px) - USANDO min()
   ========================================= */
@media (min-width: 769px) {

    .title {
        font-size: min(3.125vw, 60px);
    }

    .description p {
        font-size: min(1.146vw, 22px);
    }
  
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVIL / PANTALLAS PEQUEÑAS)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Ajuste del Wrapper y Contenedor Principal */
    .belt-resource-wrapper {
        padding: 40px 20px;
        box-sizing: border-box;
        min-height: auto; /* Permite que el contenido fluya sin forzar el 100vh si es muy largo */
    }

    .container {
        width: 100%;
        /* El !important garantiza que sobreescriba el row-reverse del theme-dark */
        flex-direction: column !important; 
        gap: 30px;
    }

    /* 2. Sección Izquierda (Carrusel) al 100% */
    .left-section {
        width: 100%;
    }

    .carousel-container {
        height: 350px; /* Altura controlada para móvil */
        width: 100%;
        margin-bottom: 15px;
    }

    /* 3. Reubicación de Flechas (hacia adentro) */
    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }

    /* Fondo sutil semitransparente para que las flechas se lean sobre cualquier imagen */
    body .theme-light .arrow-btn {
        background: rgba(246, 246, 246, 0.85) !important; 
        background-color: rgba(246, 246, 246, 0.85) !important; 
    }
    body .theme-dark .arrow-btn {
        background: rgba(24, 25, 31, 0.85) !important;
        background-color: rgba(24, 25, 31, 0.85) !important;
    }

    body .left-section .carousel-container button.arrow-btn {
        width: 40px !important;
        height: 40px !important;
    }

    body .left-section .carousel-container button.arrow-btn svg {
        width: 10px !important;
        height: 23px !important;
    }

    /* 4. Botones de Acción (View / Download) paralelos y centrados */
    .action-buttons {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .action-btn {
        flex: 1; /* Crecen equitativamente */
        max-width: 160px;
        padding: 12px 10px;
        font-size: 13px; /* Un poco más compacto */
    }

    /* 5. Sección Derecha (Textos) */
    .right-section {
        align-items: center;
        text-align: center; /* En móvil, el texto centrado da un look más premium tipo revista */
    }

    .title {
        font-size: 32px; /* Escala perfecta para títulos largos en móvil */
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    .description p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 6. Modales Adaptables */
    .modal-content {
        width: 90%; /* En lugar de 400px fijos */
        padding: 30px 20px;
        box-sizing: border-box;
    }

    .view-modal img {
        max-width: 100%;
        max-height: 80vh;
    }

    /* Ajuste de la "X" para cerrar en móvil (para que sea fácil de tocar) */
    button.close-btn {
        top: 12px;
        right: 20px;
    }
}

/* =========================================
   PANTALLAS EXTRA PEQUEÑAS (iPhone SE, etc < 380px)
   ========================================= */
@media (max-width: 380px) {
    .carousel-container {
        height: 280px;
    }
    
    .title {
        font-size: 28px;
    }
}

.pdf-canvas-wrapper canvas {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    pointer-events: none; /* Evita interacciones de guardado de imagen en móviles */
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================================
   BLINDAJE DE BOTONES DE NAVEGACIÓN Y HOVER SEGÚN EL TEMA
   ========================================================================== */

/* Blindaje para arrow-btn - Tema Claro */
body .theme-light .pagination-container button.arrow-btn:not(:disabled):hover,
body .theme-light .pagination-container button.arrow-btn:not(:disabled):focus,
body .theme-light .pagination-container a.arrow-btn:not(.disabled):hover,
body .theme-light .pagination-container a.arrow-btn:not(.disabled):focus,
body .theme-light .carousel-container button.arrow-btn:not(:disabled):hover,
body .theme-light .carousel-container button.arrow-btn:not(:disabled):focus,
body.theme-light .carousel-container button.arrow-btn:not(:disabled):hover,
body.theme-light .carousel-container button.arrow-btn:not(:disabled):focus,
body .theme-light .container button.arrow-btn:not(:disabled):hover,
body .theme-light .container button.arrow-btn:not(:disabled):focus {
    background-color: #333338 !important;
    border-color: #333338 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
}

/* Blindaje para arrow-btn - Tema Oscuro */
body .theme-dark .pagination-container button.arrow-btn:not(:disabled):hover,
body .theme-dark .pagination-container button.arrow-btn:not(:disabled):focus,
body .theme-dark .pagination-container a.arrow-btn:not(.disabled):hover,
body .theme-dark .pagination-container a.arrow-btn:not(.disabled):focus,
body .theme-dark .carousel-container button.arrow-btn:not(:disabled):hover,
body .theme-dark .carousel-container button.arrow-btn:not(:disabled):focus,
body.theme-dark .carousel-container button.arrow-btn:not(:disabled):hover,
body.theme-dark .carousel-container button.arrow-btn:not(:disabled):focus,
body .theme-dark .container button.arrow-btn:not(:disabled):hover,
body .theme-dark .container button.arrow-btn:not(:disabled):focus {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #1a1a1a !important; /* Texto oscuro para contrastar con el fondo blanco */
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
}