/* ======================================================= */
/* 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;
    --shadow: 0 4px 6px rgba(0, 0, 0, 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;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejora de legibilidad para Montserrat */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.7;
    color: #555;
}

/* Contenedor general para control de anchos */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ======================================================= */
/* HEADER MEJORADO SIN MOVIMIENTO INICIAL */
/* ======================================================= */
.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;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    margin: 3px 0;
    transition: var(--transition);
}

.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;
}

.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);
}

/* ======================================================= */
/* WhatsApp flotante con animación */
/* ======================================================= */
.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    animation: none;
}

.whatsapp-flotante img {
    width: 35px;
    height: 35px;
}

/* ======================================================= */
/* ESTILOS MEJORADOS PARA LA SECCIÓN DE CLIENTES */
/* ======================================================= */
.clientes-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(84, 6, 6, 0.263), rgba(84, 6, 6, 0.312)),
                url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3') center/cover;
    text-align: center;
    padding: 2rem;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
    color: #ffffff;
}

.clientes-container {
    padding: 5rem var(--container-padding);
    min-height: 80vh;
    background: #ffffff;
}

.clientes-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.clientes-intro h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.clientes-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 0 auto 5rem;
    width: 100%;
    max-width: 1200px;
}

.cliente-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 300px;
    opacity: 0;
    transform: translateY(30px);
}

.cliente-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cliente-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(84, 6, 6, 0.121) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.overlay-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Efectos hover */
.cliente-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cliente-card:hover .cliente-imagen {
    transform: scale(1.05);
}

.cliente-card:hover .card-overlay {
    opacity: 1;
}

 /* Call to Action */
        .clientes-cta {
            text-align: center;
            padding: 3rem 2rem;
            background: #f8f9fa;
            border-radius: 12px;
            max-width: 800px;
            margin: 0 auto;
        }

        .clientes-cta h3 {
            font-size: 2rem;
            color: var(--color-primary);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .clientes-cta p {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            background: var(--color-primary);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid var(--color-primary);
            cursor: pointer;
        }

        .cta-button:hover {
            background: transparent;
            color: var(--color-primary);
        }

/* ======================================================= */
/* FOOTER ACTUALIZADO */
/* ======================================================= */
.footer-principal {
    background-color: #f8f8f8;
    color: #333;
    padding: 30px 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

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 a {
    color: #555;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #dda97cdd;
}

.mapa-ubicacion-footer iframe {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* ======================================================= */
/* 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 EL MAPA EN EL FOOTER */
/* ======================================================= */
.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;
}

/* ======================================================= */
/* BOTÓN FLOTANTE "VOLVER ARRIBA" */
/* ======================================================= */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--color-light);
}

/* ======================================================= */
/* ANIMACIONES NECESARIAS */
/* ======================================================= */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ======================================================= */
/* RESPONSIVE DESIGN MEJORADO */
/* ======================================================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .barra-navegacion {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-primary);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }

    .barra-navegacion.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .barra-navegacion ul {
        flex-direction: column;
        padding: 2rem;
    }

    .barra-navegacion li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .catalogo-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        margin-left: 1rem;
        background: transparent;
    }

    .catalogo-dropdown.show {
        display: block;
    }

    .dropdown:hover .catalogo-dropdown {
        transform: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-columna {
        margin-bottom: 2rem;
    }

    .footer-columna ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contacto p {
        justify-content: center;
    }

    .social-icons {
        display: flex;
        justify-content: center;
    }

    .mapa-ubicacion-footer iframe {
        height: 150px;
    }

    /* Responsive para sección clientes */
    .clientes-hero {
        height: 40vh;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .clientes-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .clientes-intro h2 {
        font-size: 2rem;
    }
    
    .clientes-cta h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    .header-principal {
        padding: 0.8rem 3%;
    }

    .whatsapp-flotante,
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 85px
    }

    .whatsapp-flotante img {
        width: 30px;
        height: 30px;
    }
    
    .footer-columna {
        padding: 0;
    }

    /* Responsive extra pequeño para clientes */
    .clientes-container {
        padding: 3rem 1rem;
    }
    
    .clientes-grid {
        gap: 1.5rem;
    }
    
    .cliente-card {
        height: 250px;
    }
}

/* Tablets y menores */
@media (max-width: 768px) {
    /* Menú hamburguesa */
    .barra-navegacion {
        top: 60px;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        transition: height 0.3s ease;
    }

    .barra-navegacion.active {
        height: calc(100vh - 60px);
        padding: 1rem 0;
    }

    .barra-navegacion ul {
        flex-direction: column;
        text-align: center;
    }

    .barra-navegacion li {
        margin: 1rem 0;
    }

    .catalogo-dropdown {
        position: static;
        transform: none;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Extra pequeño (celulares chicos) */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-columna {
        margin-bottom: 30px;
    }
}

/* Estilos para TikTok embed */
.tiktok-mini {
    max-width: 350px;
    transform: scale(0.7);
    transform-origin: top left;
    overflow: hidden;
}