
/* 1. RESET Y BASES PROFESIONALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- ESTILOS GENERALES TENDERINI --- */
:root {
    --verde-tenderini: #28a745; /* El color verde de tu marca */
    --gris-oscuro: #333333;
    --gris-suave: #888888;
}

/* --- HEADER Y LOGO --- */
.contenedor-superior-tienda {
    display: flex;
    justify-content: space-between; /* Separa logo a la izquierda y servicios a la derecha */
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); /* Sutil sombra inferior */
    position: relative;
    z-index: 100;
}

.img-logo-tienda {
    height: clamp(60px, 8vw, 90px); /* Tamaño responsive para el logo */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.img-logo-tienda:hover {
    transform: scale(1.03); /* Pequeño efecto al pasar el mouse */
}

/* --- BLOQUE DE SERVICIOS (AGRUPADOR DE ICONOS) --- */
.bloque-servicios {
    display: flex;
    align-items: center;
    gap: 25px; /* Espaciado generoso entre los items en PC */
}

/* --- ESTILOS DE LOS ITEMS DE SERVICIO --- */
.servicio-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el icono y el bloque de texto */
}

/* Iconos circulares con el verde de Tenderini */
.servicio-item i {
    color: var(--verde-tenderini);
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: rgba(40, 167, 69, 0.1); /* Fondo verde muy suave */
    border-radius: 50%; /* Hace el fondo circular */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Bloque de texto del item */
.texto-item {
    display: flex;
    flex-direction: column; /* Apila título y subtítulo verticalmente */
}

.titulo-item {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gris-oscuro);
    text-transform: uppercase; /* Todo en mayúsculas */
    letter-spacing: 0.5px;
}

.subtitulo-item {
    font-size: 0.8rem;
    color: var(--gris-suave);
    font-weight: 400;
    margin-top: -2px;
}

/* --- RESPONSIVE / ADAPTACIÓN A MÓVILES --- */
@media (max-width: 900px) {
    .bloque-servicios {
        gap: 15px; /* Reduce espacio en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .contenedor-superior-tienda {
        flex-direction: column; /* Apila logo arriba e iconos abajo */
        padding: 15px 5%;
        gap: 15px;
        text-align: center;
    }

    .img-logo-tienda {
        height: 70px; /* Tamaño fijo en móvil para estabilidad */
    }

    .bloque-servicios {
        width: 100%;
        justify-content: space-around; /* Distribuye los iconos en móvil */
        gap: 10px;
        border-top: 1px solid #eee; /* Línea divisoria suave */
        padding-top: 15px;
    }

    .servicio-item {
        flex-direction: column; /* Icono arriba, texto abajo en móvil */
        gap: 5px;
        flex: 1; /* Cada item ocupa el mismo espacio */
    }

    .servicio-item i {
        font-size: 1.1rem;
        width: 35px;
        height: 35px;
    }

    .titulo-item {
        font-size: 0.8rem; /* Texto más pequeño en móvil */
    }

    .subtitulo-item {
        display: none; /* Oculta el subtítulo en móvil para ahorrar espacio */
    }
}
/* --- TERMINO DE HEADER --- */

/* --- BLOQUE DE SERVICIOS --- */
.bloque-servicios {
    display: flex;
    align-items: center;
    gap: 25px;
}

.servicio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
}

.servicio-item i {
    color: #28a745; /* Verde Tenderini */
    font-size: 1.2rem;
}

.clickable { cursor: pointer; transition: opacity 0.2s; }
.clickable:hover { opacity: 0.7; }

.texto-rojo { color: #e74c3c !important; }
.divisor-v { width: 1px; height: 25px; background: #eee; }

/* --- MODAL Y FORMULARIO --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.card-flotante-elegante {
    background: white;
    width: 50%;
    max-width: 400px;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eee;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 12px;
}

.input-wrapper i {
    color: #28a745;
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.input-wrapper input, .input-wrapper textarea {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.btn-whatsapp-final {
    background: linear-gradient(135deg, #28a745 0%, #1b5e20 100%);
    color: white;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-whatsapp-final:hover { transform: scale(1.02); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .contenedor-superior-tienda { flex-direction: column; gap: 15px; text-align: center; }
    .bloque-servicios { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .divisor-v { display: none; }
}

    .img-logo-tienda {
        height: 100px; /* Tamaño medio para tablets */
    }

    .bloque-servicios {
        width: 100%;
        justify-content: space-around;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
}

/* TELÉFONOS MÓVILES */
@media (max-width: 480px) {
    .img-logo-tienda {
        height: 85px; /* Logo legible pero compacto */
    }

    .bloque-servicios {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Los divide en 2 columnas */
        gap: 15px;
        padding: 10px;
    }

    .servicio-item {
        justify-content: center;
        font-size: 0.85rem;
    }

    .divisor-v { display: none; }

    /* Ajuste Modal en móvil */
    .card-flotante-elegante {
        padding: 35px 20px;
        border-radius: 30px 30px 0 0; /* Estilo 'sheet' de iPhone */
        position: fixed;
        bottom: 0;
        max-width: 100%;
        animation: deslizarSubir 0.5s ease-out;
    }
}

/* Animación especial para móviles (sube desde abajo) */
@keyframes deslizarSubir {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* --- Estilos para la caluga horizontal (sin cambios) --- */
.caluga-horizontal {
    display: flex;
    gap: 15px;
    background: #f8f8f8;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    align-items: center; /* Centra los elementos verticalmente */
}

.item-icono { text-align: center; }
.item-icono i { color: #28a745; font-size: 22px; display: block; margin-bottom: 5px; } /* Espacio inferior para el icono */
.item-icono span { font-size: 11px; font-weight: bold; color: #555; display: block; } /* Asegura que el texto sea un bloque */
/* 3. BARRA VERDE Y MENÚ PC */
.barra-verde {
    background-color: #28a745;
    height: 65px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ajuste del contenedor de la barra */
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between; /* ¡CLAVE! Separa izquierda de derecha */
    align-items: center;
    padding: 0 20px;
}

/* Selector versión Navbar */
.entrega-contenedor-nav {
    position: relative;
    z-index: 1001;
}

.btn-desplegable-nav {
    background: rgba(255, 255, 255, 0.15); /* Blanco semi-transparente */
    border: 1px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-desplegable-nav:hover {
    background: white;
    color: #28a745;
}

/* El menú que cae (se mantiene similar al anterior) */
.sub-menu-entrega {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    min-width: 260px;
}

.sub-menu-entrega.show {
    display: block !important;
}

.input-nav {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.menu-items {
    display: flex;
    list-style: none;
}

.menu-items li { margin: 0 25px; }

.menu-items a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

/* BOTONES DE CONTROL (Ocultos en PC) */
#check-menu { display: none; }
.btn-hamburguesa { display: none; }
.btn-cerrar { display: none; }

/* 4. CINTA MARQUEE (Verde Transparente) */
.cinta-informativa {
    background-color: rgba(40, 167, 69, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-marquee 40s linear infinite;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 5. RESPONSIVIDAD (Celular) */
@media (max-width: 900px) {
    .contenedor-superior { flex-direction: column; padding: 15px; }

    /* Recuperar tamaño e impacto visual de las fotos */
    .seccion-slider {
        max-width: 95%;
        margin: 10px auto;
    }

    .slider img {
        height: 220px; /* Fotos más grandes para que luzcan los productos */
        object-fit: cover; /* Llenan mejor el espacio en móvil */
    }
    
    /* Ocultar el checkbox por completo */
#check-menu {
    display: none;
}

.btn-hamburguesa {
    display: block;
    color: white;
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 15px; /* Ajusta según tu header */
    border: 1px solid rgba(255,255,255,0.4);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
}

/* MENÚ LATERAL (Drawer) */
.menu-items {
    position: fixed;
    top: 0;
    right: -100%; /* Escondido a la derecha */
    width: 280px;
    height: 100vh;
    background-color: #1a5928; /* Verde profesional */
    display: flex; /* Necesario para alinear la X */
    flex-direction: column;
    padding: 20px;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1001;
    border-radius: 30px 0 0 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    list-style: none;
}

/* Botón X de cierre (Corregido) */
.btn-cerrar {
    display: flex;
    justify-content: flex-end; /* Mueve la X a la derecha */
    color: white;
    font-size: 35px; /* Más grande para que sea fácil de tocar */
    margin-bottom: 20px;
    cursor: pointer;
    width: 100%;
}

/* Mostrar menú al marcar el checkbox */
#check-menu:checked ~ .menu-items {
    right: 0;
}

.menu-items li {
    margin: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    width: 100%;
}

.menu-items li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: block;
}

/* Efecto Hover en links */
.menu-items li a:hover {
    color: #8ec045; /* Verde clarito palta */
    padding-left: 10px;
    transition: 0.3s;
}

    /* Caluga ajustada */
    .caluga-horizontal { 
        width: 95%; 
        margin: 0 auto;
        padding: 15px;
    }
}

/* --- NUEVO BLOQUE DE ICONOS DE VENTAS --- */
.bloque-servicios-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white; /* Para que resalte sobre el fondo verde */
}

.servicio-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.servicio-nav-item i {
    font-size: 1.4rem;
    color: #ffffff; /* Iconos blancos elegantes */
}

.texto-servicio {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.texto-servicio strong {
    font-size: 15px;
}

.texto-servicio span {
    font-size: 11px;
    opacity: 0.9;
}

/* Divisor sutil entre iconos */
.divisor-v-nav {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
}

/* Efecto para el item clickeable (Ventas) */
.servicio-nav-item.clickable {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    transition: 0.3s;
}

.servicio-nav-item.clickable:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .bloque-servicios-nav {
        display: none; /* Se oculta en móviles para no amontonar el logo */
    }
}



/* =========================================
   ESTILOS ADAPTADOS PARA EL HERO SLIDER
   ========================================= */
/* =========================================
   ESTILOS BASE (PC y General)
   ========================================= */
.hero-tenderini {
    position: relative;
    height: 75vh;
    min-height: 500px;
    background: #ffffff;
    display: flex;
    align-items: center; 
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    padding: 0 5%;
    align-items: center;
}

.hero-content {
    text-align: left;
    color: white;
}

.slider-textos {
    min-height: 120px;
    display: flex;
    align-items: center;
}

.texto-slide {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    display: none;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
}

.texto-slide.active { 
    display: block; 
    animation: fadeInRight 0.8s ease forwards; 
}

.hero-content p {
    font-size: 1.3rem;
    margin: 25px 0;
    max-width: 500px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.btn-hero-buscar {
    display: inline-block;
    background-color: #2e7d32;
    color: white !important;
    padding: 18px 45px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* IMAGEN CON ZOOM CONTROLADO */
.foto-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 85% center; /* Enfoca a la mujer a la derecha en PC */
    z-index: 1;
    animation: slowZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 30%, transparent 75%);
    z-index: 2;
}

/* =========================================
   RESPONSIVIDAD (CORRECCIÓN TOTAL DE ROSTRO)
   ========================================= */

@media (max-width: 768px) {
    .hero-tenderini {
        height: 85vh; 
        align-items: flex-end; /* El texto baja para liberar el centro */
        padding-bottom: 60px; /* Espacio desde el borde inferior */
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 10%; /* Más margen lateral para estrechar el texto */
    }

    .hero-content {
        text-align: left;
        max-width: 85%; /* No permite que el texto cruce toda la pantalla */
    }

    .slider-textos {
        min-height: 90px;
    }

    .texto-slide {
        font-size: 1.9rem; /* Tamaño más equilibrado para móvil */
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 260px; /* Limita el ancho del párrafo para no tapar el fondo */
    }

    /* AJUSTE DE IMAGEN PARA MÓVIL */
    .foto-zoom {
        object-position: 82% center; /* Mueve el rostro más al borde derecho libre */
        filter: brightness(0.65); /* Oscurece para mejorar contraste del texto */
    }

    /* OVERLAY MÓVIL (Sombreado desde la base) */
    .hero-overlay {
        /* Gradiente vertical: asegura lectura abajo, claridad arriba */
        background: linear-gradient(to top, rgba(0,0,0,0.9) 25%, rgba(0,0,0,0.3) 60%, transparent 100%);
    }

    .btn-hero-buscar {
        padding: 14px 28px;
        font-size: 0.85rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .texto-slide {
        font-size: 1.7rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        max-width: 220px;
    }
}

/* Animaciones */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); } 
}
/* =========================================
   FIN  ESTILOS  HERO TENDERINI (BANNER)
   ========================================= */


   .seccion-slogan {
    padding: 40px 5%; /* Separa el texto de los bordes en celular */
    background-color: #f9f9f9;
    text-align: center;
}

.texto-destacado h2 {
    font-size: 2.5rem;
    color: #2e7d32; /* El verde de tu marca */
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .texto-destacado h2 {
        font-size: 1.8rem; /* Tamaño cómodo para leer en el teléfono */
        padding: 0 10px;
    }
}

/* --- CONFIGURACIÓN BASE (PC) --- */
/* --- CONTENEDOR DE TEXTOS --- */
.contenedor-titulos {
    text-align: center;
    padding: 40px 0 20px 0; /* Altura reducida */
}

.subtitulo-verde {
    color: #28a745;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
}

.titulo-elegante {
    font-size: 32px;
    color: #333;
    margin: 10px 0;
    font-weight: 800;
}

.linea-decorativa {
    width: 60px;
    height: 4px;
    background: #28a745;
    margin: 0 auto;
    border-radius: 2px;
}

/* --- CARRUSEL --- */
.carousel-container {
    overflow: hidden;
    padding: 20px 0;
    background: transparent; /* Fondo general transparente */
    width: 100%;
}

.carousel-track {
    display: flex;
    width: max-content;
    /* Ajusta el tiempo (30s) para ir más rápido o lento */
    animation: scroll-infinito 30s linear infinite; 
}

.carousel-item.card {
    flex: 0 0 180px; /* Ancho de cada marca */
    margin: 0 30px;  /* Espaciado entre marcas */
    background: transparent; /* Eliminamos la 'caluga' blanca */
    border: none;            /* Sin bordes */
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: transform 0.3s ease; */ /* Opcional: quitar transición si no hay hover */
}

.carousel-item.card img {
    width: 100%;
    height: 100px; /* Altura uniforme para todas las marcas */
    object-fit: contain; /* Evita que la marca se deforme */
    
    /* --- CORRECCIÓN AQUÍ --- */
    filter: none; /* Eliminamos el filtro de escala de grises (grayscale) */
    opacity: 1;    /* Eliminamos la transparencia (opacity), 1 es totalmente opaco */
    /* ------------------------ */
    
    transition: 0.3s;
}

/* --- SECCIÓN ELIMINADA O COMENTADA --- */
/* Eliminamos el efecto hover para que no cambie al pasar el mouse */
/* .carousel-item.card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
*/
/* ------------------------------------ */

/* ANIMACIÓN: Sin saltos (Se mantiene igual) */
@keyframes scroll-infinito {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se desplaza exactamente el ancho de las 9 marcas originales */
        /* (180px de ancho + 60px de margen total) * 9 marcas = 2160px */
        transform: translateX(-2160px);
    }
}

/* Ajuste para móviles (Se mantiene igual) */
@media (max-width: 768px) {
    .carousel-item.card {
        flex: 0 0 120px;
        margin: 0 15px;
    }
    @keyframes scroll-infinito {
        100% {
            transform: translateX(calc(-150px * 9));
        }
    }
}

/* --- TERMINA CARRUSEL --- */

/* --- ESTILO TEXTO PUBLICITARIO --- */
.texto-destacado {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.texto-destacado h2 {
    /* Tipografía: Si no tienes una fuente específica, 
       esta combinación busca la más moderna del sistema */
    font-family: 'Montserrat', 'Arial Black', sans-serif; 
    
    /* Tamaño impactante */
    font-size: 3.5rem; 
    font-weight: 900;
    text-transform: uppercase; /* Todo en mayúsculas para más fuerza */
    letter-spacing: -1.5px; /* Letras más juntas, estilo cartelera */
    
    /* Color Verde Publicitario */
    color: #28a745; 
    
    /* Efecto de sombra sutil para dar volumen */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
    
    line-height: 1.1;
    transition: transform 0.3s ease;
}

.texto-destacado h2:hover {
    transform: scale(1.02); /* Pequeño latido al pasar el mouse */
}

/* --- RESPONSIVO PARA EL TEXTO --- */

/* Tablets */
@media (max-width: 1024px) {
    .texto-destacado h2 {
        font-size: 2.8rem;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .texto-destacado h2 {
        font-size: 2rem; /* Se ajusta para que no se corte en móviles */
        letter-spacing: -0.5px;
    }
}
/* --- BANNER PUBLICITARIO COMPACTO --- */
.
/* CONTENEDOR MAESTRO: Controla los márgenes globales */
.caluga-premium {
    max-width: 1200px; /* Ancho máximo para PC */
    width: 92%;        /* Margen de seguridad del 4% a cada lado */
    margin: 40px auto; /* Centrado y separación vertical */
    box-sizing: border-box;
}

/* EL VIEWPORT: La caluga con bordes y sombra */
.caluga-viewport {
    position: relative;
    width: 100%;
    /* Altura dinámica: de 250px en móvil a 450px en PC */
    height: clamp(250px, 40vw, 450px); 
    
    border-radius: 24px; /* Bordes redondeados modernos */
    overflow: hidden;    /* Mantiene las imágenes dentro de los bordes */
    background-color: #1a1a1a;
    
    /* Sombra premium difuminada */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* LAS DIAPOSITIVAS */
.caluga-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

/* LA IMAGEN: Proporción perfecta */
.caluga-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Evita que la imagen se estire o aplaste */
    object-position: center;
}
/* LAS DIAPOSITIVAS */
.caluga-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Transición de opacidad */
    transition: opacity 1.2s ease-in-out; 
    z-index: 1;
    overflow: hidden;
}

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

/* EFECTO ZOOM SUAVE EN LA IMAGEN */
.caluga-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Estado inicial: un poco más pequeña */
    transform: scale(1); 
    transition: transform 6s ease-out; /* Zoom muy lento y elegante */
}

/* Cuando la diapositiva está activa, la imagen crece suavemente */
.caluga-slide.active img {
    transform: scale(1.1); /* Crece un 10% mientras está a la vista */
}
/* NAVEGACIÓN (PUNTOS) */
.caluga-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px); /* Efecto cristalino */
    transition: all 0.4s ease;
}

.dot.active {
    background: #ffffff;
    width: 30px; /* Efecto de píldora para el activo */
    border-radius: 10px;
}

/* AJUSTES PARA MÓVILES */
@media (max-width: 768px) {
    .caluga-premium {
        width: 95%; /* Un poco más de espacio en pantallas pequeñas */
        margin: 20px auto;
    }
    
    .caluga-viewport {
        height: 220px; /* Altura optimizada para móviles */
        border-radius: 18px;
    }
}

/* --- SECCION PROMECIONES--- */
.seccion-promociones {
    position: relative;
    padding: 60px 0;
    /* Usamos tu imagen de fondo del banner pero fija */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('banner-tenderini.jpg') center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
}

.contenedor-promos {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en PC */
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

.card-promo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Efecto cristal elegante */
    padding: 30px 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card-promo:hover {
    transform: translateY(-10px);
    background: rgba(46, 125, 50, 0.2); /* Se tiñe del verde Tenderini al pasar el mouse */
    border-color: #2e7d32;
}

.card-promo i {
    font-size: 2.5rem;
    color: #74b484; /* Verde claro de tu cinta dinámica */
    margin-bottom: 15px;
}

.card-promo h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-promo p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.slogan-revelado {
    display: block;
    background: #2e7d32;
    color: white;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================================
   RESPONSIVIDAD
   ========================================= */

/* Tablets */
@media (max-width: 1024px) {
    .contenedor-promos {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

/* Celulares */
@media (max-width: 600px) {
    .contenedor-promos {
        grid-template-columns: 1fr; /* 1 columna en celular */
        padding: 0 5%; /* Evita que choque con los bordes */
    }
    
    .card-promo {
        padding: 40px 20px;
    }
}


/* --- FOOTER PRINCIPAL --- */
.footer-principal {
    position: relative;
    /* VERDE TRASLÚCIDO: Ajustado para que la foto de fondo respire */
    background: linear-gradient(rgba(27, 94, 32, 0.7), rgba(46, 125, 50, 0.5)), 
                url('../img/banner-tenderini.jpg') center/cover no-repeat fixed;
    padding: 80px 0 30px 0;
    color: #ffffff;
    z-index: 1;
}

.contenedor-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- LOGO: Limpio y sin filtros --- */


./* --- CONTENEDOR DEL EFECTO PREMIUM --- */
.wrapper-logo-premium {
    position: relative;
    display: inline-block;
    margin-bottom: 25px; /* Espacio con el slogan */
    padding: 10px; /* Aire para que el resplandor no se corte */
}

/* --- EFECTO DE LUZ DE FONDO (GLOW) --- */
.logo-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(184, 115, 51, 0.7) 0%, rgba(27, 94, 32, 0) 70%);
    filter: blur(25px); /* Desenfoque sutil para un halo suave */
    z-index: 1; /* Detrás del logo */
    pointer-events: none; /* No interfiere con clicks */
}

/* --- EL LOGO DE COBRE CON LUZ LED --- */
.logo-footer-premium {
    height: 100px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2; /* Delante del halo */
    
    /* 1. EFECTO METÁLICO DE COBRE (Requiere un logo claro/blanco original) */
    filter: drop-shadow(0px 0px 1px rgba(184, 115, 51, 0.9)) /* Tono base cobre */
            drop-shadow(2px 2px 2px rgba(0,0,0,0.4)) /* Sombra técnica */
            sepia(1) saturate(3) hue-rotate(-20deg) brightness(1.2); /* Brillo y color metálico */
            
    /* 2. EFECTO LED DE CONTORNO (Luz sutil y brillante) */
    box-shadow: 0 0 15px rgba(184, 115, 51, 0.6), 
                0 0 5px rgba(255, 255, 255, 0.3) inset; /* Luz interna sutil */
    border-radius: 5px; /* Pequeño borde suave para el box-shadow */
}

/* Efecto hover: El resplandor se intensifica sutilmente */
.wrapper-logo-premium:hover .logo-glow-effect {
    filter: blur(20px);
    background: radial-gradient(circle, rgba(184, 115, 51, 0.9) 0%, rgba(27, 94, 32, 0) 80%);
    transition: 0.5s ease;
}

/* --- TÍTULOS Y TEXTOS --- */
.footer-bloque h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    border-left: 3px solid #74b484; /* Verde claro de tu marca */
    padding-left: 10px;
}
.contacto-rapido-footer p {
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- ENLACES --- */
.footer-bloque ul { list-style: none; }
.footer-bloque li { margin-bottom: 12px; }

.footer-bloque a {
    text-decoration: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s ease;
}

.footer-bloque a:hover {
    color: #74b484;
    padding-left: 5px;
}

/* --- REDES SOCIALES --- */
.redes-iconos-fotos {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.redes-iconos-fotos a {
    font-size: 18px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.redes-iconos-fotos a:hover {
    background: #2e7d32;
    transform: translateY(-5px);
}

/* --- COPYRIGHT --- */
.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 25px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 1024px) {
    .contenedor-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-principal {
        background-attachment: scroll; /* Fluidez en móvil */
        padding: 50px 0 20px 0;
    }
    
    .contenedor-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 5%;
    }

    .bloque-logo, .contacto-rapido-footer p, .redes-iconos-fotos {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-bloque h3 {
        border-left: none;
        border-bottom: 2px solid #74b484;
        display: inline-block;
        padding-bottom: 5px;
    }
}

/* --- SECCIÓN FORMULARIO / CHECKOUT --- */
.
/* --- TARJETAS DE VENTAS --- */
/* VARIABLES DE MARCA TENDERINIHOME */
:root {
    --verde-marca: #28a745; /* Verde más vivo y comercial */
    --verde-oscuro: #1b5e20;
    --gris-suave: #f4f4f4;
    --blanco: #ffffff;
    --transicion: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* GRID PRINCIPAL: 5 PC / 3 Tablet / 2 Móvil */
#lista-productos-tenderini {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columnas en PC */
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* LA TARJETA (CARD) */
.card-producto-v3 {
    background: var(--blanco);
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: var(--transicion);
    position: relative;
    padding: 12px; /* Espaciado interno para que nada toque el borde */
}

.card-producto-v3:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* FOTOS */
.img-container {
    position: relative;
    height: 160px;
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
}

.img-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.foto-detalles { opacity: 0; }
.card-producto-v3:hover .foto-detalles { opacity: 1; }
.card-producto-v3:hover .foto-principal { opacity: 0; }

/* CUERPO Y TEXTOS */
.cuerpo-card {
    text-align: center;
    padding-top: 10px;
}

.cuerpo-card h3 {
    font-size: 14px;
    color: #333;
    margin: 10px 0 5px;
    min-height: 34px;
    line-height: 1.2;
}

.precio-texto {
    font-size: 18px;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin: 8px 0;
}

/* CONTROLES CANTIDAD */
.controles-contables {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gris-suave);
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.btn-menos, .btn-mas {
    width: 65px; height: 28px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.numero-display { font-weight: bold; min-width: 20px; }

/* BOTÓN AGREGAR (Más visible y separado) */
.btn-final-agregar {
    background: var(--verde-marca);
    color: white;
    border: none;
    padding: 12px 5px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.btn-final-agregar:hover { background: var(--verde-oscuro); }

/* --- RESPONSIVIDAD --- */
@media (max-width: 1100px) {
    #lista-productos-tenderini { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    #lista-productos-tenderini { 
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
        padding: 10px;
    }
    .img-container { height: 130px; }
    .btn-final-agregar { font-size: 11px; }
}


/* DISEÑO DEL MODAL */
#modal-carrito {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-contenido {
    background: white;
    width: 90%;
    max-width: 480px;
    padding: 30px;
    border-radius: 20px;
    position: relative; /* Necesario para posicionar la X */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: slideUp 0.3s ease-out;
}

/* BOTÓN X PARA SALIR */
.btn-cerrar-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px; /* Grande para que sea fácil de tocar */
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-cerrar-modal:hover {
    color: #dc3545; /* Rojo al pasar el mouse */
}

/* OTROS ESTILOS DEL MODAL */
.resumen-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 2px solid #f4f4f4;
}

.botones-acciones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-finalizar {
    background: #28a745;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-finalizar:hover { transform: scale(1.02); background: #218838; }

.btn-vaciar {
    background: #f8f9fa;
    color: #dc3545;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* BURBUJA FLOTANTE */
#burbuja-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745; /* El verde vivo de Tenderini */
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

#burbuja-carrito:hover { transform: scale(1.05); }

#items-totales {
    background: white;
    color: #28a745;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 14px;
}

/* MODAL DEL CARRITO */
#modal-carrito {
    display: none; /* Se activa con el JS */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-contenido {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.btn-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.botones-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-finalizar {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.btn-vaciar {
    background: transparent;
    color: #dc3545;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}

/* Ocultar texto en celulares muy pequeños para que no estorbe */
@media (max-width: 400px) {
    .texto-ver { display: none; }
}
/* --- CONFIGURACIÓN DE BUSCADOR --- */
/* --- CONTENEDOR PRINCIPAL --- */
.seccion-ventas-premium {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* --- CONTACTO BUSCADOR DENTRO DEL MAPA --- */
/* --- ESTILOS GENERALES DE LA SECCIÓN --- */
.seccion-contacto-premium {
    position: relative;
    padding: 80px 0;
    /* Imagen fija de fondo (Sustituye por la tuya si quieres) */
    background: url('../img/ventas_repuerstos.jpg') center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Overlay para legibilidad */
.seccion-contacto-premium .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); 
    z-index: 1;
}

.contenedor-contacto-v2 {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Dos columnas */
    gap: 60px; /* Espacio entre columnas */
    align-items: center;
}

/* --- COLUMNA IZQUIERDA: SLOGAN --- */
.info-contacto-lateral {
    color: white;
}

.info-contacto-lateral h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0 20px;
}

.badge-verde {
    background: #2e7d32;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.slogan-principal {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    border-left: 4px solid #2e7d32;
    padding-left: 20px;
    margin-bottom: 30px;
}

.descripcion-contacto {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- COLUMNA DERECHA: FORMULARIO TRASPARENTE (Glassmorphism) --- */
.tarjeta-formulario-transparente {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.fila-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grupo-input { margin-bottom: 20px; }

.grupo-input label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.grupo-input input, 
.grupo-input textarea,
.grupo-input select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.grupo-input input:focus, 
.grupo-input textarea:focus,
.grupo-input select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #2e7d32;
}

/* Estilos específicos para el Select (Submenú) */
.select-wrapper {
    position: relative;
}

.grupo-input select {
    appearance: none; /* Oculta la flecha nativa */
    -webkit-appearance: none;
    cursor: pointer;
}

.icon-select {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none; /* Para que el clic pase al select */
    font-size: 0.8rem;
}

/* Estilo para las opciones dentro del select (depende del navegador) */
.grupo-input select option {
    background: #1c1c1c; /* Fondo oscuro para que se vea el texto */
    color: white;
}

/* --- BOTÓN COMPACTO --- */
.contenedor-boton {
    display: flex;
    justify-content: flex-end; /* Alineado a la derecha */
}

.btn-enviar-compacto {
    padding: 12px 25px; /* Más compacto */
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}

.btn-enviar-compacto:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

/* --- RESPONSIVIDAD (Celular) --- */
@media (max-width: 850px) {
    .contenedor-contacto-v2 {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 40px;
    }

    .info-contacto-lateral h2 {
        font-size: 2rem;
    }

    .info-contacto-lateral {
        text-align: center;
    }

    .fila-input {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tarjeta-formulario-transparente {
        padding: 30px;
    }

    .contenedor-boton {
        justify-content: center; /* Botón centrado en móvil */
    }
}

/* --- CONFIGURACIÓN DE BUSCADOR --- */
/* --- CONTENEDOR PRINCIPAL --- */
.seccion-ventas-premium {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* --- SECCIÓN DE BÚSQUEDA (GLASSMORPISM) --- */
.seccion-busqueda-avanzada {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.1);
    padding: 40px 20px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 40px;
}

.titulo-busqueda {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* --- INPUT DE BÚSQUEDA --- */
.input-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

#buscador-repuestos {
    width: 100%;
    padding: 18px 60px 18px 30px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

#buscador-repuestos:focus {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.btn-buscar-lupa {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #28a745;
    font-size: 1.3rem;
    cursor: pointer;
}

/* --- BOTONES DE FILTRO --- */
.filtros-categorias {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-filtro {
    padding: 12px 25px;
    border: 2px solid #28a745;
    background: transparent;
    color: #28a745;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtro:hover, .btn-filtro.active {
    background: #28a745;
    color: white;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* Ocultar productos */
.producto-oculto {
    display: none !important;
}


/* --- FIN SE  CONTACTO --- */

/* =============================================
   ESTILOS NOSOTROS - TENDERINI HOME (RESPONSIVO)
============================================== */

/* Contenedor General */
.section-history {
    padding: 80px 20px;
    background-color: #ffffff;
}

.container-history {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas iguales en PC */
    gap: 50px;
    align-items: center;
}

/* Título y Divisor */
.title-history {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 800;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: #28a745; /* Verde Tenderini */
    margin-bottom: 30px;
}

/* Textos Justificados */
.description-justified p {
    text-align: justify;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Imagen con Sombra */
.photo-shadow {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: block;
}

/* --- RESPONSIVO (Celulares) --- */
@media (max-width: 768px) {
    .container-history {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center; /* Centra el bloque de texto */
    }

    .title-history {
        font-size: 1.8rem;
    }

    .divider {
        margin: 0 auto 30px auto; /* Centra la línea verde */
    }

    .description-justified p {
        text-align: center; /* En móvil, el texto justificado suele verse mal, mejor centrado o normal */
    }

    .image-block {
        order: -1; /* Opcional: pone la foto arriba del texto en celulares */
        margin-bottom: 20px;
    }
}

/* --- BOTONES DE FILTRO --- */
.filtros-categorias {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-filtro {
    padding: 12px 25px;
    border: 2px solid #28a745;
    background: transparent;
    color: #28a745;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtro:hover, .btn-filtro.active {
    background: #28a745;
    color: white;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* Ocultar productos */
.producto-oculto {
    display: none !important;
}


/* Contenedor */
.section-values {
    padding: 80px 20px;
    background-color: #f9f9f9;
    overflow: hidden; /* Evita que se vea el salto al animar */
}

.container-values {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Diseño de la Caluga */
.value-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0; /* IMPORTANTE: Empieza invisible */
    border-top: 4px solid #28a745;
}

/* LA ANIMACIÓN */
.animate-down {
    animation: slideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-60px); /* Viene desde más arriba */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Queda en su sitio */
    }
}

/* Hover para PC */
.value-card:hover {
    transform: translateY(-10px) !important;
    transition: 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Responsive para Móvil */
@media (max-width: 768px) {
    .container-values {
        grid-template-columns: 1fr;
    }
}

/* Contenedor de Experiencia */
.section-experience {
    padding: 80px 20px;
    background-color: #ffffff; /* Fondo blanco limpio */
}

.container-experience {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Título y Divisor (Mismo estilo que Historia para consistencia) */
.title-experience {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 800;
}

.description-justified p {
    text-align: justify;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* La foto con sombra profunda */
.photo-shadow {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .container-experience {
        grid-template-columns: 1fr; /* Una columna en móvil */
        text-align: center;
    }

    .title-experience {
        font-size: 1.8rem;
    }

    /* Forzamos que la foto aparezca primero en el celular */
    .alternate-row {
        display: flex;
        flex-direction: column;
    }

    .image-block {
        margin-bottom: 30px;
        order: 1; 
    }
    
    .text-block {
        order: 2;
    }

    .description-justified p {
        text-align: center;
    }
}

/* Sección Por qué elegirnos */
/* --- VARIABLES DE COLOR DE VENTAS ESTRATÉGICAS --- */
:root {
    --ventas-verde-alto: #28a745; /* Confianza y Crecimiento */
    --ventas-dorado-valor: #d4af37; /* Valor Premium y Oportunidad */
    --ventas-amarillo-flash: #ffc107; /* Oportunidad / Venta Urgente */
    --ventas-fondo-bar: #e9ecef; /* Neutral suave */
    --ventas-sombra: 0 10px 30px rgba(0, 0, 0, 0.08);
    --ventas-sombra-oportunidad: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Sección Por qué elegirnos */
.section-why-us {
    background-color: #f9f9f9;
    padding: 100px 20px;
}

.container-why {
    max-width: 1200px;
    margin: 0 auto;
}

/* Centrado General */
.center-text { text-align: center; }
.divider-center { margin: 0 auto 60px auto; }

/* Envoltorio Centrado y Justificado */
.why-centered-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas en PC */
    gap: 60px;
    align-items: center;
    max-width: 1000px; /* Ancho máximo para el centrado del bloque entero */
    margin: 0 auto; /* Centra el bloque entero */
}

/* --- ESTILOS DEL GRÁFICO (Dinamismo y Colores de Venta) --- */
.why-stats {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--ventas-sombra);
    transition: all 0.3s ease;
}

.stat-bar-container {
    margin-bottom: 25px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.stat-info i { margin-right: 8px; color: var(--ventas-verde-alto); }
.stat-number { color: var(--ventas-dorado-valor); }

.bar-background {
    background: var(--ventas-fondo-bar);
    height: 14px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    /* Degradado estratégico: Verde a Dorado */
    background: linear-gradient(90deg, var(--ventas-verde-alto), var(--ventas-dorado-valor));
    border-radius: 10px;
    animation: loadBars 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    width: 0;
}

/* --- ESTRATEGIA DE VENTAS: LA BARRA DE OPORTUNIDAD --- */

/* 1. Fondo de barra más oscuro para contraste */
.opportunity-bar-bg {
    background: #e0e0e0;
}

/* 2. Color Amarillo Flash y Sombra de Oportunidad */
.bar-opportunity {
    background: var(--ventas-amarillo-flash) !important;
    box-shadow: var(--ventas-sombra-oportunidad);
    /* 3. Brillo dinámico que recorre la barra al cargar */
    position: relative;
}

.bar-opportunity::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 30px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    animation: flashOpportunity 2.5s infinite;
}

/* Animación del brillo flash */
@keyframes flashOpportunity {
    0% { left: -30px; }
    30% { left: 100%; }
    100% { left: 100%; }
}

/* 4. Resaltar el número de porcentaje en dorado */
.highlight-number {
    color: var(--ventas-amarillo-flash) !important;
    font-size: 1.1rem;
}

/* Animación de carga de barras */
@keyframes loadBars {
    from { width: 0; }
    to { width: var(--data-width); }
}

/* --- TEXTOS DE APOYO (Justificados y Profesionales) --- */
.why-text-support {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.check-icon {
    background-color: var(--ventas-verde-alto);
    color: white;
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    font-size: 1.2rem;
}

.why-text h4 {
    font-size: 1.3rem; color: #333; margin-bottom: 8px; font-weight: 700;
}

/* Texto Justificado */
.description-justified p {
    text-align: justify;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .why-centered-wrapper {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 40px;
    }
    
    .why-stats { padding: 30px 20px; }
    .stat-info { font-size: 0.9rem; }
}


/*   FIN Sección Por qué elegirnos */

/* Sección de Marcas */
.section-brands {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.brands-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* El carrusel */
.logos-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.logos-track {
    display: flex;
    width: calc(250px * 12); /* Ancho total de todos los logos */
    animation: scrollLogos 30s linear infinite;
}

.logo-item {
    width: 250px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ccc; /* Color gris suave para que no compita visualmente */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover {
    color: #28a745; /* Verde Tenderini al pasar el mouse */
    filter: grayscale(0%);
}

/* Animación Infinita */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); } /* Se desplaza la mitad de la pista */
}

/* Pausar al pasar el mouse */
.logos-track:hover {
    animation-play-state: paused;
}

/* Responsivo */
@media (max-width: 768px) {
    .logo-item {
        width: 150px;
        font-size: 1.2rem;
    }
    .logos-track {
        width: calc(150px * 12);
    }
    @keyframes scrollLogos {
        100% { transform: translateX(calc(-150px * 6)); }
    }
}

/* FIN Sección de Marcas */

/* Sección Testimonios */
.section-testimonials {
    padding: 100px 20px;
    background-color: #ffffff;
}

.testimonials-title {
    font-size: 2.2rem;
    color: #333;
    font-weight: 800;
    margin-bottom: 10px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en PC */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta de Testimonio */
.testimonial-card {
    background: #fdfdfd;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #28a745;
}

/* Comillas decorativas */
.quote-icon {
    font-size: 4rem;
    color: rgba(40, 167, 69, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.quote-text {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Info del Cliente */
.client-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.client-name {
    display: block;
    font-weight: 800;
    color: #333;
    font-size: 1.1rem;
}

.client-tag {
    display: block;
    color: #28a745; /* Verde Tenderini */
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Tarjeta Destacada (La de en medio) */
.highlighted-testimony {
    background: #f4fff6; /* Un verde casi imperceptible */
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        max-width: 500px;
    }
}
/*  FIN Sección Testimonios */

/* Estilo de la Cinta Dinámica */
.trust-ribbon {
    background-color: #1b5e20; /* Verde oscuro institucional */
    color: #ffffff;
    padding: 15px 0;
    margin-top: 50px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.ribbon-track {
    display: flex;
    width: max-content;
    animation: scrollRibbon 20s linear infinite;
}

.ribbon-item {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ribbon-item span {
    color: #ffc107; /* Estrella en amarillo oportunidad */
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Animación de desplazamiento */
@keyframes scrollRibbon {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pausa suave al pasar el mouse */
.trust-ribbon:hover .ribbon-track {
    animation-play-state: paused;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .ribbon-item {
        font-size: 0.75rem;
        padding: 0 20px;
    }
}

/* =======================================================
   ESTRATEGIA RESPONSIVA UNIFICADA
   ======================================================= */

/* --- 1. TABLETS (Pantallas medianas hasta 1024px) --- */
@media (max-width: 1024px) {
    .container-why, .testimonials-grid {
        max-width: 900px;
        gap: 30px;
    }
    
    .why-centered-wrapper {
        gap: 40px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet para que no se vea apretado */
    }
}

/* --- 2. CELULARES GRANDES / TABLETS PEQUEÑAS (Hasta 768px) --- */
@media (max-width: 768px) {
    /* Ajustes Generales de Sección */
    .section-why-us, .section-testimonials {
        padding: 60px 20px;
    }

    /* Gráfico y Por qué elegirnos */
    .why-centered-wrapper {
        grid-template-columns: 1fr; /* Una sola columna */
        text-align: center;
    }

    .why-stats {
        padding: 30px 20px;
        order: 1; /* El gráfico primero */
    }

    .why-text-support {
        order: 2; /* Los textos después */
    }

    .why-item {
        flex-direction: column; /* Icono arriba del texto en móvil */
        align-items: center;
        text-align: center;
    }

    .description-justified p {
        text-align: center; /* En móvil el justificado se ve mal, mejor centrar */
    }

    /* Carrusel de Marcas */
    .logo-item {
        width: 150px;
        font-size: 1.2rem;
    }
    .logos-track {
        width: calc(150px * 12);
    }
    @keyframes scrollLogos {
        100% { transform: translateX(calc(-150px * 6)); }
    }

    /* Testimonios */
    .testimonials-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        max-width: 100%;
    }

    /* Cinta Dinámica */
    .ribbon-item {
        font-size: 0.75rem;
        padding: 0 15px;
    }
}

/* --- 3. CELULARES PEQUEÑOS (Hasta 480px) --- */
@media (max-width: 480px) {
    .title-why, .testimonials-title {
        font-size: 1.6rem; /* Títulos más pequeños para que no se corten */
    }

    .stat-info {
        font-size: 0.8rem;
    }

    .trust-ribbon {
        padding: 10px 0;
    }
}
/*   FIN Estilo de la Cinta Dinámica */


/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */
.btn-whatsapp-flotante {
    position: fixed;            /* Fijo en la pantalla */
    bottom: 30px;               /* Distancia desde abajo */
    right: 30px;                /* Distancia desde la derecha */
    width: 100px;                /* Tamaño del círculo (puedes ajustarlo) */
    height:100px;
    background-color: #25d366;  /* Color verde oficial de WhatsApp */
    color: #ffffff;             /* Icono en blanco */
    border-radius: 50%;         /* Lo hace perfectamente circular */
    display: flex;              /* Centrado perfecto del icono */
    align-items: center;
    justify-content: center;
    font-size: 32px;            /* Tamaño del icono de WhatsApp */
    z-index: 1000;              /* Asegura que esté por encima de todo */
    cursor: pointer;
    text-decoration: none;      /* Quita el subrayado del enlace */
    transition: all 0.3s ease;  /* Transición suave para todos los efectos */

    /* --- LA SOMBRA SUAVE (PROFUNDIDAD ELEGANTE) --- */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* --- EFECTO DE VOLUMEN SUTIL (PREMIUM) --- */
    /* Crea un ligero brillo en la parte superior */
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    /* Crea un degradado sutil para dar volumen */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

/* --- EFECTOS AL PASAR EL MOUSE (HOVER) --- */
.btn-whatsapp-flotante:hover {
    transform: translateY(-5px) scale(1.05); /* Sube un poco y se agranda sutilmente */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); /* Sombra verde más intensa al hover */
    background-color: #1ebea5; /* Un tono de verde un poco más oscuro al hover */
}

/* --- EFECTO DE PULSO SUTIL (OPCIONAL, LLAMAR ATENCIÓN) --- */
/* Agrega esta clase al botón en HTML si quieres que pulse continuamente */
.btn-whatsapp-flotante.pulso::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    background-color: rgba(37, 211, 102, 0.6);
    opacity: 0;
    animation: pulsoWhatsApp 2s infinite;
    z-index: -1;
}

@keyframes pulsoWhatsApp {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
    .btn-whatsapp-flotante {
        width: 50px;            /* Ligeramente más pequeño en móviles */
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

/* --- Fin  ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP --- */


/* --- ESTILO PREMIUM PARA FORMULARIO TENDERINI --- */

/* Contenedor Principal */
.contenedor-formulario-tenderini.compacto {
    max-width: 700px; /* Un poco más angosto para que se vea más ordenado */
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); /* Sombra suave profunda */
    border: 1px solid #f0f0f0;
}

/* Calugas (Fieldsets) */
.compacto fieldset {
    border: 1px solid #edf2f7 !important;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Sombra sutil para cada bloque */
    transition: all 0.3s ease;
}

.compacto fieldset:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Títulos de las calugas (Legends) */
.compacto legend {
    background: #28a745;
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 50px;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

/* Inputs Parejos */
.input-wrapper-form {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper-form i {
    position: absolute;
    left: 15px;
    color: #28a745;
}

.compacto input, .compacto textarea {
    width: 100%;
    padding: 12px 12px 12px 45px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 14px;
    outline: none;
}

.compacto input:focus {
    border-color: #28a745 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1) !important;
}

/* Botón Enviar Moderno */
.btn-enviar-formulario-tenderini {
    width: 100%;
    padding: 16px !important;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.btn-enviar-formulario-tenderini:hover {
    background: #218838;
    transform: scale(1.02);
}

/* Calugas (Fieldsets) con tono Verde Agua Suave */
.compacto fieldset {
    border: 1px solid #d1e7dd !important; /* Borde sutil verde agua */
    background: #f8fdfb; /* Fondo muy suave verde agua */
    border-radius: 16px;
    padding: 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.05); /* Sombra con un toque verde */
    transition: all 0.3s ease;
}

.compacto fieldset:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
    background: #ffffff; /* Se aclara al pasar el mouse */
}

/* Ajuste para que los inputs resalten sobre el fondo verde agua */
.compacto input, .compacto textarea {
    background: #ffffff !important; 
    border: 1px solid #ced4da !important;
}

.fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 15px;
}

/* Responsivo para celulares */
@media (max-width: 650px) {
    .fila-doble {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
}
/* --- FIN ESTILO PREMIUM PARA FORMULARIO TENDERINI --- */


/*  COMIENZO Grilla Responsiva PRODUCTOS*/
.hero-productos {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    overflow: hidden;
    background: #1a1a1a;
}

/* El corte de 45 grados */
.hero-diagonal-foto {
    flex: 1.2;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); /* Corte diagonal */
    z-index: 2;
}

.hero-diagonal-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-verde {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.2), transparent);
}

/* Contenedor del Slider */
/* --- Contenedor Principal --- */
.hero-slider-textos {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: white;
    position: relative;
    background: #1a1a1a;
    min-height: 350px; /* Asegura espacio para el texto */
}

/* Contenedor relativo para que los hijos absolutos se alineen aquí */
.slider-container { 
    width: 100%; 
    position: relative; 
    height: 100%;
}

/* --- Slides: La clave es usar opacity en lugar de display none --- */
.slide {
    position: absolute; /* Superponemos todos los textos uno sobre otro */
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateX(30px); /* Inicia un poco a la derecha */
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Transición suave */
    pointer-events: none;
}

/* --- Slide Activo --- */
.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Vuelve a su centro */
    pointer-events: auto;
    z-index: 10;
}

/* Títulos y Párrafos */
.slide h2 { 
    font-size: 2.8rem; 
    color: #28a745; 
    margin-bottom: 15px; 
    line-height: 1.1;
    font-weight: 800;
}

.slide p { 
    font-size: 1.2rem; 
    margin-bottom: 25px; 
    opacity: 0.8;
    max-width: 450px;
}

.badge-promo {
    display: inline-block;
    padding: 8px 20px;
    background: #28a745;
    color: white;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .hero-productos { 
        height: auto; 
        min-height: 700px;
        flex-direction: column; 
    }
    
    .hero-diagonal-foto { 
        width: 100%;
        height: 350px;
        flex: none;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); 
    }

    .hero-slider-textos { 
        flex: 1; 
        padding: 40px 20px; 
        text-align: center;
        min-height: 350px;
    }

    .slide p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-slider-textos { padding: 30px 15px; }
    .slide h2 { font-size: 2rem; }
    .slide p { font-size: 1rem; }
}

/*  FIN Grilla Responsiva PRODUCTOS*/

/* FIN Grilla Responsiva PRODUCTOS*/

/* 2. Grilla Responsiva (Móvil 2, Tablet 3, PC 5) */
#lista-productos-tenderini {
    display: grid;
    gap: 15px; 
    padding: 0px;
    max-width: 1200px; 
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr); /* Móvil */
}

@media (min-width: 768px) {
    #lista-productos-tenderini {
        grid-template-columns: repeat(3, 1fr); /* Tablet */
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    #lista-productos-tenderini {
        grid-template-columns: repeat(5, 1fr); /* PC */
        gap: 10px;       
    }
}

/* 3. La Tarjeta (Producto Card) */
.producto-card {
    background: #fff;
    border-radius: 8px; /* Radio ligeramente menor para tarjetas pequeñas */
    padding: 8px 12px; /* Reducimos el padding superior/inferior a 8px */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido si hay poco espacio */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 4. Efecto de Fotos */
.contenedor-fotos {
    position: relative;
    width: 100%;
    height: 170px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.foto-repuesto {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.foto-detalles { opacity: 0; }
.producto-card:hover .foto-principal { opacity: 0; }
.producto-card:hover .foto-detalles { opacity: 1; }

/* 5. Etiquetas y Estados de Stock */
.etiqueta-nuevo {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2e7d32;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    z-index: 5;
}

.disponibilidad {
    font-size: 0.9rem;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Colores por estado */
.disponibilidad.ok { color: #2e7d32; }
.disponibilidad.alerta { color: #ef6c00; font-weight: bold; animation: pulso 2s infinite; }
.disponibilidad.critico { color: #d32f2f; }

.disponibilidad .punto { font-size: 1.2rem; }

@keyframes pulso {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 6. Textos */
.nombre-repuesto {
    font-size: 1.02rem;
    color: #333;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-weight: 700;
}

.codigo-repuesto {
    font-size: 0.9rem;
    color: #888;
}

.precio-repuesto {
    font-size: 1.3rem;
    color: #2e7d32;
    font-weight: 800;
    margin: 10px 0;
}

/* 7. Controles y Botón */
.selector-cantidad {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Reduje un poco el gap para que se vea más compacto */
    margin-bottom: 12px;
    background: #f5f5f5;
    width: fit-content;
    margin: 0 auto 12px;
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #e0e0e0; /* Un borde suave para definir el selector */
}

.selector-cantidad input {
    width: 35px; /* Ancho fijo para que no se mueva */
    border: none;
    background: transparent;
    text-align: center; /* ESTO centra el número */
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    outline: none; /* Quita el borde azul al hacer clic */
    appearance: textfield; /* Quita las flechitas por defecto del navegador */
}

/* Quitar flechas en navegadores Chrome, Safari, Edge */
.selector-cantidad input::-webkit-outer-spin-button,
.selector-cantidad input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.selector-cantidad button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.selector-cantidad button:hover {
    background: #eeeeee;
}

.btn-agregar-cotizacion {
    background-color: #2e7d32;
    color: white;
    border: none;
    /* Reducimos el padding: 8px arriba/abajo y 5px a los lados */
    padding: 10px 5px; 
    border-radius: 6px; /* Un radio un poco más pequeño para que se vea fino */
    font-size: 0.8rem; /* Bajamos un poco el tamaño de la letra */
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 8px; /* Espacio pequeño con el elemento de arriba */
}

.btn-agregar-cotizacion:hover {
    background-color: #333333; /* Un verde más oscuro al pasar el mouse */
}

/* --- FOOTER PRINCIPAL --- */
.footer-principal {
    position: relative;
    /* VERDE TRASLÚCIDO: Ajustado para que la foto de fondo respire */
    background: linear-gradient(rgba(27, 94, 32, 0.7), rgba(46, 125, 50, 0.5)), 
                url('../img/banner-tenderini.jpg') center/cover no-repeat fixed;
    padding: 80px 0 30px 0;
    color: #ffffff;
    z-index: 1;
}

.contenedor-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}