/* --- Estilos Generales y Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
.main-header {
    background-color: #2c3e50; /* Azul oscuro moderno */
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.main-nav li a:hover {
    background-color: #34495e;
    border-radius: 4px;
}


/* --- SECCIÓN PRINCIPAL (HERO) --- */
.hero-section {
    padding: 60px 20px; /* Altura ajustada */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0; 
}


/* --- SECCIÓN DE PRODUCTOS GENERAL --- */
.products-section {
    padding: 60px 20px;
    background-color: #f9f9f9; 
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 50px;
}

.subsection-title {
    font-size: 1.8em;
    color: #555;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- PRODUCTO DESTACADO (HIGHLIGHT) --- */
.product-highlight {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.highlight-image-area {
    flex: 1;
    max-width: 50%;
}

.highlight-info-area {
    flex: 1;
}

.highlight-info-area h3 {
    font-size: 2em;
    color: #007bff;
    margin-top: 5px;
}

.tag-highlight {
    background-color: #ff9900;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- CUADRÍCULAS DE PRODUCTOS: Ajuste de Prioridad con Grid --- */

/* Productos de ALTA prioridad (2 columnas) */
.products-grid-high {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 30px;
    margin-bottom: 50px;
}

/* Productos de BAJA prioridad (3 columnas) */
.products-grid-low {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}


/* --- TARJETAS DE PRODUCTO (CARD) --- */
.product-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    font-size: 1.4em;
    color: #333;
    margin: 10px 0;
}

/* --- CARRUSEL DE IMÁGENES DENTRO DE LA TARJETA --- */
.product-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
    line-height: 0;
}

.slider-image {
    width: 100%;
    height: auto;
    display: none;
}

.slider-image.active {
    display: block;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.slider-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-control.prev {
    left: 5px;
}

.slider-control.next {
    right: 5px;
}

/* --- BOTONES (ACTIONS) --- */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.btn {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.3s;
    flex-grow: 1;
    white-space: nowrap; 
}

/* Botón de Descarga (Primario) */
.btn-primary {
    background-color: #ff5722; 
    color: white;
    border: 1px solid #ff5722;
}

.btn-primary:hover {
    background-color: #e64a19;
}

/* Botones Secundarios (Manual/Video) */
.btn-secondary {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #ddd;
}

/* Botón de WhatsApp */
.btn-whatsapp {
    background-color: #25d366; 
    color: white;
    border: 1px solid #25d366;
    order: -1; 
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

.highlight-actions .btn-large {
    padding: 12px 20px;
    font-size: 1em;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

.main-footer a {
    color: #ff9900;
    text-decoration: none;
}


/* --- RESPONSIVE: Adaptación a Móviles (max-width: 768px) --- */
@media (max-width: 768px) {
    
    /* HEADER Móvil */
    .header-container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 10px;
    }
    .main-nav li a {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    /* HERO Móvil */
    .hero-content h1 {
        font-size: 2em;
    }

    /* PRODUCTOS Móvil */
    .product-highlight {
        flex-direction: column;
    }

    .highlight-image-area,
    .highlight-info-area {
        max-width: 100%;
        flex: none;
    }
    
    /* Cuadrículas apiladas a 1 columna */
    .products-grid-high,
    .products-grid-low {
        grid-template-columns: 1fr;
    }
    
    /* Botones de acción apilados */
    .product-actions {
        flex-direction: column; 
    }
    
    .btn {
        width: 100%;
        margin-bottom: 5px; 
    }

    /* WhatsApp siempre primero en la pila */
    .btn-whatsapp {
        order: -4; 
    }
}