/* --- VARIABLES Y RESET --- */
:root {
    --primary-red: #cc151a;    /* Rojo Intenso */
    --accent-orange: #ed8464;  /* Tono Salmón/Naranja */
    --shadow-brand: #871713;   /* Sombra profunda */
    --brand-gradient: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-orange) 100%);
    
    --dark-color: #1a1a1a;
    --light-color: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

/* --- UTILIDADES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary { color: var(--primary-red); }

.btn-primary {
    display: inline-block;
    background: var(--brand-gradient);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-brand); 
}

/* --- HEADER --- */
.header {
    background: var(--brand-gradient);
    box-shadow: 0 4px 15px rgba(135, 23, 19, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

/* Estilo de los enlaces normales (Inicio, Quiénes somos...) */
.nav-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
}

/* Efecto al pasar el mouse sobre los enlaces */
.nav-list a:hover { 
    color: var(--white); 
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Subrayado animado al pasar el mouse (Toque elegante) */
.nav-list a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
    margin-top: 5px;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list .btn-nav { 
    background-color: var(--white);
    color: var(--primary-red) !important;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-list .btn-nav::after {
    display: none; 
}

.nav-list .btn-nav:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: var(--shadow-brand) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* --- HERO SECTION --- */
.hero-slider {
    height: 90vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
}

/* --- SECCIÓN PRODUCTO --- */

.text-left { text-align: left; }

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-image {
    display: flex;
    justify-content: center;
    order: 1;
}

.product-details {
    order: 2;
}

.product-details .section-title {
    text-align: left;
    margin-bottom: 5px;
}

.product-details .divider {
    margin: 0 0 30px 0; 
}

.lead-text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.icon-product {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

/* --- ESTILOS FICHA TÉCNICA (PRODUCTO) --- */
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-orange);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ddd;
}

/* --- TABLAS PERSONALIZADAS --- */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.custom-table thead {
    background: var(--primary-red);
    color: #fff;
}

.custom-table th, .custom-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.custom-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.custom-table tbody tr:hover {
    background-color: #fff5f5;
}

/* --- VARIEDADES --- */
.varieties-box {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.varieties-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.variety-item {
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.variety-item:hover {
    background: var(--accent-orange);
    color: #fff;
}

@media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image {
        order: 2; 
    }

    .product-details {
        order: 1; 
    }

    .product-details .section-title,
    .product-details .divider {
        text-align: center;
    }
}

/* --- SECCIÓN NOSOTROS --- */
.section { padding: 80px 0; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto 40px auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 10px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.rounded-shadow {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.rounded-shadow:hover {
    transform: scale(1.02);
}

/* --- SECCIÓN IDENTIDAD Y VALORES --- */
.bg-light {
    background-color: #f9f9f9;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    text-align: left;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-feature, .card-icon {
    font-size: 1.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-red); 
}

.feature-item p {
    margin: 0;
    font-weight: 500;
}

.mv-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.card-mv {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-red);
}

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

.card-mv h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.commitment-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.commitment-box h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.commitment-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.commitment-list li {
    background: var(--light-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .mv-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SECCIONES PARALLAX --- */
.parallax-banner {
    height: 400px; 

    /* MAGIA DEL PARALLAX */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.6); 
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-text {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.2;
}

.mt-3 { margin-top: 20px; }

/* RESPONSIVE PARA PARALLAX */
@media (max-width: 768px) {
    .parallax-banner {
        height: 300px;
        background-attachment: scroll;
    }
    
    .parallax-text {
        font-size: 1.8rem; /* Texto más pequeño */
        padding: 0 20px;
    }
}

/* --- FOOTER --- */
.footer {
    background: #222;
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.social-icons {
    margin: 30px 0;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: transform 0.3s, color 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
}

.facebook:hover { color: #1877f2; }
.instagram:hover { color: #c32aa3; }
.tiktok:hover { color: #00f2ea; }

.copyright {
    font-size: 0.9rem;
    color: #888;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp {
    animation: pulse 2s infinite;
}

/* --- RESPONSIVE (Móviles) --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .about-grid, .product-grid, .product-info-grid { grid-template-columns: 1fr; }

    .product-image { order: 1; margin-bottom: 20px; }
    .product-details { order: 2; }
    .product-details .section-title, .product-details .divider { text-align: center; margin: 0 auto 20px auto; }

    /* BOTÓN HAMBURGUESA */
    .menu-toggle {
        display: block;
        color: var(--white);
        font-size: 1.8rem;
    }

    /* ESTILO DEL MENÚ DESPLEGABLE */
    .nav-list {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);

        background: var(--brand-gradient); 

        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        color: var(--white);
        font-weight: 600;
        display: block;
    }

    .nav-list a:hover {
        color: #ffe0b2;
    }

    .nav-list .btn-nav {
        background: var(--white);
        color: var(--primary-red) !important;
        padding: 15px 40px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* --- ESTILOS DE LA NUEVA SECCIÓN VISUAL DEL PRODUCTO --- */

.presentacion-producto-visual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    padding: 30px 0;
}

.galeria-imagenes {
    flex: 1 1 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.imagen-principal img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1;
    position: relative;
    border: 3px solid var(--white);
}

.imagen-secundaria {
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 150px;
    z-index: 2;
}

.imagen-secundaria img {
    width: 100%;
    border-radius: 10px;
    border: 5px solid var(--white); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.info-producto {
    flex: 1 1 400px;
    order: 2;
}

.etiqueta {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.info-producto h3 {
    font-size: 1.8rem;
    margin: 10px 0 15px;
    color: var(--dark-color);
}

.descripcion {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.beneficios {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.beneficios li {
    margin-bottom: 10px;
    font-weight: 500;
}

.beneficios li i {
    margin-right: 10px;
}

.accion-compra {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.precio {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .presentacion-producto-visual {
        flex-direction: column;
        text-align: center;
    }

    .galeria-imagenes {
        order: 1;
        margin-bottom: 30px;
        width: 100%;
        max-width: 400px;
    }
    
    .info-producto {
        order: 2;
        text-align: center;
    }
    
    .imagen-secundaria {
        right: 10%;
        bottom: -5px;
        width: 120px;
    }

    .accion-compra {
        justify-content: center;
    }
}

/* --- TRUCO: CONVERTIR TABLAS EN TARJETAS PARA MÓVIL (a partir de 768px hacia abajo) --- */
@media (max-width: 768px) {
    /* Oculta la cabecera (thead) en móviles */
    .table-responsive .custom-table thead {
        display: none;
    }

    /* Muestra cada fila (tr) como un bloque */
    .table-responsive .custom-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Muestra cada celda (td) como un bloque */
    .table-responsive .custom-table td {
        display: block;
        text-align: left !important;
        border-bottom: 1px solid #eee;
        padding: 10px 15px;
        position: relative;
    }

    /* Oculta el border inferior de la última celda en cada fila */
    .table-responsive .custom-table tr td:last-child {
        border-bottom: 0;
    }

    /* Añade el encabezado (th) como una etiqueta visible antes del contenido de la celda (td) */
    .custom-table td:before {
        /* Aquí usamos el atributo 'data-label' para el encabezado */
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        margin-right: 10px;
        display: block; /* Ocupa su propia línea */
        font-size: 0.8rem;
        color: var(--primary-red);
    }
}