/* ======== CONFIGURACIÓN GENERAL Y VARIABLES ======== */
:root {
    --color-primary-red: #D32F2F;
    --color-accent-orange: #F57C00;
    --color-accent-yellow: #FFC107;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-light-gray: #f8f9fa;
    --color-white: #ffffff;
    
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style-type: none;
}

/* ======== HEADER ======== */
.header-top {
    padding: 8px 0;
    font-size: 0.8rem;
    background-color: var(--color-dark);
    color: var(--color-light-gray);
}

.header-top ul {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.header-top a:hover {
    color: var(--color-accent-yellow);
}

.header-top i {
    margin-right: 4px;
}

.header-main {
    background-color: var(--color-white);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Estilos para el Menú Móvil */
.main-nav {
    display: none; /* Oculto en móvil */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 15px;
}
.main-nav.is-open {
    display: block; /* Se muestra con JS */
}
.main-nav ul {
    flex-direction: column;
}
.main-nav li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.main-nav li:last-child {
    border-bottom: none;
}
.main-nav a {
    padding: 10px 5px;
    display: block;
    font-weight: 700;
}

.dropdown-menu { display: none; } /* Ocultar submenús en móvil por simplicidad inicial */

.search-bar { display: none; } /* Oculto en móvil */

.mobile-menu-toggle {
    display: block; /* Visible en móvil */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
}

/* ======== HERO SLIDER ======== */
.hero-slider {
    height: 500px;
    position: relative;
}
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.slide-content {
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    z-index: 10;
}
.slide-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
}
.slide-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--color-accent-yellow);
    --swiper-navigation-size: 30px; /* Tamaño de flechas en móvil */
}
.swiper-pagination-bullet-active {
    background: var(--color-accent-yellow);
}


/* ======== FEATURES ======== */
.features {
    padding: 60px 0;
}
.features .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.feature-card {
    background-color: var(--color-white);
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}
.feature-card i {
    font-size: 3rem;
    color: var(--color-primary-red);
    margin-bottom: 20px;
}

/* ======== FOOTER ======== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-gray);
    padding: 40px 0;
    text-align: center;
}
.site-footer a {
    color: var(--color-accent-yellow);
    font-weight: 700;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* ======== ANIMACIONES (Sin cambios) ======== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.4s; }


/* ======== MEDIA QUERIES PARA DESKTOP (Pantallas más grandes) ======== */
@media (min-width: 992px) {
    .logo img {
        height: 50px;
    }
    .mobile-menu-toggle {
        display: none; /* Ocultar botón de menú */
    }
    .main-nav {
        display: block; /* Mostrar menú principal */
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
    }
    .main-nav ul {
        flex-direction: row;
        gap: 30px;
    }
    .main-nav li {
        margin-bottom: 0;
        border-bottom: none;
    }
    .search-bar {
        display: flex; /* Mostrar barra de búsqueda */
    }
    .dropdown {
        position: relative;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-white);
        border: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        min-width: 200px;
        z-index: 1001;
    }
    .hero-slider {
        height: 600px;
    }
    .slide-content {
        text-align: left;
        margin-left: 5%;
        max-width: 600px;
    }
    .slide-content h1 {
        font-size: 3rem;
    }
    .slide-content p {
        font-size: 1.2rem;
    }
    .features .container {
        grid-template-columns: repeat(3, 1fr);
    }
}