@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: 1rem 0;
}

.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;
}

.logo img {
    width: 200px;
    height: auto;
}

.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;
}

.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.9rem;
    color: #666;
}

.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;
    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%;
}

.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;
}*/
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    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: 5px;
    z-index: 5;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.badge.new { background: #28a745; }
.badge.featured { background: var(--red-primary); }
.badge.eco { background: #17a2b8; }

/* ========== INFORMACIÓN DEL PRODUCTO ========== */
.product-info {
    padding: 1.5rem;
}

.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;
}

.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;
}

/* ========== 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*/

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .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: 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 */
    }
}

@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;
    }
}