/* ESTILOS MAESTROS - CEROIS-ECUADOR S.A.S.
   Diseño Responsive y Temas Estacionales
*/

/* 1. VARIABLES GLOBALES (Base Verde Foresta y Palo Rosa) */
:root {
    /* Colores Principales */
    --verde-cerois: #1A531A;
    --verde-hover: #144114;
    --palo-rosa: #D8BFD8;
    --palo-rosa-claro: #F5E6F5;
    
    /* Colores de Interfaz */
    --blanco: #ffffff;
    --gris-oscuro: #333333;
    --gris-suave: #F8F9FA;
    --sombra: rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --transicion: all 0.3s ease;
}

/* 2. RESET Y BASES RESPONSIVE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para rem */
}

body {
    background-color: var(--blanco);
    color: var(--gris-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 3. CONTENEDORES MAESTROS */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* 4. COMPONENTES REUTILIZABLES */

/* Grilla adaptable (2 columnas en PC, 1 en móvil) */
.grid-adaptable {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

/* Botones con efecto responsive */
.btn-cerois {
    background-color: var(--verde-cerois);
    color: var(--blanco) !important;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-cerois:hover {
    background-color: var(--verde-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 83, 26, 0.2);
}

.btn-secundario {
    background-color: var(--palo-rosa);
    color: var(--verde-cerois) !important;
}

/* Títulos con el distintivo de la marca */
h2 {
    color: var(--verde-cerois);
    font-size: 2.2rem;
    margin-bottom: 20px;
    border-left: 6px solid var(--palo-rosa);
    padding-left: 15px;
}

/* 5. SPLASH SCREEN (Efecto de carga) */
#splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--blanco);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
    transition: opacity 1s ease-out, visibility 1s;
}

#splash-screen img {
    width: 280px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.fade-out { opacity: 0; visibility: hidden; }

/* 6. NAVEGACIÓN RESPONSIVE */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--blanco);
    box-shadow: 0 2px 15px var(--sombra);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-nav img {
    height: 55px;
}

.slogan-nav {
    border-left: 2px solid var(--palo-rosa);
    padding-left: 15px;
    color: var(--verde-cerois);
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu { display: flex; align-items: center; }
.menu a {
    text-decoration: none;
    color: var(--gris-oscuro);
    margin-left: 25px;
    transition: var(--transicion);
    font-size: 0.95rem;
}

.menu a:hover { color: var(--verde-cerois); }

/* 7. MEDIA QUERIES (Ajustes para móviles y tablets) */

/* Tablets y Laptops pequeñas */
@media (max-width: 992px) {
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }
}

/* Celulares (Menú se adapta) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .brand-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        margin-bottom: 15px;
    }

    .slogan-nav {
        border-left: none;
        padding-left: 0;
        font-size: 0.75rem;
    }

    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu a {
        margin: 5px 10px;
        font-size: 0.85rem;
    }

    .btn-cerois {
        width: 100%;
        margin-top: 10px;
    }

    section { padding: 50px 0; }
}

/* Footer adaptable */
footer {
    background-color: #222;
    color: var(--blanco);
    padding: 40px 5%;
    text-align: center;
    font-size: 0.9rem;
}