/* ==================================================
        IMPORTACIÓN Y CONFIGURACIÓN DE MONTSERRAT
    ================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* =============================================
        REINICIO Y ESTILOS BASE MEJORADOS 
    ============================================ */
:root {
    --color-primary: #540606;
    --color-secondary: #dda97cdd;
    --color-accent: #3498db;
    --color-light: #f5efef;
    --color-dark: #540606;
    --color-texto-claro: #f5efef;
    --color-secundario: #dda97cdd;
    --color-principal: #540606;
    --color-hero-title: #f5efef;
    --color-hero-accent: #dda97c;
    --color-hero-subtitle: #f5efef;
    --shadow: 0 4px 6px rgba(255, 255, 255, 0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --container-padding: clamp(1rem, 5vw, 5%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #cfcacacc; /*color fondo de la página*/
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================================
        HEADER MEJORADO - MENÚ TOGGLE PROFESIONAL 
    ================================================== */
.header-principal {
    background-image: linear-gradient(to right, #5a0202, #8a0303);
    box-shadow: none;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    animation: none;
}

.header-principal.scrolled {
    padding: 0.5rem var(--container-padding);
    background-image: linear-gradient(to bottom, rgba(84, 6, 6, 0.95), rgba(84, 6, 6, 0.8));
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.header-principal.scrolled .logo img {
    height: 40px;
    animation: none;
}

/* Botón del menú hamburguesa MEJORADO */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 4px;
    background-color: var(--color-light);
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    transform-origin: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--color-secondary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: var(--color-secondary);
}

/* Mostrar navegación normal en pantallas grandes */
.barra-navegacion ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.barra-navegacion li {
    position: relative;
    margin: 0 0.8rem;
}

.barra-navegacion a {
    text-decoration: none;
    color: var(--color-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.barra-navegacion a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.barra-navegacion a:hover:after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.catalogo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(84, 6, 6, 0.95);
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.catalogo-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-light);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.catalogo-dropdown a:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding-left: 2rem;
}

.dropdown:hover .catalogo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* =============================================
   EFECTOS DE DESTELLO SOLAR Y ANIMACIONES DE LETRAS 
   (TRANSFERIDOS DESDE EL APARTADO DE INICIO)
============================================= */

/* DESTELLO HORIZONTAL EN HEADER (EFECTO SOLAR) */
.header-principal::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.04) 20%, 
        rgba(255, 215, 0, 0.5) 50%,
        rgba(255, 255, 255, 0.04) 80%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: sunFlash 3.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes sunFlash {
    0% {
        left: -150%;
        opacity: 0.5;
    }
    50% {
        left: 150%;
        opacity: 0.7;
    }
    100% {
        left: 150%;
        opacity: 0.5;
    }
}

/* EFECTOS MEJORADOS EN ENLACES DE NAVEGACIÓN */
.barra-navegacion a {
    text-decoration: none;
    color: var(--color-light) !important;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.2);
}

.barra-navegacion a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* SUBRAYADO SOLAR ANIMADO EN ENLACES */
.barra-navegacion a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FFD700);
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.barra-navegacion a:hover::after {
    width: 100%;
}

/* EFECTO EN LOGO */
.logo img {
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.2));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* ANIMACIÓN DE PULSO PARA LOGO */
@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
}

.logo img {
    animation: pulseLogo 2s infinite;
}

/* MEJORA DROPDOWN CON EFECTOS SOLARES */
.catalogo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(84, 6, 6, 0.95);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border-radius: 4px;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.catalogo-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-light);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.1);
}

.catalogo-dropdown a:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    color: #FFD700 !important;
    padding-left: 2rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.dropdown:hover .catalogo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* EFECTO BRILLO EN BOTÓN HAMBURGUESA */
.menu-toggle span {
    box-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
}

.menu-toggle.active span {
    background-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
/* -----------------------------
       BOTÓN FLOTANTE DE WHATSAPP
       ----------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: rgb(255, 255, 255);
    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.5);
    z-index: 100;
    transition: all 0.3s;
    animation: pulse1 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

@keyframes pulse1 {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos comunes para ambos botones */
.whatsapp-button, .cart-button {
    color: #ffffff;
    width: center;
    font-size: 70%;
    font-family: 'Montserrat', sans-serif;
}

.cart-icon {
    display: inline-block;
    width: 30px;
    height: 35px;
    background-image: url('../index/carritoq.png');
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    background-position: center;
}

@keyframes pulse1 {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ======================================================= */
/* HERO CATÁLOGO - SIN MODIFICACIONES (TAL CUAL) */
/* ======================================================= */

/* -----------------------------
    HEADER PRINCIPAL (hero-catalogo) - Imagen de fondo + Título con animaciones mejoradas
    ----------------------------- */

.hero-catalogo {
    position: relative;
    width: 100%;
    height: 620px;
    background: linear-gradient(#a1090926, #76080867), url('../index/catalogo/catalogo_celosias/inicio_celosias.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 4px solid #ffff00;
    box-shadow: 0 4px 15px #665e2d80;
    margin-bottom: 90px;
    overflow: hidden;
}

.hero-catalogo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-catalogo h1 {
    position: relative;
    z-index: 8;
    font-size: 4.5rem; /* Tamaño aumentado */
    color: #ffffff;
    text-shadow: 2px 2px 8px #000000e6;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: 7.5px;
    margin: 0;
    padding: 0 50px;
    animation: titleEntrance 1.5s ease-out forwards, glowPulse 3s infinite alternate, subtleFloat 6s infinite ease-in-out;
    transform-origin: center;
    opacity: 0;
}


/* Animación de entrada espectacular */
@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8) rotate(-5deg);
        letter-spacing: 20px;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-15px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
        letter-spacing: 7.5px;
    }
}


/* Efecto de brillo pulsante */
@keyframes glowPulse {
    0% {
        text-shadow: 2px 2px 8px #000000e6, 0 0 10px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 2px 2px 15px #000000e6, 0 0 25px rgba(255, 255, 255, 0.7), 0 0 35px rgba(255, 255, 0, 0.4);
    }
}


/* Flotación sutil */
@keyframes subtleFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}


/* Efecto de letras individuales (si el HTML permite manipular cada letra) */
.hero-catalogo h1 span {
    display: inline-block;
    opacity: 0;
    animation: letterReveal 0.5s forwards;
    animation-delay: calc(0.1s * var(--letter-index));
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* ======================================================= */
/* CONTENEDOR DE PRODUCTOS */
/* ======================================================= */

.contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 55px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}


/* Cada producto */
.producto {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 30px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 255, 0, 0.2);
}


/* Imagen con zoom al hacer hover */
.producto img {
    width: 100%;
    height: 560px;
    object-fit: contain;
    background: #ffffff; /*color fondo de imagen*/
    padding: 12px;
    border-bottom: 3px solid #a10e0e; /*color filo de la imagen*/
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.producto:hover img {
    transform: scale(1.22); /*extension de la imagen*/
    box-shadow: 0 0 30px #d91111; /*contraste animacion imagen hover*/
}


/* Nombre del producto */
.producto h2 {
    font-size: 1.3rem;
    color: #000000;
    margin: 10px 0;
    font-weight: 500;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    padding: 0 10px 10px;
}


/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================= */
/* FOOTER PRINCIPAL - IDÉNTICO AL ORIGINAL */
/* ======================================================= */
.footer-principal {
    background-color: #f8f8f8;
    color: #333;
    padding: 30px 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    border-top: 4px solid #540606;
}

footer p {
    font-family: 'Montserrat', sans-serif;
    color: black;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-columna {
    flex-basis: 30%;
    padding: 20px;
}

.footer-info {
    text-align: left;
}

.footer-container h3 {
    color: #dda97cdd;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.footer-enlaces ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-enlaces li {
    margin-bottom: 10px;
}

.footer-enlaces a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.footer-enlaces a:hover {
    color: #dda97cdd;
}

.footer-contacto {
    text-align: left;
}

.footer-contacto p {
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    color: black;
}

.footer-contacto i {
    margin-right: 8px;
    color: #dda97cdd;
}

.footer-social h3 {
    margin-top: 20px;
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: #555;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #dda97cdd;
}

.mapa-ubicacion-footer {
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.mapa-ubicacion-footer iframe {
    width: 100%;
    height: 200px;
    display: block;
}

/* ======================================================= */
/* MODAL DE IMAGEN AMPLIADA */
/* ======================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.4s ease;
}

#modalImage {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border: 4px solid #ffffff;
    background: white;
    object-fit: contain;
}

#modalCaption {
    margin-top: 15px;
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
    transform: scale(2.5); /*animacion "X" */
}


/* Animación de entrada del modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =======================================================
        BOTÓN VOLVER ARRIBA
    ======================================================= */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* =======================================================
        ESTILOS PARA LIBRO DE RECLAMACIONES
    ======================================================= */
.libro-reclamaciones {
    color: #fffefbc0 !important;
    font-weight: 700 !important;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.libro-reclamaciones::before {
    content: "";
    background-image: url('../img/libro-reclamaciones.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 150px;
    height: 150px;
    margin-right: 8px;
    vertical-align: middle;
}

.libro-reclamaciones:hover {
    color: #ecc44ec0 !important;
    transform: translateX(5px);
}

.libro-reclamaciones::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.libro-reclamaciones:hover::after {
    width: 100%;
}

@keyframes attention {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.libro-reclamaciones {
    animation: attention 2s ease-in-out infinite;
}

/* =======================================================
        ESTILOS PARA TIKTOK MINI
    ======================================================= */
.tiktok-mini {
    max-width: 50px;
    transform: scale(0.7);
    transform-origin: top left;
    overflow: hidden;
    margin-top: 10px;
}

/* =======================================================
        RESPONSIVE DESIGN - Menú hamburguesa centrado
    ======================================================= */
@media (max-width: 768px) {
    /* Botón del menú hamburguesa */
    .menu-toggle {
        display: flex;
    }
    /* Navegación para móviles - CENTRADA */
    .barra-navegacion {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(to bottom, #380101, #5f0000);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .barra-navegacion.visible {
        right: 0;
    }
    .barra-navegacion ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .barra-navegacion li {
        margin: 15px 0;
        width: 100%;
    }
    .barra-navegacion a {
        display: block;
        padding: 15px 0;
        font-size: 20px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        font-family: 'Montserrat', sans-serif;
    }
    .barra-navegacion a:after {
        display: none;
    }
    /* Dropdown en móviles */
    .catalogo-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(84, 6, 6, 0.7);
        margin-top: 10px;
        padding-left: 0;
        box-shadow: none;
        width: 100%;
        text-align: center;
    }
    .catalogo-dropdown.visible {
        display: block;
    }
    .catalogo-dropdown a {
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-family: 'Montserrat', sans-serif;
    }
    /* Header y Navegación */
    .header-principal {
        padding: 0.8rem 3%;
    }
    
    /* Hero responsive */
    .hero-catalogo h1 {
        font-size: 3.2rem; /* Ajustado para responsive */
        letter-spacing: 4px;
        padding: 0 20px;
    }
    
    /* Productos responsive */
    .contenedor {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        padding: 15px;
    }
    .producto img {
        height: 420px;
        padding: 9px;
    }
    .producto h2 {
        font-size: 1rem;
    }
    
    /* Footer Responsive */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-columna {
        flex-basis: 100%;
        text-align: center;
    }
    .footer-info, .footer-enlaces ul, .footer-contacto {
        text-align: center;
    }
    .footer-social h3, .footer-contacto h3 {
        text-align: center;
    }
    .social-icons {
        display: flex;
        justify-content: center;
    }
    
    /* Mapa responsive */
    .mapa-ubicacion-footer iframe {
        height: 150px;
    }
}

/* Para pantallas más grandes, asegurar que el dropdown funcione con hover */
@media (min-width: 769px) {
    .catalogo-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(84, 6, 6, 0.95);
        min-width: 200px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
        z-index: 100;
        border-radius: 4px;
        padding: 0.5rem 0;
        display: block !important;
    }
    .dropdown:hover .catalogo-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* Asegurar que la navegación sea visible */
    .barra-navegacion {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .header-principal {
        padding: 0.8rem 1rem;
    }
    .logo img {
        height: 35px;
    }
    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-flotante img {
        width: 30px;
        height: 30px;
    }
    
    /* Hero responsive */
    .hero-catalogo {
        height: 260px;
    }
    .hero-catalogo h1 {
        font-size: 2.2rem; /* Ajustado para responsive */
        letter-spacing: 2px;
        animation: titleEntranceMobile 1.2s ease-out forwards, glowPulse 3s infinite alternate;
    }
    @keyframes titleEntranceMobile {
        0% {
            opacity: 0;
            transform: translateY(50px) scale(0.8);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    /* Productos responsive */
    .contenedor {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .producto img {
        height: 300px;
    }
    
    /* Modal responsive */
    #modalImage {
        max-width: 95vw;
        max-height: 70vh;
    }
    #modalCaption {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .close-btn {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }


/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
/* =============================================
   PARTÍCULAS DE VERANO PARA HEADER
============================================= */
.summer-particles-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.summer-particles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%);
    animation: particleGlow 4s ease-in-out infinite alternate;
}

@keyframes particleGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* =============================================
   RESPONSIVE: AJUSTES PARA MÓVILES
============================================= */
@media (max-width: 768px) {
    .header-principal::after {
        animation-duration: 5s;
        opacity: 0.4;
    }
    
    .summer-particles-header {
        display: none; /* Ocultar en móviles para rendimiento */
    }
    
    .barra-navegacion a {
        text-shadow: 0 0 2px rgba(255, 215, 0, 0.1);
    }
    
    .barra-navegacion a:hover {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
}