:root {
    --header-bg: #001f3f;
    --header-text: #ffffff;
    --primary: #1e3a8a;
    --secondary: #3b82f6;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --text-very-light: #cbd5e1;
    --section-title: #002b49;

    --overlay-blue-mid-alpha: rgba(0,31,63,0.85);
    --shadow-mid-alpha: rgba(0,0,0,0.5);
    --shadow-light-alpha: rgba(0,0,0,0.2);

    --grad-blue1: #001f3f;
    --grad-blue2: #004488;
    --magenta:#e11d48;
    --purple: #721de1;
    --whatsapp:#25D366;
    --green: #1D6F42;
    --light-red: #f8c6c6;
    --light-green: #dcf8c6;
    --light-purple: #cbc6f8;
    --light-blue: #E3F2FD;

    --foter-text: #001f3f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    margin-bottom: 0;
    height: auto;
    width: 100%;
    display: block;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    height: 100%;
}

.brand img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.nav-link {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--header-text);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-separator {
    color: var(--header-text);
    font-family: "Times New Roman", Times, serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: -3px;
    opacity: 0.8;
}

/*MENU PARA CELULAR*/
.mobile-menu-button,
.mobile-menu {
    display: none;
}

/*FOOTER*/
.main-footer {
    display: block;
    width: 100%;
    padding: 20px;
}

.container-limit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.general-section,
.discover-section,
.news-section
{width:100%;max-width: 1200px;margin:4rem auto;padding:0 20px;}
.general-subsection{max-width: 800px; margin: 0 auto; text-align: center;}
.general-subsection h1{font-size: 3.5rem; margin-bottom: 1em;}
.general-subsection h2{margin-bottom: 1em;}
.general-subsection p{line-height: 1.6;}


.btn-action{display:flex;align-items:center;padding:20px;border-radius:12px;text-decoration:none;transition:all 0.3s ease;border:1px solid var(--text-very-light);box-shadow:0 4px 6px var(--shadow-light-alpha);position:relative;overflow:hidden;}
.btn-icon-wrapper{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:10px;margin-right:20px;font-size:1.5rem;flex-shrink:0;}
.btn-text{flex:1;display:flex;flex-direction:column;}
.btn-text span{font-size:0.85rem;color:var(--text-gray);margin-bottom:2px;}
.btn-text strong{font-size:1.2rem;font-weight:800;color:var(--primary);}
.arrow-icon{font-size:1.2rem;color:var(--text-very-light);transition:transform 0.3s,color 0.3s;}

.btn-whatsapp .btn-icon-wrapper{background-color:var(--light-green);color:var(--whatsapp);}
.btn-whatsapp:hover{border-color:var(--whatsapp);transform:translateY(-4px);box-shadow:0 10px 20px rgba(37,211,102,0.2);}
.btn-whatsapp .btn-text strong{color:var(--whatsapp);}
.btn-whatsapp:hover .arrow-icon{color:var(--whatsapp);transform:translateX(5px);}

.btn-pdf .btn-icon-wrapper{background-color:var(--light-red);color:var(--magenta);}
.btn-pdf .btn-text strong{color:var(--magenta);}
.btn-pdf:hover .arrow-icon{color:var(--magenta);transform:translateX(5px);}

.btn-forms .btn-icon-wrapper{background-color:var(--light-purple);color:var(--purple);}
.btn-forms .btn-text strong{color:var(--purple);}
.btn-forms:hover .arrow-icon{color:var(--purple);transform:translateX(5px);}


/*MODAL*/

.modal-content {
    position: relative;
    background-color: var(--bg-light, #f8fafc);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

/*RESPONSIVE*/
@media (max-width: 1024px) {
    .discover-section,.general-section,.news-section{width:100%;margin:4rem 0;padding:0 2rem;box-sizing:border-box;}
}

@media (max-width:900px) {
    .header-nav{display:none;}
    .mobile-menu-button{display:block;background:transparent;border:none;color:var(--header-text);font-size:1.8rem;cursor:pointer;padding:5px;margin-left:auto;}
    .mobile-menu{position:fixed;top:0;left:0;width:100%;height:100vh;background-color:rgba(0,31,63,0.98);z-index:3000;display:none;flex-direction:column;align-items:center;justify-content:center;}
    .mobile-menu-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;}
    .mobile-menu.active{display:flex;animation:fadeIn 0.3s ease;}
    .close-menu-button{position:absolute;top:20px;right:30px;background:none;border:none;color:var(--header-text);font-size:3rem;cursor:pointer;line-height:1;}
    .mobile-nav-list{display:flex;flex-direction:column;gap:25px;text-align:center;}
    .mobile-link{color:var(--header-text);font-size:1.5rem;font-weight:600;text-decoration:none;transition:color 0.3s;}
    .mobile-link:hover{color:#3b82f6;}

    .discover-section,.general-section,.news-section{width:100%;margin:4rem 0;padding:0 1rem;}
    .general-subsection h1{font-size: 3.5rem; margin-bottom: 1em;}
    .general-subsection h2{margin-bottom: 1em;}
    .general-subsection p{line-height: 1.6;}
}

@media (max-width:768px) {
    .main-footer .container-limit {
        flex-direction:column;
        align-items:center !important; /* Override inline style */
        gap:30px;
        text-align: center;
    }
}


/*KEYFRAMES*/
@keyframes fadeIn {
    from{opacity:0;}
    to{opacity:1;}
}


/* =========================================
   SPLASH SCREEN DE CARGA
========================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light, #f4f6f9); /* Fondo sólido para tapar todo */
    z-index: 99999; /* Por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Animación de latido suave para el logo */
.splash-logo-pulse {
    width: 180px; /* Ajusta este tamaño según las proporciones de tu logo */
    animation: splashPulse 1.5s infinite ease-in-out;
}

@keyframes splashPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Clase que inyectaremos desde JS para ocultar la pantalla */
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}