/*
Theme Name: TiendaOnline
Theme URI: https://www.crispadev.com.py/
Template: astra
Author: Sixinio Cristobal
Author URI: https://www.sixiniocristobal.com/
Description: Themes para tienda online con las funciones de los productos ya predefinidos
Version: 4.12.5.1774101967
Updated: 2026-03-21 11:06:07

*/


/* ==========================================
   ESTILOS MODERNOS Y PROFESIONALES (MARCA)
   ========================================== */
/* Color de la marca extraído del logo: #441e17 */

/* Tarjetas de Producto en el Catálogo */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding-bottom: 20px;
    border: 1px solid #f0f0f0;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.woocommerce ul.products li.product img {
    border-radius: 12px 12px 0 0;
    margin-bottom: 15px !important;
}
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding: 0 15px;
}
.woocommerce ul.products li.product .price {
    color: #441e17 !important;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0 15px;
    display: block;
    margin-bottom: 15px;
}

/* Campos de formulario y Cantidad */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce .quantity .qty {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}
.woocommerce .quantity .qty:focus {
    border-color: #441e17;
    outline: none;
}

/* Diseño del carrito */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* Botón de WhatsApp en el loop */
.btn-pedir-wpp-loop {
    display: block;
    background-color: #25D366;
    color: #fff !important;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin: 0 15px;
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
    width: calc(100% - 30px);
}
.btn-pedir-wpp-loop:hover {
    background-color: #128C7E;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ==========================================
   ESTILOS DE LA PORTADA (FRONT-PAGE)
   ========================================== */

/* Secciones Generales */
.tienda-about-section,
.tienda-categories-section,
.tienda-products-section {
    padding: 60px 20px;
}

.tienda-categories-section {
    background-color: #f9f9f9;
}

.tienda-products-section {
    background-color: #ffffff;
}

/* Container Principal Tienda */
.tienda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block; /* Forzar bloque en caso de que padres sean flex */
    clear: both;
}

/* Forzar a ast-container a comportarse como bloque en nuestras secciones personalizadas */
.tienda-about-section .ast-container,
.tienda-categories-section .ast-container,
.tienda-products-section .ast-container {
    display: block !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================
   HERO PORTADA (FULL SCREEN)
   ========================================== */
.tienda-hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda la pantalla */
    /* Imagen de alta calidad libre de derechos (Unsplash) */
    background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; /* Efecto Parallax elegante */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -20px; /* Ajuste si hay margen del header */
}

.tienda-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Oscurece la foto para leer el texto */
    z-index: 1;
}

.tienda-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
}

.tienda-hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: #fff !important;
}

.tienda-hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    color: #f1f1f1 !important;
}

.tienda-hero-btn {
    display: inline-block;
    background-color: #441e17; /* Color de tu maca */
    color: #fff !important;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 2px solid #441e17;
}
.tienda-hero-btn:hover {
    background-color: transparent;
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .tienda-hero-content h1 { font-size: 2.8rem; }
    .tienda-hero-content p { font-size: 1.2rem; }
    .tienda-hero-section { height: 80vh; background-attachment: scroll; }
}

/* Forzar que los títulos sean 100% de ancho del bloque */
.section-title {
    display: block !important;
    width: 100% !important;
    text-align: center;
    color: #441e17;
    margin: 0 auto 40px auto;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    clear: both;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #25D366; /* Toque verde WhatsApp */
    border-radius: 2px;
}

/* Bloque Quiénes Somos */
.tienda-about-section {
    background-color: #ffffff;
    text-align: center;
}
.about-description {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.15rem;
    line-height: 1.8;
}
.about-description p {
    margin-bottom: 20px;
}

/* Estilo para las marcas */

.brands-slider {
    width: 100%;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    align-items: center;
    width: max-content; /* Se ajusta automáticamente al contenido */
    animation: scroll 25s linear infinite;
}

.brands-track img {
    height: 60px;
    width: auto;
    margin: 0 50px; /* Aquí controlas el espacio (50px a la izquierda y derecha) */
    filter: grayscale(100%);
    transition: all 0.3s ease;
    object-fit: contain; /* Evita que se deformen si tienen distintos tamaños */
}

.brands-track img:hover {
    filter: grayscale(0%) !important;
}

