/* =============================================
   RESET Y VARIABLES GLOBALES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #e9f2ec;
}

/* =============================================
   SISTEMA DE GRID 12 COLUMNAS
   ============================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-1 { width: 8.333333%; padding: 0 15px; }
.col-2 { width: 16.666667%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-4 { width: 33.333333%; padding: 0 15px; }
.col-5 { width: 41.666667%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-7 { width: 58.333333%; padding: 0 15px; }
.col-8 { width: 66.666667%; padding: 0 15px; }
.col-9 { width: 75%; padding: 0 15px; }
.col-10 { width: 83.333333%; padding: 0 15px; }
.col-11 { width: 91.666667%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

.offset-1 { margin-left: 8.333333%; }
.offset-2 { margin-left: 16.666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.333333%; }
.offset-5 { margin-left: 41.666667%; }
.offset-6 { margin-left: 50%; }
.offset-7 { margin-left: 58.333333%; }
.offset-8 { margin-left: 66.666667%; }
.offset-9 { margin-left: 75%; }
.offset-10 { margin-left: 83.333333%; }
.offset-11 { margin-left: 91.666667%; }

.text-center { text-align: center; }
html { scroll-behavior: smooth; }

/* =============================================
   BLOQUE 01 - LOGO
   ============================================= */
.logo-section {
    padding-top: 100px;
    padding-bottom: 80px;
    text-align: center;
}

.logo-container {
    max-width: 300px;
    margin: 0 auto;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   BLOQUE 02 - CARRUSEL HERO
   ============================================= */
.hero-carousel {
    width: 100%;
    position: relative;
    height: 600px;
    overflow: hidden;
}


/* Para pantallas muy anchas, usamos altura fija */
@media (min-width: 1280px) {
    .hero-carousel { height: 300px; }
}
@media (min-width: 1920px) {
    .hero-carousel { height: 490px; }
}
@media (min-width: 2650px) {
    .hero-carousel { height: 650px; }
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

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

.carousel-dot.active {
    background: white;
    width: 28px;
    border-radius: 10px;
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #005850;
    z-index: 20;
    transition: width 0.1s linear;
    box-shadow: 0 0 6px rgba(0, 88, 80, 0.8);
}

/* =============================================
   TÍTULOS DE SECCIÓN
   ============================================= */
.section-title {
    font-family: 'Amatic SC', sans-serif;
    font-weight: 700;
    font-size: 48px;
    text-align: center;
    color: #002621;
    padding: 60px 0;
}

.producto-titulo {
    font-family: "Amatic SC", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 36px;
    color: #005850;
    line-height: 1.2;
    margin: 0 0 20px 0;
    padding: 0 20px;
}

.producto-descripcion {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #000000;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding: 0 20px;
}

/* =============================================
   SECCIONES CON FONDO GRIS
   ============================================= */
.bg-gray-section {
    position: relative;
    width: 100%;
    padding: 0;
}

.bg-gray-section .container {
    position: relative;
    z-index: 2;
}

.bg-gray-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    min-height: calc(60% + 20px);
    background-image: url('assets/images/patterns/pattern-bg.svg');
    background-repeat: repeat;
    background-size: 40px 40px;
    background-color: #e9f2ec;
    z-index: 1;
}

.bg-gray-section::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #e9f2ec;
    z-index: 1;
}

/* =============================================
   MENÚ HAMBURGUESA
   ============================================= */
.menu-hamburguesa {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    transition: z-index 0.2s;
}

.menu-toggle {
    background: #005850;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1002;
    position: relative;
}

.menu-toggle i {
    color: white;
    font-size: 24px;
}

.menu-toggle:hover {
    background: #002621;
    transform: scale(1.05);
}

.menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1003;
    transition: right 0.3s ease-in-out;
    padding: 70px 20px 30px 20px;
    overflow-y: auto;
}

.menu-panel.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #005850;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: scale(1.1);
    color: #002621;
}

.menu-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-lista li {
    margin-bottom: 20px;
}

.menu-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #002621;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.menu-link:hover {
    background-color: #e9f2ec;
    color: #005850;
    transform: translateX(-5px);
}

/* Overlay para el menú (fondo oscuro) */
.menu-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.menu-panel.active::before {
    opacity: 1;
    visibility: visible;
}

/* Ajuste para el logo en móvil (evitar que el menú lo tape) */
@media (max-width: 768px) {
    .menu-hamburguesa {
        top: 15px;
        right: 15px;
    }
    .logo-section {
        padding-top: 30px;
    }
}

/* =============================================
   CARRUSEL DE PRODUCTOS - RESPONSIVE (CORREGIDO)
   ============================================= */
.productos-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    margin: 0;
    padding: 0 15px;
    scrollbar-width: thin;
    /* touch-action: pan-x pinch-zoom; */
}

/* Ocultar scrollbar en Chrome/Safari pero mantener funcionalidad */
.productos-grid::-webkit-scrollbar {
    height: 6px;
}

.productos-grid::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.productos-grid::-webkit-scrollbar-thumb {
    background: #005850;
    border-radius: 10px;
}

.producto-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-bottom: 15px;
    padding: 0;
}

/* Móvil vertical (hasta 767px y portrait) - 1 producto visible */
@media (max-width: 767px) and (orientation: portrait) {
    .producto-card {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Móvil horizontal (hasta 767px y landscape) - 2 productos visibles */
@media (max-width: 767px) and (orientation: landscape) {
    .producto-card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

/* Tablet vertical (768px - 991px) - 2 productos visibles */
@media (min-width: 768px) and (max-width: 991px) {
    .producto-card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

/* Desktop (992px en adelante) - 3 productos visibles */
@media (min-width: 992px) {
    .producto-card {
        width: calc(33.333% - 14px);
        flex: 0 0 calc(33.333% - 14px);
    }
}

.producto-contenedor {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 38, 33, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.producto-contenedor:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.producto-imagen-principal {
    width: 100%;
    aspect-ratio: 5 / 3;
    border: 1px solid #005850;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.producto-imagen-principal:hover {
    opacity: 0.9;
}

.producto-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.producto-thumbnail {
    flex: 1;
    aspect-ratio: 5 / 3;
    border: 1px solid #005850;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.producto-thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.producto-boton {
    display: block;
    width: 240px;
    height: 48px;
    margin: 0 auto;
    background: #005850;
    border: 1px solid #005850;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.producto-boton:hover {
    background: #002621;
    border-color: #002621;
    color: white;
}

/* =============================================
   INDICADORES (DOTS) PARA EL CARRUSEL
   ============================================= */
.carrusel-indicadores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px auto 30px;
    padding: 8px 0;
}

.carrusel-dot-producto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrusel-dot-producto.active {
    width: 28px;
    border-radius: 10px;
    background: #005850;
}

/* Ocultar paginación numérica (ya no se usa) */
.paginacion {
    display: none;
}

/* =============================================
   TIENDAS - CARRUSEL RESPONSIVE
   ============================================= */
.tiendas-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    margin: 0;
    padding: 0 15px;
    scrollbar-width: thin;
}

/* Ocultar scrollbar en Chrome/Safari pero mantener funcionalidad */
.tiendas-grid::-webkit-scrollbar {
    height: 6px;
}

.tiendas-grid::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.tiendas-grid::-webkit-scrollbar-thumb {
    background: #005850;
    border-radius: 10px;
}

.tienda-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-bottom: 15px;
    padding: 0;
}

/* Móvil vertical (hasta 767px y portrait) - 1 tienda visible */
@media (max-width: 767px) and (orientation: portrait) {
    .tienda-card {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Móvil horizontal (hasta 767px y landscape) - 2 tiendas visibles */
@media (max-width: 767px) and (orientation: landscape) {
    .tienda-card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

/* Tablet vertical (768px - 991px) - 2 tiendas visibles */
@media (min-width: 768px) and (max-width: 991px) {
    .tienda-card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

/* Desktop (992px en adelante) - 3 tiendas visibles */
@media (min-width: 992px) {
    .tienda-card {
        width: calc(33.333% - 14px);
        flex: 0 0 calc(33.333% - 14px);
    }
}

.tienda-contenedor {
    aspect-ratio: 436 / 520;
    border: 1px solid #002621;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 38, 33, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tienda-contenedor:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.tienda-titulo {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    white-space: pre-line;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tienda-boton {
    display: block;
    width: 240px;
    height: 48px;
    background: #005850;
    border: 1px solid white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.tienda-boton:hover {
    background: white;
    color: #000000;
    border-color: #005850;
}

/* =============================================
   CONTACTO
   ============================================= */
.footer-section {
    position: relative;
    width: 100%;
    padding: 0;
    margin-top: 60px;
}

.footer-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    min-height: calc(60% + 20px);
    background-image: url('assets/images/patterns/pattern-bg.svg');
    background-repeat: repeat;
    background-size: 40px 40px;
    background-color: #e9f2ec;
    z-index: 1;
}

.footer-section::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #e9f2ec;
    z-index: 1;
}

.footer-section .container {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.contacto-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 38, 33, 0.7);
    padding: 60px;
    position: relative;
    z-index: 3;
    border: 1px solid #005850;
}

.contacto-titulo {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #002621;
    position: relative;
    padding-bottom: 15px;
}

.contacto-titulo:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #005850;
}

.contacto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contacto-info {
    flex: 2;
    min-width: 300px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contacto-icon {
    width: 40px;
    height: 40px;
    background: #005850;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contacto-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 5px;
    color: #002621;
}

.contacto-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #005850;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contacto-link:hover {
    color: #002621;
    text-decoration: underline;
}

.redes-sociales {
    flex: 1;
    min-width: 250px;
    border-left: 2px solid #eee;
    padding-left: 50px;
}

.redes-sociales h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #002621;
}

.social-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #005850;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 24px;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-icon[title="TikTok"]:hover { background: #000000; }
.social-icon[title="Facebook"]:hover { background: #1877f2; }
.social-icon[title="Instagram"]:hover { background: #e4405f; }

/* =============================================
   LIGHTBOX - PANTALLA COMPLETA (VERSIÓN AMAZON) CON Z-INDEX CORREGIDO
   ============================================= */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002; /* Mayor que el menú (1001) */
}

.lightbox.active {
    display: block;
}

/* Overlay - COLOR VERDE MENTA */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(233, 242, 236, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.lightbox-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

/* Contenedor principal - FONDO VERDE MENTA */
.lightbox-container {
    position: relative;
    background: #e9f2ec;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personalizada */
.lightbox-container::-webkit-scrollbar {
    width: 6px;
}

.lightbox-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lightbox-container::-webkit-scrollbar-thumb {
    background: #005850;
    border-radius: 10px;
}

/* Botón cerrar X - siempre visible */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #002621;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 1003; /* Por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
    transform: scale(1.1);
    background: #005850;
}

/* Contenedor de imagen - centrado */
.lightbox-image-container {
    text-align: center;
    padding: 80px 20px 20px 20px;
    margin-bottom: 20px;
}

/* Imagen - tamaño controlado */
.lightbox-image {
    width: auto;
    max-width: 90%;
    max-height: 55vh;
    height: auto;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Flechas de navegación */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 88, 80, 0.9);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lightbox-nav:hover {
    background: #002621;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev {
    left: 20px;
}

.lightbox-nav-next {
    right: 20px;
}

/* Miniaturas */
.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
}

.lightbox-thumbnail {
    width: 85px;
    height: 51px;
    object-fit: cover;
    border: 2px solid #005850;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background: white;
}

.lightbox-thumbnail:hover {
    transform: translateY(-2px);
    border-color: #002621;
}

.lightbox-thumbnail.active {
    border-color: #002621;
    box-shadow: 0 0 0 2px rgba(0, 88, 80, 0.4);
}

/* Título en lightbox - centrado con ancho controlado */
.lightbox-container .producto-titulo {
    font-size: 28px;
    margin: 10px auto 10px auto;
    padding: 0 20px;
    text-align: center;
    color: #005850;
    max-width: 600px;
}

/* Descripción en lightbox - centrado con ancho controlado */
.lightbox-container .producto-descripcion {
    font-size: 15px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    text-align: center;
    color: #333;
    line-height: 1.5;
    max-width: 600px;
}

/* Botón cerrar grande - visible en todos los dispositivos (antes solo en móvil) */
.lightbox-close-btn {
    display: block;
    width: 60%;
    max-width: 220px;
    margin: 0 auto 25px auto;
    padding: 12px 20px;
    background: #005850;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lightbox-close-btn:hover {
    background: #002621;
    transform: translateY(-2px);
}

/* Animación de entrada */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox.active {
    animation: lightboxFadeIn 0.25s ease-out;
}

/* =============================================
   RESPONSIVE - LIGHTBOX (MÓVIL)
   ============================================= */

/* Móvil (hasta 767px) */
@media (max-width: 767px) {
    /* Ajustes generales móvil */
    .hero-carousel { height: 300px; }
    .section-title { font-size: 42px; padding: 35px 0; }
    .producto-titulo { font-size: 28px; margin-bottom: 15px; }
    .producto-descripcion { font-size: 14px; margin-bottom: 15px; }
    .tienda-contenedor { height: auto; aspect-ratio: 436 / 520; }
    .tienda-titulo { font-size: 28px; }
    .tienda-boton, .producto-boton { width: 200px; height: 44px; font-size: 16px; line-height: 44px; }
    .contacto-wrapper { padding: 25px; }
    .contacto-grid { gap: 30px; }
    .contacto-titulo { font-size: 28px; margin-bottom: 30px; }
    .contacto-item { margin-bottom: 20px; }
    .contacto-icon { width: 35px; height: 35px; font-size: 16px; }
    .contacto-text h4 { font-size: 18px; }
    .redes-sociales h3 { font-size: 20px; }
    .social-icon { width: 50px; height: 50px; font-size: 20px; }
    .social-icons { justify-content: center; }
    .logo-container { max-width: 220px; }
    .logo-section { padding-top: 50px; padding-bottom: 40px; }
    
    /* Lightbox móvil - ocultar flechas (el botón cerrar grande ya es visible) */
    .lightbox-wrapper { padding: 0; }
    .lightbox-container { max-height: 100vh; border-radius: 0; }
    .lightbox-nav { display: none; }
    .lightbox-close { width: 38px; height: 38px; font-size: 18px; top: 10px; right: 10px; }
    .lightbox-image-container { padding: 60px 15px 15px 15px; }
    .lightbox-image { max-height: 45vh; }
    .lightbox-thumbnails { gap: 12px; padding: 12px 15px; }
    .lightbox-thumbnail { width: 70px; height: 42px; }
    .lightbox-container .producto-titulo { font-size: 24px; margin: 10px auto 8px auto; max-width: 90%; }
    .lightbox-container .producto-descripcion { font-size: 13px; margin: 0 auto 15px auto; max-width: 90%; }
    .lightbox-close-btn { width: 70%; max-width: 200px; padding: 12px; font-size: 15px; margin-bottom: 20px; }
}

/* Móvil horizontal (landscape) */
@media (max-width: 767px) and (orientation: landscape) {
    .lightbox-image-container { padding: 50px 15px 10px 15px; }
    .lightbox-image { max-height: 50vh; }
    .lightbox-thumbnail { width: 60px; height: 36px; }
    .lightbox-container .producto-titulo { font-size: 20px; margin: 8px auto 5px auto; }
    .lightbox-container .producto-descripcion { font-size: 12px; margin: 0 auto 10px auto; }
    .lightbox-close-btn { width: 50%; max-width: 180px; padding: 10px; font-size: 14px; margin-bottom: 15px; }
    .lightbox-close { width: 34px; height: 34px; font-size: 16px; top: 8px; right: 8px; }
}

/* Móvil pequeño (hasta 575px) */
@media (max-width: 575px) {
    .hero-carousel { height: 250px; }
    .section-title { font-size: 38px; padding: 30px 0; }
    .producto-titulo { font-size: 24px; }
    .producto-descripcion { font-size: 13px; }
    .tienda-contenedor { padding: 20px; }
    .tienda-titulo { font-size: 24px; }
    .tienda-boton, .producto-boton { width: 180px; height: 42px; font-size: 15px; line-height: 42px; }
    .contacto-wrapper { padding: 20px; }
    .contacto-titulo { font-size: 24px; margin-bottom: 25px; }
    .contacto-text p, .contacto-link { font-size: 14px; }
    .logo-container { max-width: 180px; }
    .logo-section { padding-top: 40px; padding-bottom: 30px; }
    
    .lightbox-thumbnail { width: 55px; height: 33px; }
    .lightbox-container .producto-titulo { font-size: 22px; }
    .lightbox-container .producto-descripcion { font-size: 12px; }
    .lightbox-close-btn { width: 80%; padding: 10px; font-size: 14px; }
}

/* Desktop (≥ 992px) - flechas visibles, botón cerrar grande también visible */
@media (min-width: 992px) {
    .hero-carousel { height: 600px; }
    .lightbox-nav { display: flex; }
    /* El botón cerrar grande ya es visible por defecto (display: block) */
}

/* Pantallas muy grandes (≥ 1280px) */
@media (min-width: 1280px) {
    .container { max-width: 1400px; }
    .lightbox-image { max-width: 800px; }
    .hero-carousel { height: 650px; }
}

/* =============================================
   ANIMACIONES Y EFECTOS VISUALES
   ============================================= */
.bg-gray-section, .footer-section {
    background-color: transparent;
}

.producto-contenedor, .contacto-wrapper, .tienda-contenedor {
    background-color: #ffffff;
    position: relative;
}

.logo-container {
    transition: transform 0.4s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-container img {
    transition: filter 0.3s ease;
}

.logo-container:hover img {
    filter: drop-shadow(0 4px 12px rgba(0, 88, 80, 0.3));
}

.producto-contenedor {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.producto-contenedor:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.producto-imagen-principal {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.producto-imagen-principal:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.producto-thumbnail {
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.producto-thumbnail:hover {
    transform: scale(1.08);
    border-color: #005850;
    opacity: 0.9;
}

.producto-boton {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 88, 80, 0.4);
}

.tienda-contenedor {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.tienda-contenedor:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.tienda-titulo {
    transition: transform 0.3s ease;
}

.tienda-contenedor:hover .tienda-titulo {
    transform: translateY(-4px);
}

.tienda-boton {
    transition: all 0.3s ease;
}

.tienda-boton:hover {
    transform: scale(1.03);
}

.contacto-item {
    transition: transform 0.3s ease;
}

.contacto-item:hover {
    transform: translateX(5px);
}

.contacto-icon {
    transition: transform 0.3s ease;
}

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

.contacto-wrapper {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contacto-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 38, 33, 0.5);
}

.social-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.1);
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}