@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --white: #FFFFFF;
    --black: #000000;
    --blue-primary: #034C8C;
    --blue-dark: #071D39;
    --red-dark: #74001F;
    --red-primary: #E30613;
    --red-accent: #EB3D2A;
    --gray-light: #f8f9fc;
    --gray-medium: #e8eef7;
}

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

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
    background: var(--gray-light);
}

/* ========== MATERIAL ICONS CONFIGURATION ========== */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
}

/* ========== NAVEGACIÓN ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0.1rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: var(--blue-dark);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
     flex-shrink: 0;
}

.logo img {
    width: 300px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--red-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.nav-links a.active {
    background: var(--blue-primary);
    color: var(--white);
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 320px;
    height: calc(100vh - 80px);
    background: var(--white);
    box-shadow: 2px 0 20px rgba(0,0,0,0.05);
    padding: 2rem;
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-270px);
}

.sidebar-toggle {
    position: fixed;
    left: 320px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--blue-primary);
    color: white;
    border: none;
    padding: 1rem 0.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.sidebar.collapsed + .sidebar-toggle {
    left: 50px;
}

.sidebar-toggle:hover {
    background: var(--red-primary);
}

/* ========== FILTROS DEL SIDEBAR ========== */
.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--red-primary);
}

.search-box {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 10px rgba(3, 76, 140, 0.2);
}

.category-tree {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--blue-dark);
}

.category-main:hover {
    background: var(--blue-primary);
    color: white;
}

.category-main.active {
    background: var(--red-primary);
    color: white;
}

.category-main i {
    transition: transform 0.3s ease;
}

.subcategory-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0.5rem;
}

.subcategory-list.open {
    max-height: 300px;
}

.subcategory-item {
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-left: 2px solid var(--gray-medium);
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.subcategory-item:hover, .subcategory-item.active {
    color: var(--red-primary);
    border-left-color: var(--red-primary);
    background: rgba(227, 6, 19, 0.05);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.filter-option:hover {
    background: rgba(3, 76, 140, 0.05);
    border-radius: 4px;
}

.filter-checkbox {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    accent-color: var(--red-primary);
}

.filter-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    flex: 1;
}

/* ========== CONTENIDO PRINCIPAL ========== */
.main-content {
    margin-left: 320px;
    margin-top: 80px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 80px);
}

.main-content.expanded {
    margin-left: 50px;
}

/* ========== HEADER DE CONTENIDO ========== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.results-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.results-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.results-filters {
    font-size: 0.95rem;
    color: var(--blue-dark);
    /* Color más oscuro para mejor lectura */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.view-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sort-select {
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    margin-right: 1rem;
    font-size: 0.9rem;
    background: white;
}

.view-btn {
    padding: 0.8rem;
    border: 2px solid var(--blue-primary);
    background: transparent;
    color: var(--blue-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active, .view-btn:hover {
    background: var(--blue-primary);
    color: white;
}

/* ========== GRID MASONRY OPTIMIZADO ========== */
.products-masonry {
   display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    /*align-items: start;*/
    align-items: stretch; /* 1. Hace que todas las tarjetas en una fila tengan la misma altura. */
    justify-content: space-evenly;
}

.products-masonry.compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 1.2rem;
    max-width: 1300px;
}

.products-masonry.large {
    grid-template-columns: repeat(auto-fill, minmax(400px, 450px));
    gap: 2.5rem;
    max-width: 1000px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: fit-content;
    max-width: 400px;
    width: 100%;
    /* 2. Convierte la tarjeta en un contenedor flexible vertical. */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ========== GALERÍA DE PRODUCTO ========== */
/*.product-gallery {
    position: relative;
    height: 220px;
    overflow: hidden;
}*/
/* 3. Estandariza la altura y el comportamiento de la imagen. */
.product-gallery {
    aspect-ratio: 4 / 3;
    /* Proporción 4:3, puede ajustarla (ej. 16/9, 1/1) */
    flex-shrink: 0;
    /* Evita que la imagen se encoja */
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;/*ya no contain para mostrar sin deformar*/
    display: block;

}

.gallery-main {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .gallery-slide img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-light), var(--gray-medium));
    color: var(--blue-primary);
    font-size: 3rem;
}

.gallery-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--red-primary);
    transform: scale(1.3);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.badge.new { background: #28a745; }
.badge.featured { background: var(--red-primary); }
.badge.eco { background: #17a2b8; }
/* Colores específicos para cada línea */
.badge-profesional {
    background: var(--blue-primary);
    /* Azul oscuro para la línea profesional */
}

.badge-residencial {
    background: #28a745;
    /* Verde para la línea residencial */
}

/* Puede añadir más colores para otras etiquetas en el futuro */
.badge-oferta {
    background: var(--red-primary);
}

/* ========== INFORMACIÓN DEL PRODUCTO ========== */
/* 4. Convierte el contenedor de información en un flexbox que ocupa el espacio restante. */ .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Hace que .product-info se estire para llenar el espacio vertical. */
    padding: 1.5rem;
}
/* 5. Este nuevo contenedor crecerá para empujar los botones hacia abajo. */
.product-content-wrapper {
    flex-grow: 1;
}

.product-header {
    margin-bottom: 1rem;
}

.product-category {
    color: var(--blue-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-code {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 1rem;
}

/* ========== ESPECIFICACIONES CLAVE ========== */
.key-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    background: var(--gray-light);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: var(--gray-medium);
}

.spec-icon {
    font-size: 1.2rem;
    color: var(--red-primary);
    margin-bottom: 0.3rem;
}

.spec-value {
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 0.9rem;
}

.spec-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ACCIONES DEL PRODUCTO ========== */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0; /* 6. Asegura que los botones no se estiren. */
}

.btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--red-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
}

.btn-outline:hover {
    background: var(--blue-primary);
    color: white;
}

/* ========== DESCARGAS RÁPIDAS ========== */
.quick-downloads {
    border-top: 1px solid var(--gray-medium);
    padding-top: 1rem;
}

.downloads-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-links {
    display: flex;
    justify-content: space-around;
}

.download-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.download-link:hover {
    background: var(--gray-light);
    color: var(--red-primary);
    transform: translateY(-2px);
}

.download-link .material-symbols-outlined {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}
/* ==========================================================================
   PLANTILLA VISUAL DE DETALLE DE PRODUCTO (Reutilizable) 23nov2025
   ========================================================================== */

/* Contenedor principal para la vista de detalle, ya sea en un modal o en una página. */
.product-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.product-detail-view {
    padding: 1rem;
    /* Añade un poco de espacio interno */
}

.product-detail-view .detail-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-medium);
}

.product-detail-view .detail-header h1,
.product-detail-view .detail-header h2 {
    color: var(--blue-dark);
}

.product-detail-view .detail-header p {
    color: #666;
    font-size: 0.9rem;
}

.product-detail-view .detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-detail-view .tab-link {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gray-medium);
    background: transparent;
    color: var(--blue-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.product-detail-view .tab-link:hover {
    background: var(--gray-light);
    border-color: var(--blue-primary);
}

.product-detail-view .tab-link.active {
    background: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
}

.product-detail-view .tab-content {
    position: relative;
}

.product-detail-view .tab-pane {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.3s ease-in-out 0.2s;
}

.product-detail-view .tab-pane.active {
    max-height: 2000px;
    opacity: 1;
}
/* ==========================================================================
   ESTILOS PARA NAVEGACIÓN EN PÁGINA DE PRODUCTO 23nov2025
   ========================================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    /* Clave: empuja los elementos a los extremos */
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-medium);
    gap: 1rem;
    /* Espacio entre elementos si hubiera más de uno */
}

.back-to-catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-catalog-link:hover {
    background-color: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(3, 76, 140, 0.2);
}

.back-to-catalog-link .material-symbols-outlined {
    font-size: 1.1rem;
    font-weight: bold;
}
/* ========== MODAL PARA DETALLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--red-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10001;
}

/* ========== PAGINACIÓN ========== */
.load-more {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: var(--blue-primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

/*------ws-----*/
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1002;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 2.3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    margin-bottom: 0.8rem;
    font-size: 14px;
    display: block;
}

.footer-section a:hover {
    color: var(--red-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    display: block;
}

.footer-section ul li a {
    display: block;
    padding: 0.2rem 0;
}

.footer-logo {
    width: 250px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-anniversary {
    width: 100px;
    height: auto;
    margin-right: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--red-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.4);
}

/* Botón hamburguesa - oculto por defecto */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blue-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Botón de cerrar sidebar - solo visible en móvil */
.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--red-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1002;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: var(--red-dark);
    transform: scale(1.1);
}

/* ========== ESTILOS PARA PESTAÑAS DEL MODAL (NUEVO) 4NOV2025 ========== */
/* -- Contenedor principal del modal con animación de entrada -- */
.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 1000px;
    width: 100%;
    /* Asegura que no exceda el viewport */
    max-height: 90vh;
    /* Altura máxima para evitar que sea más alto que la pantalla */
    overflow-y: auto;
    /* Scroll si el contenido es muy largo */
    position: relative;
    padding: 2rem;
    /* Animación de entrada */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* -- Estado activo del modal -- */
.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
    /* Curva de tiempo mejorada para una desaceleración suave */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -- Estilos del encabezado y las pestañas (sin cambios) -- */
.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-medium);
}

.modal-header h2 {
    color: var(--blue-dark);
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-link {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gray-medium);
    background: transparent;
    color: var(--blue-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-link:hover {
    background: var(--gray-light);
    border-color: var(--blue-primary);
}

.tab-link.active {
    background: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
}

/* -- Contenedor del contenido de las pestañas -- */
.modal-tab-content {
    position: relative;
    /* No es necesario `overflow: hidden` aquí, se gestionará en el panel */
}

/* -- Paneles individuales de cada pestaña (LA MAGIA ESTÁ AQUÍ) -- */


/* -- Estado activo de un panel de pestaña -- */
.tab-pane.active {
    /* Se expande a una altura máxima suficiente para cualquier contenido */
    max-height: 1500px;
    /* Un valor grande que no limite tu contenido */
    opacity: 1;
}

/* -- Estilos del contenido dentro de las pestañas (mejorados para padding) -- */
.tab-pane h4 {
    color: var(--blue-dark);
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.tab-pane p {
    margin-bottom: 1rem;
}

.tab-pane ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tab-pane table {
    width: 100%;
    border-collapse: collapse;
}

.tab-pane table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--gray-medium);
}

.tab-pane table td:first-child {
    font-weight: 600;
    color: var(--blue-dark);
    width: 40%;
}

/* -- Estilos de los widgets (de la respuesta anterior) -- */
.feature-widget {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-medium);
    transition: box-shadow 0.3s ease;
}

.feature-widget:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.widget-image {
    flex-shrink: 0;
}

.widget-image img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.widget-content h5 {
    color: var(--blue-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.widget-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}
/* ========== END ESTILOS PARA PESTAÑAS DEL MODAL (NUEVO)4nov2025========== */
/* ==========================================================================
   Clases de Utilidad para CSP (Content Security Policy)
   ========================================================================== */

/* Reemplaza style="display: none;" */
.hidden-by-default {
    display: none;
}

/* Reemplaza style="..." en iconos con texto a la derecha */
.icon-prefix {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Reemplaza style="..." en el icono del botón "Ver Todos" */
.icon-prefix-small {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/*Begin9nov2025*/
/* ==========================================================================
   ESTILOS DEL MODAL Y PESTAÑAS (Tabs)
   ========================================================================== */

/* -- Contenedor principal del modal -- */
.modal-content {
    /* ... (sus otros estilos de .modal-content van aquí) ... */
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

/* -- Estilos del encabezado y botones de pestañas -- */
.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-medium);
}

.modal-header h2 {
    color: var(--blue-dark);
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-link {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gray-medium);
    background: transparent;
    color: var(--blue-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-link:hover {
    background: var(--gray-light);
    border-color: var(--blue-primary);
}

.tab-link.active {
    background: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
}

/* -- LA PARTE CRÍTICA QUE HA PERDIDO -- */
/* -- Contenedor del contenido de las pestañas -- */
.modal-tab-content {
    position: relative;
}

/* -- Paneles de contenido de cada pestaña -- */
/* Por defecto, todos los paneles están colapsados y ocultos. */
.tab-pane {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.3s ease-in-out 0.2s;
}

/* Solo el panel con la clase .active se expande y se hace visible. */
.tab-pane.active {
    max-height: 2000px;
    /* Un valor grande para permitir cualquier cantidad de contenido */
    opacity: 1;
}

/* -- FIN DE LA PARTE CRÍTICA -- */


/* -- Estilos para el contenido DENTRO de las pestañas -- */
.tab-pane h4 {
    color: var(--blue-dark);
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.tab-pane p {
    margin-bottom: 1rem;
}

.tab-pane ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tab-pane table {
    width: 100%;
    border-collapse: collapse;
}

.tab-pane table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--gray-medium);
}

.tab-pane table td:first-child {
    font-weight: 600;
    color: var(--blue-dark);
    width: 40%;
}
.filter-actions {
    text-align: right;
    margin-bottom: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--red-primary);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
}

.btn-text:hover {
    text-decoration: underline;
}
/*End9Nov2025*/
/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-medium);
    border-top-color: var(--blue-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   ESTILOS AVANZADOS PARA EL MODAL DE PRODUCTO (Agregado 30 Nov 2025)
   ========================================================================== */

/* Contenedor flexible para imagen + info */
.modal-product-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Columna de la Imagen */
.modal-image-container {
    flex: 1;
    position: sticky;
    /* Truco: Mantiene la imagen visible al hacer scroll */
    top: 0;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--gray-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

/*.modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}*/
.modal-main-img-container img,
.modal-main-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: contain;
}

/* Columna de Información */
.modal-info-container {
    flex: 1.5;
}

/* Ajustes del Header dentro del modal */
.modal-header {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.modal-header h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Botón de acción dentro del modal */
.modal-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-medium);
    text-align: right;
    /* Botón alineado a la derecha */
}

.modal-btn-cotizar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25d366;
    /* Verde WhatsApp */
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.modal-btn-cotizar:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   GALERÍA INTERACTIVA (Grid, Modal & Lightbox) - Agregado 30 NOV 2025 573104941482 mod 3 dic 2025
   ========================================================================== */

/* --- 1. Galería en el Grid (Tarjeta) --- */
.product-gallery {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

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

/* Flechas de navegación en el Grid (Solo visibles en hover) */
.card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--blue-dark);
    opacity: 0;
    transition: all 0.2s ease;
}

.product-card:hover .card-nav-btn {
    opacity: 1;
}

.card-nav-prev {
    left: 10px;
}

.card-nav-next {
    right: 10px;
}

.card-nav-btn:hover {
    background: var(--red-primary);
    color: white;
}

/* --- 2. Galería en el Modal (Miniaturas) --- */
.modal-image-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-main-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid #eee;
}

/* ✅ CORRECCIÓN: Selectores más específicos para la imagen principal */
.modal-main-img-container img,
.modal-main-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: contain;
}

/* Contenedor de miniaturas */
.modal-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

/* ✅ LA CAJA RÍGIDA (El secreto para Chrome/Safari) */
.thumb-frame {
    /* Tamaño estricto */
    width: 70px;
    height: 70px;
    /* Prohibido encogerse o crecer */
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    flex: 0 0 70px;
    flex-shrink: 0;
    /* Estética de contenedor */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f0f0f0;
    position: relative;
}

/* ✅ LA IMAGEN DENTRO DE LA CAJA - Selector más específico */
.thumb-frame .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

/* Estados */
.thumb-frame:hover .thumb-img {
    opacity: 1;
}

/* El borde lo ponemos en la imagen activa */
.thumb-frame .thumb-img.active {
    opacity: 1;
    border: 3px solid #E30613;
    box-sizing: border-box;
}

/* --- 3. Lightbox (Pantalla Completa) --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* ==========================================================================
   ESTILOS DE LUPA (ZOOM) MEJORADOS - UX/UI PRO 1 dic 2025
   ========================================================================== */
.modal-main-img-container {
    position: relative;
    /* Necesario para posicionar la lupa absoluta */
    overflow: hidden;
    /* Para que nada se salga de los bordes */
}

.modal-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    /* Blanco casi opaco */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    /* Oculto por defecto para limpieza visual */
    transform: scale(0.8);
    color: var(--blue-dark);
    z-index: 10;
}

/* Mostrar lupa al pasar el mouse por la imagen */
.modal-main-img-container:hover .modal-zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.modal-zoom-btn:hover {
    background: var(--blue-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(3, 76, 140, 0.3);
}
/* Hacer que las especificaciones parezcan botones */
.spec-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.spec-item:hover {
    background: var(--white);
    border-color: var(--blue-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.spec-item:hover .spec-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   ESTADO EMPTY (SIN RESULTADOS) - UX
   ========================================================================== */
#noResultsMsg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed var(--gray-medium);
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

#noResultsMsg .material-symbols-outlined {
    font-size: 4rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

#noResultsMsg h3 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

#noResultsMsg p {
    color: #666;
    margin-bottom: 1.5rem;
}

#noResultsMsg button {
    background: var(--red-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

#noResultsMsg button:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Correcciones para CSP (Seguridad) */
.filter-separator {
    color: #E30613;
    margin: 0 5px;
    font-weight: bold;
}

.cursor-pointer {
    cursor: pointer;
}

.thumb-frame {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;      /* ⭐ Nuevo */
    max-height: 70px;     /* ⭐ Nuevo */
    flex: 0 0 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f0f0f0;
    position: relative;
}

.thumb-frame .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.copyright-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 40px;
}

.copyright-seal {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1300px) {
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 1200px) {
     .logo img { width: 180px; }
    .nav-links { gap: 1.2rem; }
    .nav-links a { padding: 0.4rem 0.7rem; font-size: 0.95rem; }
    
    .products-masonry {
        grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
        max-width: 1100px;
    }
    .products-masonry.compact {
        grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
        max-width: 1200px;
    }
    .products-masonry.large {
        grid-template-columns: repeat(auto-fill, minmax(380px, 420px));
        max-width: 900px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .sidebar-toggle {
        left: 280px;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .main-content.expanded {
        margin-left: 30px;
    }
}
@media (max-width: 1100px) {
    .nav-links { gap: 1rem; }
    .nav-links a { padding: 0.3rem 0.6rem; font-size: 0.9rem; }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin: 0;
        gap: 1rem;
    }

    .nav-links.mobile-open {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
        min-width: 150px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 10000;
        background: var(--white);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        left: 20px;
        top: 120px;
        background: var(--red-primary);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .products-masonry,
    .products-masonry.compact,
    .products-masonry.large {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        max-width: none;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .view-options {
        justify-content: center;
    }

    .key-specs {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo img {
        width: 150px;
    }
    
    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section:first-child {
        text-align: center;
    }

    .footer-logo {
        width: 200px;
        margin: 0 auto 1rem;
    }

    .footer-anniversary {
        width: 100px;
        margin: 0 0.5rem;
    }
    
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        list-style: none;
        margin: 0;
        gap: 1rem;
    }

    .nav-links.mobile-open {
        left: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--blue-dark);
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 25px;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        min-width: 150px;
    }

    .nav-links a:hover {
        background: var(--red-primary);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
    }

    .nav-links a.active {
        background: var(--blue-primary);
        color: var(--white);
    }
    
    .sidebar-close {
        display: block;
    }
    /*adaptabilidad features 4 nov*/
    .feature-widget {
        flex-direction: column;
        /* Apila la imagen sobre el texto */
        text-align: center;
        gap: 1rem;
    }

    .widget-image img {
        width: 100%;
        /* La imagen ocupa todo el ancho del widget */
        height: 150px;
        /* Altura fija para consistencia */
    }
    /* BEGIN columna unica 30 nov 2025*/
    .modal-product-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .modal-image-container {
        position: relative;
        width: 100%;
        max-height: 300px;
    }

    .modal-actions {
        text-align: center;
        /* Botón centrado en móvil */
    }

    .modal-btn-cotizar {
        width: 100%;
        /* Botón ancho completo en móvil */
    }
    /* END columna unica 30 nov 2025*/
    /* 1DIC 2025 En móviles, la lupa siempre visible porque no hay "hover" */
    .modal-zoom-btn {
        opacity: 1;
        transform: scale(1);
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    .copyright-bar {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .product-gallery {
        height: 180px;
    }
    .key-specs {
        gap: 0.5rem;
    }
    
    .spec-item {
        padding: 0.6rem;
    }
    
    .products-masonry {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .back-to-top {
        bottom: 75px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        width: 180px;
    }

    .footer-anniversary {
        width: 70px;
        margin: 0 0.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-section p, 
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        align-items: center;
    }

    .whatsapp-float {
        bottom: 85px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .back-to-catalog-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}