/* --- ESTILOS BASE Y VARIABLES --- */
:root {
    --primary-color: #4CAF50; /* Verde principal */
    --secondary-color: #FFC107; /* Ámbar para contraste */
    --text-color: #333;
    --light-bg: #F8F8F8;
    --dark-bg: #2C3E50; /* Fondo oscuro para footer */
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

section {
    padding: 60px 20px;
    min-height: 100vh; /* Para que ocupen toda la altura */
}

/* --- ENCABEZADO Y MENÚ HAMBURGUESA --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--dark-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.hamburger {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all var(--transition-speed) ease-in-out;
    border-radius: 5px;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: white;
    padding: 10px 15px;
    display: block;
    transition: background-color var(--transition-speed);
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- SECCIÓN 1: SLIDER --- */
.slider-section {
    padding: 0;
    overflow: hidden;
    position: relative;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh; /* Altura ajustable */
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen horizontal (3:14) se vea bien */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

/* --- SECCIÓN 2: ACTIVIDAD (Con ID: actividad) --- */
.section-actividad {
    background-color: var(--secondary-color); /* Color que contrasta (Ámbar) */
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-wrapper {
    display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 40px;
}

.image-container {
    flex: 1;
    text-align: center;
}

.image-container img {
    width: 250px;
    height: 250px;
    border-radius: 50%; /* Imagen circular */
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.text-container {
    flex: 2;
    text-align: left;
}

.text-container h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

/* --- SECCIÓN 3: CONTACTO (Con ID: contacto) --- */
.section-contacto {
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.whatsapp-button {
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    padding: 15px 30px;
    border-radius: 12px; /* Border radius elegante */
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.requisitos-text {
    margin-top: 30px;
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- SECCIÓN 4: NOVEDADES (Con ID: novedades) --- */
.section-novedades {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.section-novedades h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan en pantallas pequeñas */
}

.card {
    background-color: white;
    color: var(--text-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 300px; /* Ancho fijo para escritorio */
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px; /* Altura fija para imagen cuadrada */
    object-fit: cover;
}

.card-text {
    padding: 15px;
    font-weight: bold;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px 20px 10px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 30px;
    gap: 30px;
}

.footer-section {
    flex-basis: 250px; /* Ancho base para las secciones del footer */
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 8px;
    transition: color var(--transition-speed);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* --- RESPONSIVIDAD (Media Queries) --- */

/* Pantallas pequeñas (Móviles) */
@media (max-width: 768px) {
    
    /* MENÚ HAMBURGUESA */
    .hamburger {
        display: block; /* Mostrar botón hamburguesa */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        height: 100%;
        background-color: var(--dark-bg);
        transform: translateX(100%); /* Ocultar fuera de la vista */
        transition: transform 0.4s ease-in-out;
        padding-top: 80px; /* Espacio para el header */
    }

    .main-nav.open {
        transform: translateX(0); /* Mostrar menú */
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Animación del icono de la hamburguesa */
    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* SECCIÓN 2: ACTIVIDAD (Circular arriba, texto abajo) */
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .text-container {
        text-align: center;
        margin-top: 20px;
    }

    /* SECCIÓN 4: NOVEDADES (Tarjetas verticales) */
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%; /* Ancho más adaptable en móvil */
        max-width: 350px;
    }

    /* FOOTER (Secciones en columna) */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
    }
    
    .social-links {
        margin-top: 10px;
    }
}