/* Variables CSS - COLORES Y FUENTES DE LA MERCED */
:root {
    --color-primary: #02472E; /* Verde oscuro de La Merced */
    --color-primary-dark: #013a27; /* Un tono más oscuro del verde principal */
    --color-secondary: #FF8D20; /* Naranja/Ámbar de La Merced */
    --color-secondary-dark: #d67a1c; /* Un tono más oscuro del naranja */
    --color-light-gray: #f8f8f8; /* Un gris muy claro para fondos sutiles */
    --color-white: #ffffff;
    --color-black: #2c2c2c; /* Un negro suave para texto muy oscuro */
    --color-heading: #02472E; /* Los títulos principales usarán el color principal de la marca */
    --color-text: #333333; /* Gris oscuro para texto general, legible */

    /* Sombras ajustadas para un efecto más "grueso" / llamativo */
    --shadow-small: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.2);

    --border-radius: 8px;

    /* Nuevas Fuentes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}
/* Improvements to avoid flicker and collisions during product rendering */
#product-gallery { /* reserve space to avoid layout jumps while JS renders */
    min-height: 360px;
    position: relative;
}
.product-card { /* ensure cards support opacity transitions when inserted */
    transition: transform 0.22s ease, box-shadow 0.2s ease, opacity 0.22s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.product-card.hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.product-card.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Small stagger helper when revealing cards */
.product-card.visible { transition-delay: 0s; }

/* Smooth show/hide for the gallery container itself */
#product-gallery.showing { opacity: 1; transition: opacity 180ms ease-in; }
#product-gallery.hiding { opacity: 0; transition: opacity 120ms ease-out; }


/* Reset Básico y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body); /* Aplicamos Open Sans al cuerpo */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light-gray);
}

.container-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: var(--color-primary); /* Enlaces con color principal por defecto */
}

ul {
    list-style: none;
}

/* Estilos de Encabezado */
.header-pro {
    background-color: var(--color-white);
    box-shadow: var(--shadow-small);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-pro .container-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-pro-link {
    display: flex;
    align-items: center;
    color: var(--color-heading); /* Texto del logo con color de encabezado */
    font-size: 1.8rem;
    font-family: var(--font-heading); /* Montserrat para el texto del logo */
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo-pro-link:hover {
    color: var(--color-primary-dark);
}

.logo-pro-img {
    height: 50px; /* Aumentado: tamaño del logo en el cabezal */
    margin-right: 0.70rem;
}

.nav-pro ul {
    display: flex;
}

.nav-pro li {
    margin-left: 2rem;
}

.nav-pro a {
    color: var(--color-text); /* Texto de navegación en gris oscuro */
    font-weight: 600; /* Un poco más de peso */
    font-size: 1rem; /* Ligeramente más pequeño para modernidad */
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-family: var(--font-body); /* Open Sans para enlaces de nav */
}

.nav-pro a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary); /* Subrayado con el color de acento */
    transition: width 0.3s ease;
}

.nav-pro a:hover::after {
    width: 100%;
}

.nav-pro a:hover {
    color: var(--color-primary); /* Cambio de color al pasar el ratón */
}

/* Estilos de Botones */
.btn-pro {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    font-family: var(--font-body); /* Open Sans para botones */
}

.btn-primary-pro {
    background-color: var(--color-primary); /* Verde principal */
    color: var(--color-white);
    box-shadow: var(--shadow-small);
}

.btn-primary-pro:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary-pro {
    background-color: var(--color-secondary); /* Naranja de acento */
    color: var(--color-white);
    box-shadow: var(--shadow-small);
}

.btn-secondary-pro:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Secciones Generales */
.section-pro {
    padding: 5rem 0;
    background-color: var(--color-white);
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
}

/* Fondo para secciones "pintaditas" (Quiénes Somos, Misión/Visión) */
.colored-section {
    background-color: var(--color-primary); /* Fondo verde principal */
    color: var(--color-white);
}

.colored-section .section-title-pro,
.colored-section .section-subtitle-pro {
    color: var(--color-white); /* Títulos blancos */
}

.colored-section .section-title-pro::after {
    background-color: var(--color-secondary); /* Línea naranja */
}

.colored-section .section-description-pro {
    color: rgba(255, 255, 255, 0.9); /* Texto ligeramente más claro */
}

.section-pro:last-of-type {
    margin-bottom: 0;
}

.section-title-pro {
    font-family: var(--font-heading); /* Montserrat para títulos de sección */
    font-size: 2.5rem;
    color: #2F2F2F;
    text-align: center;
    margin-bottom: 2.2rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 700;
}

.section-title-pro::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary); /* Línea con color de acento */
    border-radius: 2px;
}

.section-description-pro {
    font-size: 1.15rem;
    color: var(--color-text);
    text-align: center;
    max-width: 850px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.7;
    font-family: var(--font-body); /* Open Sans para descripciones */
}

.section-subtitle-pro {
    font-family: var(--font-heading); /* Montserrat para subtítulos de sección */
    font-size: 2.5rem;
    color: #2F2F2F;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2.2rem; /* Margen antes del carrusel */
    font-weight: 700;
    position: relative; /* Necesario para el posicionamiento de la línea */
    padding-bottom: 0.8rem; /* Espacio para la línea */
}

/* Títulos principales usados en secciones tipo Quiénes Somos, Misión, Visión */
.main-heading {
    color: #2F2F2F;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    text-align: left;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* RAYITA para el título "Nuestros Valores" */
.section-subtitle-pro::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* Ancho de la línea del subtítulo */
    height: 4px; /* Grosor de la línea del subtítulo */
    background-color: var(--color-secondary); /* Color de la línea */
    border-radius: 1px;
}

/* Sección Quiénes Somos y sus tarjetas Misión/Visión */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.about-card-pro {
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-small);
    /* Añadimos background-color a la transición */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1); /* Fondo blanco transparente */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    color: var(--color-white); /* Texto blanco */
}

.about-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background-color: var(--color-secondary); /* CAMBIO: Fondo naranja al pasar el cursor */
}

/* CAMBIO: Color de los elementos internos al pasar el cursor */
.about-card-pro:hover .icon-large {
    color: var(--color-white); /* Icono blanco sobre fondo naranja */
    transition: color 0.3s ease;
}

.about-card-pro:hover h3 {
    color: var(--color-white); /* Título blanco sobre fondo naranja */
    transition: color 0.3s ease;
}

.about-card-pro:hover p {
    color: var(--color-white); /* Párrafo blanco sobre fondo naranja */
    transition: color 0.3s ease;
}

.about-card-pro .icon-large {
    font-size: 4rem;
    color: var(--color-secondary); /* Iconos con color de acento */
    margin-bottom: 1.8rem;
    transition: color 0.3s ease; /* Transición para el color del icono */
}

.about-card-pro h3 {
    font-family: var(--font-heading); /* Montserrat para títulos de tarjeta */
    font-size: 2rem;
    color: var(--color-white); /* Título blanco */
    margin-bottom: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease; /* Transición para el color del título */
}

.about-card-pro p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9); /* Texto ligeramente claro */
    line-height: 1.7;
    font-family: var(--font-body); /* Open Sans para texto de tarjeta */
    transition: color 0.3s ease; /* Transición para el color del párrafo */
}

/* Sección Nuestros Valores (NO-Accordion) - Ajustes Finales */
.values-carousel-pro {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.2rem; /* Espacio entre los items */
    align-items: stretch; /* Asegura que todos los ítems tengan la misma altura */
    margin-top: 2.5rem;
    flex-wrap: wrap; /* Permitir que los items se envuelvan a la siguiente fila en pantallas pequeñas */
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.values-carousel-pro::-webkit-scrollbar {
    height: 8px;
}

.values-carousel-pro::-webkit-scrollbar-track {
    background: transparent;
}

.values-carousel-pro::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.value-item-pro {
    flex: 1 1 22%; /* Para 4 ítems que encajen bien */
    max-width: 280px; /* Ancho máximo para evitar que se estiren demasiado en pantallas grandes */
    min-width: 200px; /* Ancho mínimo para que los ítems no se hagan demasiado pequeños */
    background-color: var(--color-white); /* El fondo principal de la tarjeta es blanco */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.value-item-pro:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* Lazy image placeholder + fade-in for product cards */
.product-image img.lazy-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 360ms ease, filter 360ms ease;
    filter: blur(4px);
    background-color: #fff;
}
.product-image img.lazy-img.loaded {
    opacity: 1;
    filter: blur(0);
}

.value-title-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    cursor: default;
    transition: background-color 0.3s ease;
    font-weight: 700;
    position: relative;
}

.value-title-pro:hover {
    background-color: var(--color-secondary);
}

/* Aseguramos que la rayita NO aparezca aquí */
.value-title-pro::after {
    display: none;
}

/* ===============================
   Estilos añadidos por el usuario (Quiénes Somos / Misión / Visión / Valores / Tiendas)
   Apéndice de estilos proporcionados — insertado al final para mantener compatibilidad.
   =============================== */

/* --- Variables de Color (Con tus colores de marca) --- */
:root {
    --primary-orange: #FF8D20;
    --secondary-green: #02472E; /* Tu verde oscuro profesional */
    --card-green: #03573A; /* El verde de las tarjetas de contacto */
    --dark-text: #2F2F2F;
    --light-text: #495057;
    --background-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
}

/* --- Estilos Generales --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
}

/* --- Contenedor General para cada sección --- */
.section-wrapper {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
}

/* --- Títulos de Sección Principales --- */
.main-heading {
    /* Estilo fuerte y grande como en el ejemplo */
    font-family: 'Poppins', sans-serif;
    font-size: 2.7rem; /* tamaño grande para destacar */
    font-weight: 700; /* peso extra (Poppins 800) para el grosor deseado */
    color: #2F2F2F; /* texto oscuro solicitado por el usuario */
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 24px; /* espacio para la raya naranja */
    line-height: 1.02; /* compacto para apariencia más contundente */
    letter-spacing: -0.6px;
}
 
.main-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 5px;
    background-color: var(--primary-orange);
    border-radius: 3px;
}

/* --- Párrafo Descriptivo General --- */
.section-description {
    font-size: 1.15rem;
    color: #6c757d;
    text-align: center;
    max-width: 800px;
    margin: 20px auto 80px auto;
    line-height: 1.6;
}

/* ========================================
   BLOQUE DE CONTENIDO (Quiénes Somos, Misión, Visión)
======================================== */
.content-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.content-block .image-col {
    flex: 1;
    min-width: 300px;
}

.content-block .image-col img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.content-block .text-col {
    flex: 1.2;
    text-align: left;
}

.content-block .text-col p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-block.quienes-somos-block .text-col p {
    font-size: 1.15rem;
}


/* ========================================
   SECCIÓN VALORES
======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    /* sombra base sutil */
    box-shadow: 0 8px 22px rgba(16,24,32,0.06);
    /* se quitó la franja verde inferior para dejar libre el diseño */
    transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s ease;
    will-change: transform, box-shadow;
}

/* Efecto de elevación al pasar el cursor (misma estética que los botones) */
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 48px rgba(16,24,32,0.10), 0 8px 20px rgba(0,0,0,0.06);
}

/* Micro-animación del icono dentro de la tarjeta */
.value-card .value-icon {
    transition: transform 0.28s ease, filter 0.28s ease;
    transform-origin: center bottom;
}

.value-card:hover .value-icon {
    transform: translateY(-6px) scale(1.03);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-strong);
}

.value-card .value-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}

.value-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0;
}

/* ========================================
   SECCIÓN TIENDAS
======================================== */
.stores-grid {
    display: grid;
    /* Mantener 3 columnas pero permitir que las tarjetas sean un poco más estrechas */
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px; /* Reducido ligeramente */
}

.store-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-strong);
}

.store-card img {
    width: 100%;
    /* Imagen un poco más corta para disminuir la altura total de la tarjeta */
    height: 170px;
    object-fit: cover;
}

.store-card-content {
    padding: 18px; /* Reducido ligeramente */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-card h3 {
    font-size: 1.3rem; /* Ajuste sutil de tamaño para mejor proporción */
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 10px 0;
}

.store-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.store-card p strong {
    color: var(--dark-text);
    font-weight: 600;
}

.button-container {
    margin-top: auto;
    text-align: center;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-orange);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.18s ease;
    will-change: transform, box-shadow;
}

/* Burbuja blanca para el icono dentro del botón */
.store-button .icon-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

.store-button .icon-bubble svg {
    width: 14px;
    height: 14px;
    fill: var(--primary-orange);
    transition: transform 0.25s ease;
    display: block;
}

.store-button .icon-bubble i {
    color: var(--primary-orange);
    font-size: 14px;
    line-height: 1;
    display: block;
}

.store-button:hover {
    background-color: var(--primary-orange);
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(2,71,46,0.14), 0 6px 18px rgba(0,0,0,0.12);
}

.store-button:hover .icon-bubble {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.store-button:hover .icon-bubble i {
    transform: translateX(0);
}

/* ========================================
   ANIMACIONES AL SCROLL
======================================== */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.9s ease-out;
}

.slide-in-left { transform: translateX(-80px); }
.slide-in-right { transform: translateX(80px); }
.fade-in-up { transform: translateY(40px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.values-grid .value-card:nth-child(1) { transition-delay: 0.1s; }
.values-grid .value-card:nth-child(2) { transition-delay: 0.2s; }
.values-grid .value-card:nth-child(3) { transition-delay: 0.3s; }
.values-grid .value-card:nth-child(4) { transition-delay: 0.4s; }

.stores-grid .store-card:nth-child(1) { transition-delay: 0.1s; }
.stores-grid .store-card:nth-child(2) { transition-delay: 0.2s; }
.stores-grid .store-card:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE DESIGN (MÓVILES)
======================================== */
@media (max-width: 992px) {
    .content-block {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .values-grid,
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-heading { font-size: 3rem; }
}

@media (max-width: 576px) {
    .section-wrapper {
        margin: 80px auto;
        padding: 0 15px;
    }
    .main-heading {
        font-size: 2rem;
        padding-bottom: 20px;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 50px;
    }
    
    .content-block .text-col p { font-size: 1rem; }
    
    .values-grid,
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .value-card { padding: 30px 15px; }
    .value-card svg { width: 50px; height: 50px; }
    .value-card h3 { font-size: 1.2rem; }
    
}

/* Fin de estilos añadidos por el usuario */

.value-title-pro i {
    margin-right: 0.8rem;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: var(--color-secondary); /* <-- AÑADE ESTA LÍNEA EXACTA */
}

.value-item-pro:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}   /* <--- La llave debe estar aquí, cerrando la regla anterior. */

/* Y la nueva regla empieza después */
.value-item-pro:hover i {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.value-title-pro h4 {
    margin: 0;
    padding: 0;
    flex-grow: 0;
    line-height: 1.3;
}

/* Sección Tiendas (Nueva Cuadrícula) */
.locations-pro {
    background-color: var(--color-white);
}

.locations-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.location-card-pro {
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.location-card-pro .icon-large {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* cuando el icono sea una imagen (ej. assets/img/tienda.png) */
.location-card-pro img.icon-large {
    width: 72px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.location-card-pro h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem; /* Reduced font size for store names */
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-weight: 600;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow if still too long (though reduced size should prevent) */
    text-overflow: ellipsis; /* Add ellipsis if text is cut off */
}

.location-card-pro p {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1.8rem;
    font-family: var(--font-body);
}

/* Sección Contáctanos - AJUSTES DE ANCHO Y ALTURA FINALES */
.contact-pro {
    background-color: var(--color-primary);
    padding: 4rem 0;
    color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
}

.contact-pro .section-title-pro {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700; /* <-- Simplemente añade esta línea aquí */
    margin-bottom: 2.2rem;
}

.contact-pro .section-title-pro::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.contact-pro .section-description-pro {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.contact-grid-pro {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem; /* Espacio entre cuadrados, para que quepan */
    margin-top: 2rem;
    padding: 0 1.5rem;
    flex-wrap: wrap; /* Permitimos que los elementos se envuelvan a la siguiente línea si no caben */
}

.contact-item-pro {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 23%; /* Cada cuadrado ocupará un 23% del espacio, permitiendo el gap */
    max-width: 290px; /* Un poco menos que antes para asegurar que quepan 4 */
    min-width: 200px; /* Mínimo para que no se hagan diminutos */
    height: 300px;
    white-space: normal;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.contact-item-pro:hover {
    transform: translateY(-5px);
    /* Mantener el mismo color de fondo al hacer hover (sin cambio de color) */
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* No cambiar los colores internos de las tarjetas al hacer hover; mantener los estilos por defecto */
.contact-item-pro:hover .contact-icon-pro,
.contact-item-pro:hover h3,
.contact-item-pro:hover p.contact-text,
.contact-item-pro:hover .social-links-pro a {
    /* Mantener color original (no override) */
    transition: color 0.3s ease;
}

.contact-item-pro p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    color: var(--color-white);
    white-space: normal;
    word-break: break-word; /* Rompe palabras largas que no caben */
    overflow-wrap: break-word; /* Para navegadores más modernos (alternativa a word-break) */
}

.contact-item-pro p a {
    color: var(--color-white);
    text-decoration: underline;
    transition: color 0.22s ease;
    font-size: 0.95rem;
    word-break: break-all; /* 'break-all' es más agresivo, rompe en cualquier punto */
    overflow-wrap: break-word; /* Alternativa para compatibilidad */
}

/* Al pasar el mouse sobre links dentro de la tarjeta de contacto, pintarlos de naranja (color de acento) */
.contact-item-pro a:hover {
    color: var(--color-secondary);
}

.contact-icon-pro {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1.2rem;
}

.contact-item-pro h3 {
    font-family: var(--font-heading);
    font-size: 1.36rem;
    color: var(--color-white);
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}

.social-links-pro {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1rem;
}

.social-links-pro a {
    font-size: 2rem;
    color: var(--color-white);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links-pro a:hover {
    color: var(--color-secondary);
    transform: scale(1.06);
}

/* Pie de Página */
.footer-pro {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.footer-pro .container-pro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-links-pro {
    display: flex;
    gap: 1.8rem;
}

.footer-links-pro a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-links-pro a:hover {
    color: var(--color-white);
}

/* Estilos para la página de productos (productos.html) */
.products-section-pro {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);

}

.product-filters-pro {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem; /* Espacio entre los grupos de filtros y el botón de Ver Productos */
    align-items: center; /* Alinea verticalmente los elementos */
}

/* Ajustes para el contenedor de la categoría */
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--color-white);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    /* Mantener flexibilidad para el contenido, pero controlar el tamaño */
    flex-shrink: 0; /* Evita que se encoja por debajo de su contenido */
    flex-basis: auto; /* Permite que el contenido determine el ancho */
    min-width: 280px; /* Un ancho mínimo para que el grupo completo se vea bien */
    justify-content: center; /* Centra el contenido dentro del grupo */
}

.filter-group span {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 1rem;
    white-space: nowrap; /* Evita que el texto "Categoría:" se rompa */
}

/* Ajustes para los botones de filtro */
.filter-btn-pro {
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.5rem; /* Aumentado el padding para hacerlos más grandes */
    margin: 0;
    cursor: pointer;
    font-size: 1rem; /* Aumentado el tamaño de la fuente */
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    /* Ajustes para los botones individuales */
    flex-grow: 1; /* Permite que el botón crezca para llenar el espacio */
    min-width: 90px; /* Ancho mínimo para cada botón */
}

.filter-btn-pro:hover {
    background-color: var(--color-light-gray);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn-pro.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Estilo para el botón "Ver Productos" en la barra de filtros */
.btn-view-products {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap; /* Asegura que el texto no se rompa */
    box-shadow: var(--shadow-small);
}

.btn-view-products:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.product-gallery-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center; /* Centra los ítems en la cuadrícula si no llenan la fila */
    gap: 2.5rem;
    margin-top: 2.5rem;
    align-items: start;
    transition: all 0.3s ease;
}

.product-card-pro {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 320px; /* Ancho máximo para cada tarjeta individual */
    width: 100%; /* Permite que tome el 100% del espacio disponible hasta el max-width */
    margin: 0 auto; /* Centra la tarjeta dentro de su celda de cuadrícula */
}

.product-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.product-card-pro img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: var(--color-white);
    display: block;
}

.product-info-pro {
    padding: 1.8rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info-pro h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.product-price-pro {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.product-info-pro .product-price-pro:last-of-type {
    margin-bottom: 1.2rem;
}

.whatsapp-btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    font-size: 0.88rem; /* Tamaño de fuente ligeramente reducido */
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: auto;
    align-self: center;
    text-transform: uppercase; /* Texto en mayúsculas */
}

.whatsapp-btn-card:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.whatsapp-btn-card i {
    font-size: 1.2rem;
}

/* Estilos para el Modal de Producto (kept for potential future use or if present on other pages) */
.modal-pro {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content-pro {
    background-color: var(--color-white);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
    transform: translateY(-20px);
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body-pro {
    text-align: center;
}

.modal-body-pro img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-small);
}

.modal-body-pro h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-heading);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.modal-body-pro p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body-pro p.product-price-pro {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.close-button-pro {
    color: var(--color-text);
    font-size: 2.5rem;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button-pro:hover,
.close-button-pro:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* Original whatsapp-btn (for modal, now also general for quotation panel send) */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #25D366; /* Verde de WhatsApp */
    color: var(--color-white);
    padding: 1rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

.whatsapp-btn:hover {
    background-color: #1DA851; /* Tono más oscuro al pasar el mouse */
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.whatsapp-btn i {
    font-size: 1.4rem;
}

/* Nuevo estilo para el botón de WhatsApp en la cotización con nuestro verde principal (si se desea diferente al WhatsApp original) */
.whatsapp-btn-green {
    background-color: var(--color-primary); /* Nuestro verde principal */
}

.whatsapp-btn-green:hover {
    background-color: var(--color-primary-dark); /* Tono más oscuro de nuestro verde */
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- INICIO DE ESTILOS PARA LA SECCIÓN DE COTIZACIÓN EN productos.html (MEJORADO) --- */
.quote-section-pro {
    background-color: var(--color-white);
    padding: 4rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    margin-top: 2.5rem; /* Separación de la galería de productos */
    text-align: center; /* Centrar el contenido de la sección */
}

.quote-section-pro .section-title-pro {
    margin-bottom: 2.5rem; /* Más espacio debajo del título principal */
}

/* Estilos para el nuevo panel de cotización (Contenedor principal de los elementos de cotización) */
.quotation-panel {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    padding: 2.5rem;
    margin-top: 2.5rem; /* Ajustado para que se separe bien del título de la sección */
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transiciones para la visibilidad */
    max-width: 800px; /* Ancho máximo para el panel de cotización */
    margin-left: auto;
    margin-right: auto; /* Centrar el panel */
}

/* Clases para ocultar/mostrar (serán manejadas por JS) */
.hidden { /* REGRA AÑADIDA: Para ocultar elementos con display: none */
    display: none !important; 
}

/* NOTA: Las siguientes reglas comentadas NO son necesarias para el .quotation-panel.
   La clase .hidden se aplica a la barra de filtros, no al panel de cotización,
   y el panel de cotización ya tiene display: none; por defecto en el HTML y es
   alternado con display: block; por el JS.
.quotation-panel.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}
*/

/* El título "Genera tu Cotización" o "Productos a Cotizar" */
.quotation-panel .section-subtitle-pro {
    margin-top: 0; /* Anula el margen superior para que no haya doble título */
    margin-bottom: 2rem;
    color: var(--color-heading); /* Asegura el color de título estándar */
    font-size: 2rem; /* Tamaño de fuente adecuado para un subtítulo dentro del panel */
    padding-bottom: 0.5rem; /* Menos espacio para la línea debajo del subtítulo del panel */
}

/* Ajustes para la rayita del subtítulo dentro del panel */
.quotation-panel .section-subtitle-pro::after {
    width: 50px; /* Ancho de la línea más pequeño */
    height: 2px; /* Grosor de línea más fino */
}


/* Formulario de selección de productos */
.quotation-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    align-items: flex-end; /* Alinea los elementos del formulario en la parte inferior */
}

.form-group { /* Usamos .form-group en lugar de .form-group-pro para compatibilidad con el diseño original de la cotización */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea etiquetas a la izquierda */
}

.form-group label {
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control { /* Usamos .form-control para selects e inputs */
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 220px; /* Ancho fijo para los selects e inputs */
    max-width: 100%;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white); /* Fondo blanco para controles de formulario */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none; /* Elimina estilos por defecto en WebKit */
    -moz-appearance: none; /* Elimina estilos por defecto en Mozilla */
    appearance: none; /* Elimina estilos por defecto */
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 71, 46, 0.2); /* Sombra suave para el enfoque, usando color-primary */
}

/* Flecha para el select */
.form-control.select-arrow { /* Aplica esta clase específicamente a tus selects si tienen flecha */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2302472E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2em;
    padding-right: 2.5rem; /* Para que el texto no tape la flecha */
}


#add-to-quotation { /* Botón de añadir a la cotización */
    margin-top: 1.5rem; /* Ajuste para alinear con los otros elementos */
    padding: 0.9rem 2rem;
    background-color: var(--color-secondary); /* Usa el color secundario para este botón */
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-small);
}

#add-to-quotation:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/* Contenedor de la lista de productos cotizados */
.quotation-list-container {
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); /* Sombra interna para el contenedor de la lista */
    text-align: left; /* Alinea el texto de la lista a la izquierda */
    max-height: 400px; /* Altura máxima para la lista de productos */
    overflow-y: auto; /* Permite scroll si hay muchos productos */
    scrollbar-width: thin; /* Para navegadores compatibles (Firefox) */
    scrollbar-color: var(--color-primary) var(--color-light-gray); /* Color del scrollbar */
}

/* Estilos para el scrollbar en Webkit (Chrome, Safari) */
.quotation-list-container::-webkit-scrollbar {
    width: 8px;
}

.quotation-list-container::-webkit-scrollbar-track {
    background: var(--color-light-gray);
    border-radius: 10px;
}

.quotation-list-container::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 2px solid var(--color-light-gray);
}


.quotation-list-container h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    text-align: center; /* Título de la lista centrado */
}

.quotation-items {
    list-style: none; /* Elimina los puntos de la lista */
    padding: 0;
    margin: 0;
}

.quotation-items li {
    background-color: var(--color-white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Sombra suave para cada item de la lista */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quotation-items li:last-child {
    margin-bottom: 0; /* No margen inferior para el último item */
}

.quotation-items li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.empty-list-message {
    text-align: center;
    color: var(--color-text);
    font-style: italic;
    padding: 1.5rem;
}

.quotation-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1; /* Permite que los detalles ocupen el espacio disponible */
}

.quotation-item-img {
    width: 60px; /* Tamaño de la imagen del producto en la lista */
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.quotation-item-text {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: var(--color-text);
}

.quotation-item-text span {
    margin-bottom: 0.2rem;
}

.quotation-item-text span:last-child {
    margin-bottom: 0;
}

.quotation-item-text strong {
    color: var(--color-heading);
    font-weight: 700;
}

.remove-item-btn {
    background-color: #f44336; /* Rojo para eliminar */
    color: var(--color-white);
    border: none;
    border-radius: 50%; /* Botón redondo */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Evita que el botón se encoja */
}

.remove-item-btn:hover {
    background-color: #d32f2f; /* Rojo más oscuro al pasar el mouse */
    transform: scale(1.1);
}

.quotation-total {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: right;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee; /* Línea separadora para el total */
}

.quotation-total-amount {
    color: var(--color-secondary); /* Resalta el monto total */
}

/* --- FIN DE ESTILOS PARA LA SECCIÓN DE COTIZACIÓN --- */


/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .section-title-pro {
        font-size: 2.8rem;
    }

    .section-subtitle-pro {
        font-size: 2.2rem;
    }

    .about-card-pro h3 {
        font-size: 1.8rem;
    }

    .value-item-pro {
        flex: 1 1 45%; /* 2 columnas en tablets */
        max-width: 350px;
    }

    .contact-item-pro {
        width: 47%; /* 2 columnas en tablets */
    }

    .product-gallery-pro {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .filter-group {
        flex-direction: column; /* Apila los filtros verticalmente */
        align-items: center;
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 400px; /* Limita el ancho en el centro */
        margin: 0 auto;
        padding: 1.2rem 1rem;
    }

    .filter-group span {
        margin-bottom: 0.8rem;
    }

    .filter-btn-pro {
        width: 100%; /* Los botones ocupan todo el ancho */
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .header-pro .container-pro {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-pro ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-pro li {
        margin-left: 0;
    }

    .section-title-pro {
        font-size: 2.2rem;
    }

    .section-description-pro {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .section-subtitle-pro {
        font-size: 1.8rem;
        margin-top: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }

    .value-item-pro {
        flex: 1 1 100%; /* Una columna en móviles */
        max-width: 320px;
    }

    .locations-grid-pro {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }

    .contact-grid-pro {
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
    }

    .contact-item-pro {
        width: 90%; /* Ancho completo para móviles */
        max-width: 350px;
        height: auto; /* Altura automática */
        padding: 1.5rem;
    }

    .footer-links-pro {
        flex-direction: column;
        gap: 0.8rem;
    }

    .product-filters-pro {
        flex-direction: column; /* Apila los filtros y el botón de cotización */
        gap: 2rem;
    }

    .quotation-form {
        flex-direction: column; /* Apila los elementos del formulario */
        align-items: center;
        gap: 1.2rem;
    }

    .form-group {
        width: 100%; /* Ocupa todo el ancho disponible */
        align-items: center; /* Centra etiquetas y controles */
    }

    .form-group label {
        text-align: center;
    }

    .form-control {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 280px; /* Ancho máximo para el control */
    }

    #add-to-quotation {
        width: 100%;
        max-width: 280px;
    }

    .quotation-list-container {
        padding: 1.5rem;
    }

    .quotation-item-details {
        flex-direction: column; /* Apila imagen y texto en la lista */
        text-align: center;
    }

    .quotation-item-img {
        margin-bottom: 0.8rem;
    }

    .quotation-item-text {
        align-items: center;
    }
}

/* Reducir el logo en pantallas pequeñas para evitar romper el layout */
@media (max-width: 480px) {
    .logo-pro-img { height: 44px; margin-right: 0.5rem; }
}

@media (max-width: 480px) {
    .section-title-pro {
        font-size: 1.8rem;
    }
    .section-subtitle-pro {
        font-size: 1.5rem;
    }
    .logo-pro-link {
        font-size: 1.5rem;
    }
    .btn-pro {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .product-card-pro {
        min-width: unset; /* Elimina el min-width para adaptarse mejor */
    }
    .quotation-total {
        font-size: 1.5rem;
    }
}

/* ============================================================= */
/* === AJUSTES DE ESTILOS PARA LA BARRA DE FILTROS Y BÚSQUEDA === */
/* ============================================================= */

.product-filters-pro {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan si no hay espacio */
    align-items: flex-end; /* Alinea los elementos a la parte inferior de la línea */
    justify-content: center; /* <--- CAMBIO CLAVE: Centra los elementos horizontalmente */
    gap: 1.5rem; /* Espacio entre los elementos (ajustado para dar más espacio a la barra de búsqueda) */
    padding: 1.5rem 2rem; /* Padding interno del cuadro blanco */
    background-color: var(--color-white); /* Fondo blanco del cuadro */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    margin-bottom: 3.5rem;
    max-width: 1000px; /* Ancho máximo del cuadro blanco completo. Ajusta si necesitas que todo el contenedor sea más ancho. */
    margin-left: auto; /* Centra el cuadro blanco horizontalmente */
    margin-right: auto; /* Centra el cuadro blanco horizontalmente */
}

/* Estilo general para los grupos de formulario (etiqueta + input/select) */
.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto; /* Permite que el ancho se ajuste al contenido o al flex-grow */
    flex-shrink: 0; /* Evita que se encoja por debajo de su contenido */
    flex-grow: 0; /* Por defecto, no crecerán más allá de su contenido */
}

/* Estilo para las etiquetas dentro de los grupos de filtro */
.form-group label {
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    white-space: nowrap; /* Evita que el texto de la etiqueta se rompa */
}

/* Estilo general para los controles de formulario (input y select) */
.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 71, 46, 0.2);
}

/* Anchos específicos para los campos de filtro */
#category-select { /* ID del select de categoría */
    min-width: 180px;
    max-width: 250px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2302472E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#search-input { /* ID del input de búsqueda por nombre */
    flex-grow: 1; /* Permite que el input de búsqueda se estire para llenar el espacio */
    min-width: 380px; /* <--- AUMENTADO: Ancho mínimo en escritorio para que sea bastante grande */
    max-width: 700px; /* <--- Mantenido alto para permitir que se estire mucho */
}

/* Ajustes para el botón "Hacer Cotización" dentro de los filtros */
#toggle-quotation-view {
    margin-top: 0; /* Asegura que no tenga margen superior extra de .form-group */
    padding: 0.9rem 2.2rem; /* Mantén este padding para su tamaño */
    white-space: nowrap; /* Evita que el texto se rompa */
    align-self: flex-end; /* Alinea el botón a la parte inferior */
    flex-shrink: 0; /* Evita que el botón se encoja */
    width: auto; /* Permite que el ancho se ajuste a su contenido (padding + texto) */
    min-width: 150px; /* Un ancho mínimo para el botón */
    max-width: 200px; /* Un ancho máximo razonable para el botón */
}
/* FIN de los estilos específicos para #toggle-quotation-view */


/* REGLA IMPORTANTE: Para la clase 'hidden' que usará JavaScript para ocultar elementos */
.hidden {
    display: none !important;
}

/* Media Queries para Responsividad de los filtros */

@media (max-width: 1024px) {
    .product-filters-pro {
        flex-direction: column; /* Apila los filtros verticalmente */
        align-items: center; /* Centra los elementos apilados */
        justify-content: center; /* Centra el contenido cuando es una columna */
        max-width: 90%; /* Ancho de la barra completa en tablets */
        padding: 1.5rem; /* Ajusta el padding para que no sea excesivo */
        gap: 1.5rem; /* Ajusta el espacio entre elementos apilados en tablets */
    }

    /* ======================================================= */
/* ===== CÓDIGO PARA CENTRAR EL BOTÓN SOLO EN MÓVIL ===== */
/* ======================================================= */

/* Esta regla solo se aplica en pantallas de 1024px o menos (tablets y móviles) */
@media (max-width: 1024px) {

    /* Selecciona el botón por su ID y lo centra. */
    #toggle-quotation-view {
        align-self: center; /* Anula la alineación de escritorio y lo centra */
    }
    
}

    .product-filters-pro .form-group {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 650px; /* <--- AUMENTADO: Permite que los campos (incluido search-input) sean más anchos en tablets */
        align-items: center; /* Centra las etiquetas y campos */
    }

    .form-group label {
        text-align: center; /* Centra la etiqueta en modo móvil */
    }

    #category-select,
    #search-input,
    #toggle-quotation-view { /* Aplica a todos los controles dentro de los filtros */
        width: 100%; /* Hacen que los campos y el botón ocupen todo el ancho disponible de su max-width padre */
    }
}

@media (max-width: 768px) {
    /* Ajustes específicos para móviles para la barra de filtros */
    .product-filters-pro .form-group {
        max-width: 400px; /* Ajusta el ancho de los campos en móviles */
    }
    #toggle-quotation-view {
        max-width: 250px; /* Ajusta el tamaño del botón en móviles más pequeños */
    }
}

@media (max-width: 480px) {
    /* Puedes refinar más los max-width si lo deseas para pantallas muy pequeñas */
    .product-filters-pro .form-group {
        max-width: 300px;
    }
    #toggle-quotation-view {
        max-width: 200px;
    }
    }

/* ============================================== */
/* ===== ESTILOS GENERALES DEL CUERPO (BODY) ==== */
/* ============================================== */
body {
    /* SOLUCIÓN: Oculta la barra de desplazamiento horizontal */
    overflow-x: hidden;
}

/* ============================================== */
/* ===== NEUTRALIZAR ANIMACIÓN SCROLL-REVEAL ==== */
/* ============================================== */
/* Esta regla asegura que los elementos sean visibles */
/* desde el principio, desactivando el efecto de "aparecer". */
.scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
}


/* ... (aquí van todos tus otros estilos, como .video-hero, etc.) ... */


/* ============================================== */
/* ===== ESTILOS DEFINITIVOS PARA HERO VIDEO ==== */
/* (CON VIDEO VISIBLE EN MÓVIL)                 */
/* ============================================== */

/* Contenedor principal de la sección hero */
.video-hero {
    position: relative;
    /* CAMBIO: Se restaura una altura mayor para la vista de computadora */
    height: 85vh; 
    
    /* TÉCNICA DE ALINEACIÓN A PANTALLA COMPLETA (FULL BLEED) */
    width: 100vw;
    max-width: 100vw; /* Anula cualquier max-width anterior */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    overflow: hidden; /* Oculta partes del video que se salgan */
    padding: 0;
    /* Usamos fondo transparente: el video estará encima del fondo del contenedor */
    background-color: transparent;
}

/* El elemento <video> en sí (se aplica en todas las vistas) */
.hero-video__video {
    /* CAMBIO: Se restaura 'cover' para que el video llene el espacio en escritorio */
    object-fit: cover; 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Colocamos el video encima del fondo del contenedor */
    opacity: 0; /* Ocultamos inicialmente el elemento <video> hasta que esté listo */
    transition: opacity 600ms ease; /* Fade-in cuando el video esté listo */
    pointer-events: none; /* Evita que el video capture clicks */
}

.hero-video__video.is-visible {
    opacity: 1;
}


/* ======================================================= */
/* ===== Media Query para DISPOSITIVOS MÓVILES ===== */
/* (Se aplica si el ancho de pantalla es de 768px o menos) */
/* ======================================================= */
@media (max-width: 768px) {
    
    /* En móvil, ajustamos la altura del contenedor. */
    .video-hero {
        /* CAMBIO: Se mantiene la altura corta solo para móviles */
        height: 40vh;
    }

    /* SOLUCIÓN PARA AJUSTE VERTICAL: */
    /* Se sobreescribe 'object-fit' a 'contain' solo para móviles */
    .hero-video__video {
        object-fit: contain;
    }

    /* ===== CÓDIGO RESTAURADO PARA BARRA DE BÚSQUEDA ===== */
    /* Esto permite que la barra de búsqueda se encoja en móviles */
    #search-input {
        min-width: 0;
        box-sizing: border-box;
    }
}

/* ================================================================ */
/* AJUSTE FINAL PARA ACERCAR EL TÍTULO "NUESTRAS TIENDAS" A LA CIMA */
/* ================================================================ */

/* PASO 1: Reducir el gran espacio blanco de TODA la sección de tiendas */
.locations-pro {
    padding-top: 2.5rem; /* <-- ¡ESTA ES LA CLAVE! Reduce el relleno superior. Prueba con 2rem o 3rem si quieres. */
}

/* PASO 2: Reducir o eliminar el margen superior del TÍTULO para acercarlo más */
.locations-pro .section-title-pro {
    margin-top: 1rem; /* <-- Lo hemos reducido muchísimo. Puedes probar incluso con 0. */
    
    /* Mantenemos los otros estilos que ya tenías definidos */
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 2.2rem;
}

/* Mantenemos el estilo de la rayita por consistencia */
.locations-pro .section-title-pro::after {
    width: 80px;
    height: 4px;
}

/* ==========================================================================
   INICIO: CÓDIGO PARA LA NUEVA PÁGINA DE PRODUCTOS DINÁMICA
   (Pega todo este bloque al final de tu archivo style.css)
   ========================================================================== */

/* --- ESTRUCTURA PRINCIPAL DE LA PÁGINA DE PRODUCTOS --- */
.page-layout-pro {
    display: flex;
    flex-direction: column; 
    padding: 15px;
    gap: 30px;
    max-width: 1700px;
    margin: auto;
}
.main-content-pro { order: 1; }
#quotation-sidebar-desktop { display: none; }
#quotation-sidebar-mobile { display: block; margin-bottom: 30px; }

/* --- CABECERA Y FILTROS --- */
.header-container-pro {
    background-color: var(--color-white); padding: 20px; border-radius: var(--border-radius);
    text-align: center; box-shadow: var(--shadow-small); margin-bottom: 30px;
}
.header-container-pro .section-title-pro {
    font-family: var(--font-heading); font-size: 2rem; color: var(--color-heading);
    margin: 0 0 10px 0; border: none; padding: 0;
}
.header-container-pro .section-title-pro::after {
    display: none; /* Oculta la rayita del título general */
}
.header-container-pro .section-description-pro {
    font-size: 1rem; color: var(--color-text); margin: 0 auto; text-align: center;
}

.product-filters-pro {
    display: flex; flex-direction: column; gap: 15px; background-color: var(--color-white);
    padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow-small); margin-bottom: 30px;
}
.filter-item { display: flex; flex-direction: column; }
.filter-item label { font-weight: 600; font-size: 0.85rem; margin-bottom: 5px; text-align: left; color: #2F2F2F; }
.filter-item select, .filter-item input {
    padding: 10px; border-radius: var(--border-radius); border: 1px solid #ccc; font-size: 1rem;
    font-family: var(--font-body); box-sizing: border-box; -webkit-appearance: none; -moz-appearance: none;
    appearance: none; background-position: right 15px center; background-repeat: no-repeat;
    background-size: 1em; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2302472E%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
}
.filter-item input { background-image: none; }

/* --- GALERÍA Y TARJETA DE PRODUCTO --- */
.product-gallery-pro { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.product-card { background-color: var(--color-white); border: 1px solid #e8e8e8; border-radius: var(--border-radius); box-shadow: var(--shadow-small); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.product-image { padding: 10px; border-bottom: 1px solid #f0f0f0; height: 180px; display: flex; align-items: center; justify-content: center; }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info { padding: 15px; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.75rem; color: #888; margin-bottom: 5px; text-transform: uppercase; font-weight: 700; }
.product-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--color-heading); line-height: 1.4; min-height: 2.8em; margin: 0 0 8px 0; }
.price-list-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.price-unit-row { display: flex; justify-content: space-between; align-items: center; background-color: var(--color-light-gray); padding: 8px; border-radius: 6px; }
.price-unit-details .unit-name { font-size: 0.8rem; font-weight: 600; color: var(--color-text); }
.price-unit-details .price-line { font-size: 1.1rem; font-weight: 700; color: var(--color-secondary); }
.price-original { font-size: 0.8rem; color: #999; text-decoration: line-through; margin-left: 5px; }
.btn-cotizar { background-color: #2ecc71; color: var(--color-white); border: none; border-radius: 50%; width: 38px; height: 38px; font-size: 1.6rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; }
.product-likes { margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; color: #555; font-weight: 600; cursor: pointer; transition: color 0.2s ease-in-out; }
.product-likes:hover { color: var(--color-secondary-dark); }
.product-likes .fa-heart { font-size: 1.2rem; margin-right: 8px; }
.product-likes.liked { color: var(--color-secondary); cursor: default; }

/* --- BARRA LATERAL DE COTIZACIÓN --- */
.quotation-sidebar-pro { background-color: var(--color-white); padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow-medium); }
.quotation-sidebar-pro h4 { font-family: var(--font-heading); font-size: 1.5rem; text-align: center; margin-top: 0; color: #2F2F2F; border-bottom: 2px solid #ecf0f1; padding-bottom: 15px; margin-bottom: 20px; }
.quotation-item { display: flex; align-items: center; margin-bottom: 15px; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.quotation-item-img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; border: 1px solid #eee; flex-shrink: 0; }
.quotation-item-info { flex-grow: 1; display: flex; flex-direction: column; }
.quotation-item-name { margin: 0 0 5px 0; font-weight: 600; font-size: 0.9rem; }
.quotation-item-price { font-size: 0.85rem; color: #555; font-weight: 600; margin-bottom: 8px; }
.quantity-controls { display: flex; align-items: center; gap: 10px; }
.quantity-btn { background-color: #ecf0f1; border: 1px solid #bdc3c7; color: var(--color-text); width: 28px; height: 28px; border-radius: 50%; font-size: 1.2rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px 0; }
.quantity-btn:disabled { visibility: hidden; }
.quantity-display { font-weight: 700; font-size: 1.1rem; min-width: 25px; text-align: center; }
.btn-remove-quotation { background: #e74c3c; color: var(--color-white); border: none; border-radius: 50%; width: 25px; height: 25px; font-size: 1rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.quotation-total { margin-top: 20px; padding-top: 15px; border-top: 2px solid #ecf0f1; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #2F2F2F; }
#generate-whatsapp { width: 100%; margin-top: 20px; padding: 15px; font-size: 1.1rem; background-color: #25D366; color: var(--color-white); border: none; border-radius: var(--border-radius); font-weight: bold; cursor: pointer; }

/* --- ESTILOS RESPONSIVOS PARA LA PÁGINA DE PRODUCTOS --- */
@media (min-width: 1024px) {
    .page-layout-pro { display: grid; grid-template-columns: 380px 1fr; gap: 40px; padding: 0 30px 30px 30px  ; }
    #quotation-sidebar-desktop { display: block; position: sticky; top: 30px; align-self: start; }
    #quotation-sidebar-mobile { display: none; }
    .main-content-pro { order: initial; }
    .product-filters-pro { flex-direction: row; justify-content: flex-start; align-items: flex-end; margin-bottom: 40px; }
    .product-filters-pro .filter-item { flex-grow: 0; flex-shrink: 0; width: 180px; }
    .product-filters-pro .search-container-pro { flex-grow: 1; width: auto; }
    .filter-item input { width: 100%; }
    .product-gallery-pro { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .product-name { min-height: 2.8em; margin: 0 0 8px 0; }
}
/* ==========================================================================
   FIN: CÓDIGO PARA LA NUEVA PÁGINA DE PRODUCTOS DINÁMICA
   ========================================================================== */

/* ==========================================================================
   ESTILOS GENERALES Y PARA MÓVILES (MOBILE-FIRST)
   ========================================================================== */
body { font-family: 'Open Sans', sans-serif; background-color: #f4f6f9; color: #333; margin: 0; }
.page-layout-pro { display: flex; flex-direction: column; padding: 15px; gap: 20px; max-width: 1700px; margin: auto; }
.main-content-pro { order: 1; }
#quotation-sidebar-desktop { display: none; }
#quotation-sidebar-mobile { display: block; }

/* --- CABECERA Y FILTROS --- */
.header-container-pro { background-color: #ffffff; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.header-container-pro .section-title-pro { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; color: #2F2F2F; margin: 0 0 10px 0; padding-bottom: 15px; border: none; position: relative; }
.header-container-pro .section-title-pro::after { content: ""; display: block; width: 60px; height: 4px; background-color: var(--color-secondary); margin: 15px auto 0 auto; border-radius: 2px; }
.header-container-pro .section-description-pro { font-size: 1.1rem; color: #7f8c8d; margin: 0 auto; max-width: 700px; }
.product-filters-pro { 
    display: flex; flex-direction: column; gap: 20px; background-color: #ffffff;
    padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 30px;
}
.filter-item { display: flex; flex-direction: column; width: 100%; }
.filter-item label { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: #2F2F2F; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; text-align: left; }
.filter-item select, .filter-item input {
    background-color: #f8f9fa; border: 1px solid #ddd; border-radius: 8px;
    padding: 10px; font-size: 1rem; font-family: 'Open Sans', sans-serif;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-position: right 15px center; background-repeat: no-repeat; background-size: 0.9em;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c3e50%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
}
.filter-item input { background-image: none; }
.filter-item select:focus, .filter-item input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(2, 71, 46, 0.2); }

/* --- GALERÍA Y TARJETA DE PRODUCTO --- */
.product-gallery-pro { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.product-card { background-color: #fff; border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; position: relative; /* <-- ASEGÚRATE DE QUE ESTA LÍNEA ESTÉ */
    overflow: hidden;  /* <-- AÑADE ESTA LÍNEA (¡Muy importante!) */
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
/* CAMBIO: Imagen del producto en la galería más grande */
.product-image { padding: 10px; border-bottom: 1px solid #f0f0f0; height: 220px; display: flex; align-items: center; justify-content: center; background-color: #fafafa; }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.product-info { padding: 15px; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.75rem; color: #888; margin-bottom: 5px; text-transform: uppercase; font-weight: 700; }
.product-name { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 600; color: #4a4a4a; line-height: 1.4; min-height: 2.8em; margin: 0 0 8px 0; }
.price-list-container { margin-top: auto; display: flex; flex-direction: column; gap: 8px; } /* CAMBIO: Se empuja este contenedor al fondo */
.price-unit-row { display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; padding: 8px; border-radius: 6px; border: 1px solid #f0f0f0; }
/* Ribbon / etiqueta diagonal "Nuevo" */
/* ETIQUETA "NUEVO" - VERSIÓN FINAL CORREGIDA */
.new-badge {
    position: absolute;
    /* Coordenadas ajustadas para que cruce la esquina exactamente por el centro */
    top: 15px;
    left: -45px;
    
    /* Ancho suficiente para cruzar la esquina */
    width: 140px;
    
    /* Estilos visuales */
    background: #dc2626; /* Rojo */
    color: white;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 0;
    letter-spacing: 1px;
    text-align: center; /* Centra el texto en la cinta */
    
    /* Rotación y profundidad */
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 20;
    pointer-events: none;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .new-badge {
        width: 120px;
        top: 12px;
        left: -40px;
        font-size: 9px;
    }
}

/* --- ETIQUETA "OFERTA" (Color Naranja) --- */
.offer-badge {
    position: absolute;
    /* Usamos las mismas coordenadas que "NUEVO" para consistencia */
    top: 15px;
    left: -45px;
    
    /* Mismo ancho para cruzar la esquina igual */
    width: 140px;
    
    /* Estilos visuales: COLOR NARANJA */
    background: #f59e0b; /* Un naranja intenso y atractivo para ofertas */
    color: white;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 0;
    letter-spacing: 1px;
    text-align: center; /* Texto centrado */
    
    /* Rotación y sombra */
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 20;
    pointer-events: none;
}

/* Ajuste para móviles (igual que el de nuevo) */
@media (max-width: 600px) {
    .offer-badge {
        width: 120px;
        top: 12px;
        left: -40px;
        font-size: 9px;
    }
}
.price-unit-details .unit-name { font-size: 0.8rem; font-weight: 600; color: #555; }
.price-unit-details .price-line { font-size: 1.1rem; font-weight: 700; color: #d9534f; }
.price-original { font-size: 0.8rem; color: #999; text-decoration: line-through; margin-left: 5px; }
.btn-cotizar { background-color: var(--color-primary); color: white; border: none; border-radius: 50%; width: 38px; height: 38px; font-size: 1.6rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; transition: background-color 0.2s; }
.btn-cotizar:hover { background-color: var(--color-primary-dark); }
/* CAMBIO: Se eliminaron los estilos de .product-likes */

/* --- BARRA LATERAL DE COTIZACIÓN --- */
.quotation-sidebar-pro { background-color: #ffffff; padding: 25px; border-radius: 12px; box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08); }
.quotation-sidebar-pro h4 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; text-align: center; margin-top: 0; color: #2F2F2F; border-bottom: 2px solid #ecf0f1; padding-bottom: 15px; margin-bottom: 20px; position: relative; }
.quotation-sidebar-pro h4::after { content: ""; display: block; width: 40px; height: 3px; background-color: var(--color-secondary); margin: 10px auto 0 auto; border-radius: 2px; }
.quotation-item { display: flex; align-items: center; margin-bottom: 15px; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.quotation-item-img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; border: 1px solid #eee; flex-shrink: 0; }
.quotation-item-info { flex-grow: 1; display: flex; flex-direction: column; }
.quotation-item-name { margin: 0 0 5px 0; font-weight: 600; font-size: 0.9rem; }
.quotation-item-price { font-size: 0.85rem; color: #555; font-weight: 600; margin-bottom: 8px; }
.quantity-controls { display: flex; align-items: center; gap: 10px; }
.quantity-btn { background-color: #ecf0f1; border: 1px solid #bdc3c7; color: #2c3e50; width: 28px; height: 28px; border-radius: 50%; font-size: 1.2rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px 0; }
.quantity-btn:disabled { visibility: hidden; }
.quantity-display { font-weight: 700; font-size: 1.1rem; min-width: 25px; text-align: center; }
.btn-remove-quotation { background: #d9534f; color: white; border: none; border-radius: 50%; width: 25px; height: 25px; font-size: 1rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.quotation-total { margin-top: 20px; padding-top: 15px; border-top: 2px solid #ecf0f1; display: flex; justify-content: space-between; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; color: #2F2F2F; }
#generate-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 15px; padding: 12px 18px; font-size: 0.9rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; background-color: var(--color-primary); color: var(--color-white); border: none; border-radius: 50px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); cursor: pointer; transition: all 0.3s ease; }
#generate-whatsapp:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); }
#generate-whatsapp .fab { font-size: 1.4rem; }

/* ==========================================================================
   ESTILOS PARA PANTALLAS GRANDES (VISTA PC)
   ========================================================================== */
@media (min-width: 1024px) {
    .page-layout-pro { display: grid; grid-template-columns: 380px 1fr; gap: 30px; padding: 30px; }
    #quotation-sidebar-desktop { display: block; position: sticky; top: 30px; align-self: start; }
    #quotation-sidebar-mobile { display: none; }
    .main-content-pro { order: initial; }
    .header-container-pro { margin-top: 0; }
    .product-filters-pro { flex-direction: row; justify-content: flex-start; align-items: flex-end; margin-top: 30px; margin-bottom: 30px; }
    .product-filters-pro .filter-item { flex-grow: 0; flex-shrink: 0; width: 220px; }
    .product-filters-pro .search-container-pro { flex-grow: 1; width: auto; }
    .filter-item input { width: 100%; }
    .product-gallery-pro { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 0; }
    .product-name { min-height: 2.8em; margin: 0 0 8px 0; }
}

/* ===============================================================
   CORRECCIÓN FINAL PARA ELIMINAR ESPACIO SUPERIOR EN PRODUCTOS
   =============================================================== */
.main-content-pro .section-pro {
    padding-top: 2rem !important;
}

/* --- SKELETON DE CARGA PARA TARJETAS DE PRODUCTO --- */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; padding-top: 8px; margin-top: 8px; }
.skeleton-card { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 12px; min-height: 260px; overflow: hidden; }
.skeleton-img { width: 100%; height: 160px; background: linear-gradient(90deg, #f3f4f6 25%, #eceff1 37%, #f3f4f6 63%); background-size: 400% 100%; border-radius: 6px; animation: shimmer 1.2s linear infinite; }
.skeleton-body { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.skeleton-line { height: 12px; background: #eef0f2; border-radius: 6px; width: 100%; }
.skeleton-line.short { width: 45%; }
.skeleton-line.price { height: 18px; width: 60%; }

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* --- ANIMACIÓN DE ENTRADA SUAVE --- */

/* 1. Estado inicial: Invisible y un poco más abajo */
.product-card {
    opacity: 0;
    transform: translateY(20px); /* Empieza 20px más abajo */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

/* 2. Estado visible: Aparece y sube a su sitio */
.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Opcional: Skeleton (Caja gris) mientras carga */
#products-skeleton {
    display: none; /* Se controla con JS */
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
    animation: palpitar 1.5s infinite;
}

@keyframes palpitar {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

