/* Importar fuentes exactas del original */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&family=Prompt:wght@300;400;500&family=Raleway:ital,wght@0,300;1,600&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset básico */
* {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Evitar scrollbars innecesarios */
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0;
}

img {
    border-style: none;
}

/* =============================================== */
/* SISTEMA DE VISTAS - CORREGIDO */
/* =============================================== */

/* Todas las vistas ocultas por defecto */
.view {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

/* Solo la vista activa se muestra */
.view.active-view {
    display: block !important;
}

/* Vista de carga visible por defecto */
#loading-view {
    display: flex !important;
}

/* =============================================== */
/* ESTILOS ORIGINALES - EXACTOS */
/* =============================================== */

/* Container - Exacto del original */
.container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Main section - Exacto del original */
.main {
    height: 100vh;
    width: 100vw;
    background: linear-gradient(45deg, #000000, #0a0000, #2a0000, #500000, #780000, #a40101, #d10101);
}

.main__container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Contenedor Logos - Exacto del original */
.main__producto {
    height: 40vh;
    display: flex;
    flex-direction: column;
}

.main__producto_img_logo {
    display: block;
    width: 10%;
    height: auto;
    margin: auto;
    background-size: cover;
}

.main__produto_img_autentic,
.main__producto_img_autentic {
    display: block;
    width: 15%;
    height: auto;
    margin: auto;
    background-size: cover;
}

/* Contenedor Textos - Exacto del original */
.main__texto {
    height: 50vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.main__texto_container {
    width: 40%;
    height: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.main__texto_title {
    width: 90%;
    height: 20%;
    font-size: .8rem;
    background-color: white;
    border-radius: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.main__texto_title__txt {
    margin: auto;
    color: black;
    font-weight: bold; /* Negritas como el original */
}

.main__texto_fechas {
    width: 90%;
    height: 50%;
    font-size: .8rem;
    text-align: left;
    background-color: white;
    border-radius: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    text-align: center;
}

.main__texto_fechas__txt {
    width: 90%;
    margin: auto;
    color: black;
    font-weight: bold; /* Negritas como el original */
    padding: 2px 0;
}

.main__texto_fechas__txt.title {
    font-weight: bold; /* Negritas como el original */
    margin-bottom: 5px;
    text-align: center;
}

.main__texto_leyenda {
    color: white;
}

.main__texto_correo {
    color: white;
}

/* Footer - Exacto del original */
.footer__container {
    color: white;
    text-align: center;
    padding: 20px;
}

.footer__copy {
    margin: 0;
    font-size: 0.9rem;
}

/* =============================================== */
/* FONDOS ESPECÍFICOS PARA CADA VISTA */
/* =============================================== */

/* Vista de éxito - Fondo rojo */
#success-view .main {
    background: linear-gradient(45deg, #000000, #0a0000, #2a0000, #500000, #780000, #a40101, #d10101) !important;
}

/* Vista de advertencia - Gradiente exacto del original */
#warning-view .main {
    background: linear-gradient(45deg, #000000, #13130e, #2b2918, #47431d, #69611e, #8e831a, #b9a811, #e8d103) !important;
}

/* Vista de error - Fondo gris */
#error-view .main {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a, #3a3a3a, #1a1a1a) !important;
}

/* =============================================== */
/* VISTA DE CARGA - SIMPLIFICADA */
/* =============================================== */

#loading-view {
    background: linear-gradient(45deg, #000000, #0a0000, #2a0000, #500000, #780000, #a40101, #d10101);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: white;
    height: 100vh;
    width: 100vw;
}

#loading-view p {
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================== */
/* RESPONSIVE DESIGN - EXACTO DEL ORIGINAL */
/* =============================================== */

/* Estilos hasta pantallas que llegan a 500px de ancho - Exacto del original */
@media screen and (max-width: 500px) {
    .main__container {
        background-size: cover;
    }

    .main__producto_img_logo {
        display: block;
        width: 70%;
        height: auto;
        margin: auto;
        padding-top: 5%;
        background-size: cover;
    }

    .main__produto_img_autentic,
    .main__producto_img_autentic {
        display: block;
        width: 90%;
        height: auto;
        margin: auto;
        background-size: cover;
    }

    .main__texto_title__txt {
        font-size: 1.3rem;
    }

    .main__texto {
        margin-top: 15%;
    }

    .main__texto_container {
        width: 95%;
        height: 80%;
    }

    .footer__container {
        margin-top: 20%;
    }

    /* Ajustes para vista de carga en móvil */
    #loading-view p {
        font-size: 1rem;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
} 