/* style.css */

/* Variables CSS para colores (mantener como están) */
:root {
    --primary-text-color: #222;
    --secondary-text-color: #555;
    --accent-color: #007bff;
    --background-light: #f0f0f0;
    --background-white: #fff;
    --header-bg-color: #1a1a1a;
    --header-text-color: #fff;
    --border-color: #e0e0e0;
    --whatsapp-color: #25d366;
    --whatsapp-hover-color: #1da850;

    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* Reset básico y estilos generales (mantener como están) */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--primary-text-color);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

strong, b {
    font-weight: 600;
}

/* Asegura que todas las imágenes sean responsivas por defecto */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Botones generales (mantener como están) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--heading-font);
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.primary-btn {
    background-color: var(--primary-text-color); /* Negro */
    color: #fff;
}

.primary-btn:hover {
    background-color: var(--secondary-text-color); /* Gris oscuro */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* --- Header Principal --- */
.main-header {
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px; /* Añadido un gap para espacio entre elementos */
}

/* Logo (Bien a la izquierda, más grande) */
.logo-container {
    display: inline-block;
    height: 80px;
    flex-shrink: 0; /* Evita que el logo se encoja */
}

.logo-image {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

/* Hamburguesa (Menu Toggle - Cerca del logo) */
.menu-toggle {
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    flex-shrink: 0; /* Evita que el botón se encoja */
}

.menu-toggle:hover {
    color: var(--accent-color);
}

/* Barra de Búsqueda (Empujada a la derecha) */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 5px;
    padding: 5px 10px;
    flex-grow: 1;
    max-width: 500px;
    margin-left: auto; /* Empuja a la derecha */
    margin-right: 0;
}

.search-container input {
    border: none;
    background: transparent;
    color: #fff;
    padding: 8px;
    outline: none;
    font-family: var(--body-font);
    font-size: 1rem;
    width: 100%;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-container button:hover {
    color: var(--accent-color);
}

.no-results-message {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 999;
}

.no-results-message img {
    height: 40px;
    margin-bottom: 10px;
}

.no-results-message p {
    color: var(--primary-text-color);
    font-size: 0.9rem;
    margin: 0;
}


/* --- Menú Lateral (Sidebar) --- */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
    overflow-y: auto;
    /* Asegurarse de que no esté abierto por defecto en CSS */
    left: -300px !important; /* Fuerza a estar cerrado al cargar la página */
}

.sidebar-menu.open {
    left: 0 !important; /* Fuerza a abrirse cuando la clase 'open' se añade */
}

.sidebar-menu .close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1060;
}

.sidebar-menu .close-menu:hover {
    color: var(--accent-color);
}

.sidebar-menu ul {
    padding: 20px;
}

.sidebar-menu ul li {
    margin-bottom: 10px;
}

.sidebar-menu ul li a {
    color: var(--header-text-color);
    font-family: var(--heading-font);
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.sidebar-menu ul li a:hover {
    color: var(--accent-color);
}

.sidebar-menu .menu-item-has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu .menu-item-has-submenu > a .fas {
    transition: transform 0.3s ease;
}

.sidebar-menu .menu-item-has-submenu.open > a .fas {
    transform: rotate(90deg);
}

.sidebar-menu .submenu {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

.sidebar-menu .submenu li a {
    font-size: 0.95rem;
    padding: 8px 0;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* --- Botón Flotante de WhatsApp (mantener como está) --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 70px;
    height: 70px;
    background-color: transparent;
    color: var(--whatsapp-color);
    border-radius: 50%;
    text-align: center;
    font-size: 45px;
    line-height: 70px;
    z-index: 1000;
    box-shadow: none;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--whatsapp-hover-color);
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Contenido Principal (Main) --- */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.content-section {
    background-color: var(--background-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-text-color);
}

.section-tagline {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Carousel Container (para index.html) --- */
.carousel-container {
    position: relative;
    padding: 0 50px;
    margin-bottom: 30px;
}

/* Panel de Productos (El carrusel horizontal en index.html) */
.product-panel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;

    /* Estilos de la barra de desplazamiento (negro) */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-text-color) var(--background-light);

    &::-webkit-scrollbar {
        height: 8px;
    }
    &::-webkit-scrollbar-track {
        background: var(--background-light);
        border-radius: 10px;
    }
    &::-webkit-scrollbar-thumb {
        background-color: var(--primary-text-color);
        border-radius: 10px;
        border: 2px solid var(--background-light);
    }
}

.product-panel .product-thumbnail {
    flex-shrink: 0;
    margin-right: 30px;
    width: 200px; /* Ancho base del thumbnail */
    min-height: 230px;
    /* Contenedor de la imagen para asegurar un tamaño fijo para la imagen interna */
    display: flex; /* Asegura que la imagen interna se centre si es más pequeña */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* */
}

.product-panel .product-thumbnail:last-child {
    margin-right: 0;
}

.product-thumbnail {
    /* flex-direction: column; Ya estaba, pero lo reitero por claridad (movido arriba) */
    background-color: var(--background-white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.product-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-thumbnail img {
    width: 100%;
    height: 170px; /* Altura fija para la imagen del thumbnail */
    object-fit: contain;
    border-radius: 5px;
}

/* Flechas de Navegación del Carrusel (mantener como están) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background-color: var(--primary-text-color);
}

.carousel-arrow.left-arrow {
    left: 0;
}

.carousel-arrow.right-arrow {
    right: 0;
}


.section-actions {
    margin-top: 20px;
}

/* Estilos para productos "Próximamente" (mantener como están) */
.coming-soon-thumbnail {
    opacity: 0.7;
    pointer-events: none;
    filter: grayscale(80%);
}

.coming-soon-thumbnail:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Footer (mantener como está) --- */
.main-footer {
    background-color: var(--primary-text-color);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.main-footer p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--accent-color);
}

.main-footer .footer-promo-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.main-footer .footer-promo-text strong {
    color: white;
}


/* --- Estilos específicos para la página de Productos (productos.html) --- */

.category-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-filter-btn, .sub-category-filter-btn {
    background-color: var(--background-light);
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--body-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-filter-btn:hover, .sub-category-filter-btn:hover {
    background-color: var(--border-color);
    color: var(--primary-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-filter-btn.active, .sub-category-filter-btn.active {
    background-color: var(--primary-text-color);
    color: #fff;
    border-color: var(--primary-text-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sub-category-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Grilla de Productos en productos.html */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.product-card {
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px; /* Altura fija para las imágenes de la tarjeta de producto */
    object-fit: contain;
    background-color: var(--background-white);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-card .product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.product-card .product-price {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 5px;
}

.product-card .product-name {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 15px;
}

.product-card .btn {
    margin-top: 0;
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
}

/* Estilos específicos para tarjetas de "Próximamente" en productos.html (mantener como están) */
.product-card.coming-soon-card {
    opacity: 0.7;
    filter: grayscale(80%);
    pointer-events: none;
}
.product-card.coming-soon-card .btn {
    pointer-events: auto;
}


/* --- Estilos para el Lightbox (Cuadro Interactivo) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 60, 60, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1100;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox-overlay.show {
    opacity: 1;
    display: flex;
}

.lightbox-content {
    background-color: var(--background-white);
    border-radius: 10px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: var(--primary-text-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--accent-color);
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lightbox-image-gallery {
    position: relative;
    flex: 1;
    max-width: 100%;
    min-width: 280px;
    /* Contenedor de la imagen principal del lightbox */
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-main-img {
    width: 100%;
    height: auto; /* Mantener auto para la relación de aspecto */
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    background-color: var(--background-white);
}

.lightbox-nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2.5rem;
    padding: 5px 12px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.lightbox-thumbnails img.thumbnail {
    width: 80px;
    height: 80px; /* Altura fija para miniaturas del lightbox */
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumbnails img.thumbnail:hover,
.lightbox-thumbnails img.thumbnail.active {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.lightbox-info {
    flex: 1;
    padding-left: 0;
    text-align: center;
}

.lightbox-info h3 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 10px;
}

.lightbox-info .product-price {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    animation: pulsePrice 1.5s infinite alternate;
}

@keyframes pulsePrice {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.02); opacity: 1; }
}


.lightbox-info p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.whatsapp-lightbox-btn {
    width: auto;
    font-size: 1.1rem;
    padding: 12px 25px;
    margin-top: 20px;
}

/* Estilos para la nueva sección de Promoción (mantener como están) */
.promo-banner {
    background-color: var(--accent-color);
    color: white;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-banner .promo-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.promo-banner .promo-text:last-of-type {
    margin-bottom: 25px;
}

.promo-banner .promo-btn {
    background-color: var(--primary-text-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.promo-banner .promo-btn:hover {
    background-color: #333;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}


/* --- Media Queries para Responsividad --- */

/* Teléfonos pequeños (ajustes) */
@media (max-width: 480px) {
    /* Ajustes específicos para el Header en móviles */
    .main-header {
        padding: 10px 15px;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .logo-container {
        height: 50px;
        order: 1;
    }
    .logo-image {
        height: 50px;
    }

    .menu-toggle {
        font-size: 1.8rem;
        margin-left: auto;
        order: 2;
    }

    .search-container {
        width: 100%;
        max-width: none;
        order: 3;
        margin-top: 10px;
        margin-left: 0;
        margin-right: 0;
    }
    .search-container input {
        padding: 6px;
        font-size: 0.95rem;
    }
    .search-container button {
        font-size: 1rem;
        padding: 6px;
    }

    /* Ajuste para el sidebar en móviles */
    .sidebar-menu {
        padding-top: 70px;
        width: 250px;
    }
    .sidebar-menu .close-menu {
        top: 10px;
        right: 15px;
        font-size: 2.2rem;
    }


    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .section-tagline {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .whatsapp-float {
        bottom: 10px;
        left: 10px;
        width: 50px;
        height: 50px;
        font-size: 30px;
        line-height: 50px;
    }

    /* Ajustes para el carrusel en móvil (index.html) */
    .carousel-container {
        padding: 0 10px;
    }
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .product-panel .product-thumbnail {
        width: 140px; /* */
        margin-right: 15px; /* */
        min-height: 170px;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .product-thumbnail img {
        height: 120px; /* */
        width: 100%; /* */
        object-fit: contain; /* */
    }

    /* Productos grid en productos.html */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .product-card {
        padding: 10px;
    }
    .product-card img {
        height: 160px; /* Altura fija para las imágenes de la tarjeta de producto en móvil */
        padding: 5px;
    }
    .product-card .product-info {
        padding: 10px;
    }
    .product-card .product-price {
        font-size: 1.1rem;
    }
    .product-card .product-name {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .product-card .btn {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Lightbox en móvil */
    .lightbox-content {
        padding: 15px;
        gap: 15px;
        max-width: 95%;
        max-height: 95vh;
    }
    .close-btn {
        font-size: 28px;
        top: 8px;
        right: 15px;
    }
    .lightbox-body {
        flex-direction: column;
    }
    .lightbox-image-gallery {
        min-width: unset;
        /* Asegurarse que la imagen principal del lightbox se ajuste */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #lightbox-main-img {
        max-height: 250px; /* Altura máxima para la imagen principal del lightbox en móvil */
    }
    .lightbox-nav-arrows {
        padding: 0 5px;
    }
    .arrow {
        font-size: 2rem;
        padding: 3px 8px;
    }
    .lightbox-thumbnails {
        gap: 5px;
        justify-content: center;
    }
    .lightbox-thumbnails img.thumbnail {
        width: 60px;
        height: 60px; /* Altura fija para miniaturas del lightbox en móvil */
    }
    .lightbox-info h3 {
        font-size: 1.5rem;
    }
    .lightbox-info .product-price {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    .lightbox-info p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    .whatsapp-lightbox-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    /* Secciones CEO y Contacto (mantener como están) */
    .ceo-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    .ceo-text h2 {
        font-size: 1.6rem;
    }
    .ceo-content {
        gap: 20px;
    }
    .content-section {
        padding: 25px;
        margin-bottom: 30px;
    }
    .main-footer {
        padding: 20px 10px;
    }
    .main-footer p {
        font-size: 0.8rem;
    }
    .footer-social-icons a {
        font-size: 1.3rem;
        margin: 0 8px;
    }

    /* Promo Banner (mantener como están) */
    .promo-banner {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .promo-banner .promo-text {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .promo-banner .promo-text:last-of-type {
        margin-bottom: 20px;
    }
    .promo-banner .promo-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Tabletas (768px en adelante) (mantener como está, o ajustar si hay problemas en tablets) */
@media (min-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: initial;
    }
    .logo-container {
        height: 70px;
        margin-right: 15px;
    }
    .logo-image {
        height: 70px;
    }
    .menu-toggle {
        font-size: 2.2rem;
    }
    .search-container {
        order: initial;
        margin-top: 0;
        margin-left: auto;
        max-width: 400px;
    }
    .search-container input {
        font-size: 0.95rem;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.3rem; }
    h3 { font-size: 1.6rem; }
    .section-tagline {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 60px;
        height: 60px;
        font-size: 40px;
        line-height: 60px;
    }

    .carousel-container {
        padding: 0 30px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .product-panel .product-thumbnail {
        width: 170px;
        margin-right: 20px;
        min-height: 200px;
        padding: 12px;
        /* Contenedor de la imagen para asegurar un tamaño fijo para la imagen interna */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .product-thumbnail img {
        height: 140px; /* Altura fija para la imagen del thumbnail */
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .product-card img {
        height: 200px; /* Altura fija para las imágenes de la tarjeta de producto */
        padding: 12px;
    }
    .product-card .product-info {
        padding: 12px;
    }
    .product-card .product-price {
        font-size: 1.3rem;
    }
    .product-card .product-name {
        font-size: 1.05rem;
    }
    .product-card .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .lightbox-content {
        padding: 30px;
        gap: 25px;
        max-width: 900px;
        max-height: 85vh;
    }
    .close-btn {
        font-size: 32px;
        top: 12px;
        right: 20px;
    }
    #lightbox-main-img {
        max-height: 350px; /* Altura máxima para la imagen principal del lightbox */
    }
    .lightbox-nav-arrows {
        padding: 0 8px;
    }
    .arrow {
        font-size: 2.2rem;
    }
    .lightbox-thumbnails {
        gap: 8px;
    }
    .lightbox-thumbnails img.thumbnail {
        width: 70px;
        height: 70px; /* Altura fija para miniaturas del lightbox */
    }
    .lightbox-info h3 {
        font-size: 1.9rem;
    }
    .lightbox-info .product-price {
        font-size: 1.8em;
    }
    .lightbox-info p {
        font-size: 1.05rem;
    }
    .whatsapp-lightbox-btn {
        padding: 11px 22px;
        font-size: 1.05rem;
    }
    .ceo-photo {
        width: 180px;
        height: 180px;
        margin-right: 25px;
    }
    .ceo-text h2 {
        font-size: 1.8rem;
    }
    .ceo-content {
        gap: 25px;
    }
    .content-section {
        padding: 35px;
        margin-bottom: 35px;
    }
    .main-footer {
        padding: 25px 15px;
    }
    .main-footer p {
        font-size: 0.85rem;
    }
    .footer-social-icons a {
        font-size: 1.4rem;
        margin: 0 10px;
    }

    /* Promo Banner (mantener como están) */
    .promo-banner {
        padding: 25px;
        margin-bottom: 40px;
    }
    .promo-banner .promo-text {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    .promo-banner .promo-btn {
        padding: 12px 25px;
        font-size: 1.05rem;
    }
}

/* Escritorio grande (1024px en adelante) (mantener como está) */
@media (min-width: 1024px) {
    .product-panel .product-thumbnail {
        width: 200px;
        min-height: 230px;
        margin-right: 30px; /* */
    }
    .product-thumbnail img {
        height: 170px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Escritorio muy grande (1200px en adelante) (mantener como está) */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* CEO Section specific styles (mantener como está) */
.ceo-section {
    margin-bottom: 40px;
}

.ceo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.ceo-image-container {
    flex-shrink: 0;
}

.ceo-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ceo-text {
    text-align: center;
}

.ceo-text h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2rem;
}