/* landing.css - Estilos específicos de la Landing Page (Index) */

/* ------------------------------------------------*/
/*         1. SECCIÓN HERO                */
/* ------------------------------------------------*/

/*  .hero: Contenedor Principal del Hero  */
.hero {
    position: relative; 
    text-align: center; 
    padding: 120px 20px; 
    background: url("../img/landing1.jpg") no-repeat center center/cover; 
    color: #fff; 
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    z-index: 1; 
}

/* -- .hero::before: Capa de color/opacidad sobre la imagen -- */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(124, 188, 230, 0.687); 
    z-index: -1; 
}

/* -- .hero h1: Título Principal del Hero -- */
.hero h1 {
    font-size: 3rem; 
    font-weight: 900; 
    line-height: 1.1; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: #fff; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); 
}

/* -- .hero p: Párrafo (oculto en esta configuración) -- */
.hero p {
    display: none; 
}

.btn-hero {
    margin-top: 40px; 
    margin-bottom: 0; 
}



/* ------------------------------------------------*/
/* 2. AJUSTES RESPONSIVE                           */
/* ------------------------------------------------*/
/* Ajustes para dispositivos con un ancho máximo de 768px */
@media (max-width: 768px) {
    /* Ajuste del Hero */
    .hero h1 {
        font-size: 2rem;
    }
    
     /* AJUSTE DE BEST SELLERS  */
    .products {
        flex-wrap: wrap; 
        justify-content: space-between; 
        max-width: 100%;
        margin: 20px 0;
        padding: 0 10px;
        gap: 0; 
    }
    
    .product {
        flex: 0 0 calc(50% - 10px); 
        height: auto; 
        margin-bottom: 20px;
    }
    
    .product .product-info {
        padding: 5px; 
    }

    .product .product-info .product-title {
        font-size: 0.85rem; 
    }
    .product .product-info .product-price {
        font-size: 0.75rem;
    }

    /* Ajuste de About Section */
    .about-flex-container {
        flex-direction: column; 
    }

    .about-image {
        flex: auto;
        aspect-ratio: 16 / 9; 
        width: 100%; 
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-content {
        flex: auto;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .about-content .btn {
        align-self: center;
    }
}



/* ------------------------------------------------*/
/* 3. SECCIÓN BEST SELLERS                         */
/* ------------------------------------------------*/

/* -- .best-sellers: Contenedor principal -- */
.best-sellers {
    text-align: center;
    padding: 100px 90px;
}

/* -- .best-sellers h2: Título de la sección -- */
.best-sellers h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* -- .products: Contenedor de la cuadrícula de productos -- */
.products {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;  
    overflow-x: auto;  
    gap: 20px;
    max-width: 1200px; 
    margin: 20px auto;
    padding: 0 20px; 
}

/* -- .product: Tarjeta de Producto individual -- */
.product {
    flex: 0 0 calc(25% - 15px); 
    height: 300px; 
    position: relative;
    overflow: hidden;
    display: flex; 
    flex-direction: row; 
    text-decoration: none; 
    color: #333; 
    background: white; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out; 
}

.product-image {
    flex: 2; 
    height: 100%;
    background-size: cover; 
    background-position: center;
}

.product-info {
    flex: 1; 
    background: #EFCEEA; 
    height: 100%;
    
    /* Centrar texto verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

/* -- .product-title (h3 dentro del .product-info) -- */
.product-info .product-title {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    margin-top: 0;
}

/* Aplicar imagen de fondo  */
.product-1 .product-image {
    background: url("../img/productos/1.png") no-repeat center center/cover;
}
.product-2 .product-image{
    background: url("../img/productos/2.png") no-repeat center center/cover;
}
.product-3 .product-image{
    background: url("../img/productos/3.png") no-repeat center center/cover;
}
.product-4 .product-image{
    background: url("../img/productos/4.png") no-repeat center center/cover;
}


/* --- ESTILOS DE HOVER (Animación y Color) --- */
/*   Animación del Recuadro */
.product:hover {
    transform: translateY(-5px) translateX(5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
}

/* --- ESTILOS DEL TEXTO DENTRO DEL PRODUCTO --- */
/* Contenedor del Título y Precio (aseguramos posición sobre la capa) */
.product a, .product-price {
    position: relative;
    z-index: 2; 
}

/* -- .product a: Enlace del producto (título) -- */
.product a {
    text-decoration: none;
    color: #fff; 
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- .product-price: Texto de Precio/Descripción --- */
.product-price {
    font-size: 0.9rem;
    color: #fff; 
    font-weight: 400;
    margin-top: 5px;
}


/* ------------------------------------------------*/
/* 4. SECCIÓN QUIÉNES SOMOS                       */
/* ------------------------------------------------*/
.about {
    background: #c8b46c; 
    padding: 0; 
    display: flex;
    align-items: stretch;
}

.about-flex-container {
    display: flex;
    flex-direction: row; 
    align-items: stretch;
    margin: 0; 
    width: 100%; 
    height: 100%; 
}

.about-image {
    flex: 1.2;
    overflow: hidden; 
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
}

.about-content {
    flex: 1;
    padding: 3rem 4rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #ffffff;
}

.about-content .btn {
    align-self: flex-start;
}
