/* ============================================== */
/* 0. PALETA DE COLORES Y VARIABLES */
/* ============================================== */
/* *{ outline:1px solid red; } */

:root {
    --color-primary: #6096ba;
    --color-secondary: #A9D6E5;
    --color-dark: #000000;
    --color-light: #FFFFFF;
    --color-accent: #E0E0E0;
    --color-text-secondary: #555555;
    --bg-light-section: var(--color-light);
}

/* ============================================== */
/* 1. ESTILOS GLOBALES Y TIPOGRAFÍA */
/* ============================================== */
body {
    margin: 0;
    padding-top: 50px;
    overflow-x: hidden;
    width: 100%;
    color: var(--color-dark);
    font-family: 'Open Sans', sans-serif;
    background: transparent;
}


html {
    scroll-behavior: smooth;
    width: 100%;
    background-image: url("../img/kurp2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    html {
        background-size: cover;
        background-position: center top;
        background-attachment: scroll;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-dark);
    font-weight: 700;
}

.text-primary-color { color: var(--color-primary) !important; }

.text-shadow-custom {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: #6096ba;
}
/* ============================================== */
/* 2. NAVBAR FIJO (SOLUCIÓN ANCHO Y DESBORDE) */
/* ============================================== */

#main-navbar {
    background-color: #FFFFFF !important;
    position: fixed;
    top: 15px;
    min-height: 56px;
    
    /* Centrado sin transform (evita errores de ancho en móvil) */
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    
    /* Ancho controlado */
    width: 90%; 
    max-width: 1100px;
    
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 20px !important; 
    z-index: 1000;
    transition: all 0.3s ease;
    
    /* Evita que cualquier contenido interno estire la barra */
    overflow: hidden; 
}

/* Forzamos al contenedor interno a no tener márgenes negativos */
#main-navbar .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}



/* Ajuste móvil para evitar desbordes */
@media (max-width: 991px) {
    #main-navbar {
        width: 88%; /* Un poco más angosto para dar aire a los costados */
        top: 10px;
        border-radius: 20px;
        overflow: visible; /* Permitir que el menú desplegable se vea */
    }

    /* Si el menú abierto causa el scroll, limitamos su ancho */
    .navbar-collapse {
        width: 100%;
        background: white;
        margin-top: 10px;
        border-radius: 15px;
    }
}

/* Fix global para evitar cualquier scroll horizontal en el sitio */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ============================================== */
/* SOBRESCRIBIR ICONO DE BOOTSTRAP (MODO DARK) */
/* ============================================== */

.navbar-dark, [data-bs-theme=dark] {
    /* Cambiamos el color del icono a NEGRO (stroke='%23000') */
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    
    /* También quitamos el borde del botón si te molesta */
    --bs-navbar-toggler-border-color: transparent !important;
}
/* ==============================================
   LINKS DEL NAVBAR
   ============================================== */

#main-navbar .nav-link {
    font-weight: 600; /* un poco más negrita */
    color: #000000;
    transition: color 0.25s ease;
}

#main-navbar .nav-link:hover {
    color: var(--color-primary); /* celeste de tu paleta */
}
/* OPCIONAL: Si lo preferís en el AZUL de tu marca (#6096ba) */
/*
.navbar-dark, [data-bs-theme=dark] {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236096ba' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
*/


/* ============================================== */
/* 3. SOLUCIÓN CENTRADO Y RESPONSIVE */
/* ============================================== */

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        justify-content: center; /* Centra los links en el medio */
    }

    .navbar-nav {
        display: flex;
        align-items: center;
    }
}

/* Ajuste para móvil: que no flote tanto y sea más sólido */
@media (max-width: 991px) {

    
    /* El menú desplegable en móvil */
    .navbar-collapse {
        background: white;
        margin-top: 10px;
        border-radius: 15px;
        padding: 10px;
    }
}

/* 
/* ============================================== */
/* 3. SOLUCIÓN CENTRADO (PANTALLA GRANDE) */
/* ============================================== */

@media (min-width: 992px) {
    /* Quitamos el position absolute del botón de contacto 
       para que todo fluya en una sola línea compacta */
    #navbarNav {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #navbarNav .navbar-nav {
        margin-left: 20px;
        margin-right: 20px;
    }

    #navbarNav .ms-auto {
        margin-left: 10px !important;
        position: static !important; /* Ahora es parte del flujo central */
    }
    
    /* Mantener mismo tamaño que el resto del navbar */
   
} 


/* Ajuste para móvil: que vuelva a ocupar casi todo el ancho */


/* ============================================== */
/* 4. ESTILOS DE BOTONES PERSONALIZADOS */
/* ============================================== */
.btn-primary-custom {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-light);
}

.btn-secondary-custom {
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 2px solid var(--color-light);
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary-custom-border {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.btn-secondary-custom-border:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* ============================================== */
/* 5. ESTILOS BASE DE SECCIÓN */
/* ============================================== */
section {
    position: relative;
    min-height: 100vh;
    background-color: transparent;
}

.bg-light-section { background-color: var(--bg-light-section); }
.bg-dark-section { background-color: var(--color-dark); }

#hero {
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin-top: 40px;
}

#hero h1 { color: var(--color-light); font-size: 3rem; }
#hero p.lead { font-weight: 500; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* =========================
   6. CAROUSEL INICIO (ACTUALIZADO)
========================= */

.hero-carousel {
    width: 100%;
    margin: auto;
    position: relative;
    padding-bottom: 50px; /* Un poco más de espacio para los indicadores */
}

/* Aplicamos el difuminado solo a las imágenes */
.hero-carousel .carousel-inner {
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* Ajuste de tamaño de las imágenes */
.hero-carousel img {
    width: 100%;
    height: auto;
    max-height: 600px; /* Aumentado para que no se vean chicas */
    object-fit: contain; /* Mantiene la proporción sin recortar */
    transition: transform 0.5s ease;
}

@media (max-width: 991px) {
    .hero-carousel img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-carousel img {
        max-height: 300px;
    }
}

/* Flechas - Ajustadas para que no tapen la imagen si es muy ancha */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8); /* Un toque de transparencia */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    z-index: 10;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background-color: white;
}

/* Mover flechas un poco más cerca si el diseño lo requiere */
.hero-carousel .carousel-control-prev { left: -30px; }
.hero-carousel .carousel-control-next { right: -30px; }

/* En pantallas muy anchas, sacamos las flechas más afuera */
@media (min-width: 1400px) {
    .hero-carousel .carousel-control-prev { left: -80px; }
    .hero-carousel .carousel-control-next { right: -80px; }
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: invert(1);
    width: 25px;
    height: 25px;
}

/* Puntitos inferiores */
.hero-carousel .carousel-indicators {
    bottom: -10px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    border: none;
    margin: 0 6px;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--color-primary);
}

/* ============================================== */
/* 7. SECCIÓN VENTAJAS (CARDS FLOTANTES CORREGIDAS) */
/* ============================================== */
#ventajas { background-color: #FFFFFF; min-height: 100vh; }
#ventajas .lead { color: var(--color-dark); }

.advantage-row-card {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    transition: none;
}

.advantage-card {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: 450px;
    
    /* BORDE REDONDEADO Y SOMBRA BLANCA/SUAVE */
    border-radius: 30px; 
  
    
    /* TRANSICIÓN: Esto asegura que el fondo entre con el efecto del texto */
    transition: all 0.6s ease-out;
}

.advantage-card .advantage-title {
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 800;
}

.advantage-card .advantage-text {
    color: #222222;
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.6;
}

/* LÓGICA DE DIRECCIÓN Y GRADIENTES */
@media (min-width: 992px) {
    /* Texto a la IZQUIERDA (Imagen a la derecha) */
    .col-lg-6:first-child .advantage-card {
        background: linear-gradient(to right, 
            rgba(255, 255, 255, 0) 0%,
            rgba(3, 175, 218, 0.13)50%, 
            rgba(255, 255, 255, 0) 100%) !important;
        padding: 5rem 6rem 5rem 4rem !important;
        text-align: left !important;
    }

    
}

/* MÓVIL: CARD SIMPLE CON TRANSPARENCIA */
@media (max-width: 991px) {
    .advantage-card {
        min-height: auto;
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        margin: 15px 10px !important;
        
        /* Fondo blanco con 70% de opacidad */
        background: rgba(19, 160, 185, 0.1) !important;
        
        /* Efecto de desenfoque opcional (borra esta línea si no te gusta) */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        
        /* Borde sutil para que la card se note sobre el fondo */
      
        
        /* Sombra muy suave */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .advantage-card .advantage-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .advantage-card .advantage-text {
        font-size: 1.15rem;
    }
}

/* ============================================== */
/* 9. TESTIMONIOS (FLIP CARDS) */
/* ============================================== */
.testimonial-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
    gap: 30px;
    padding-bottom: 0;
    background-color: var(--color-light);
}

.testimonial-card {
    width: calc(25% - 23px);
    min-width: 200px;
    height: 400px;
    perspective: 1000px;
    flex-shrink: 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: var(--color-light);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.testimonial-card:hover .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
}

.card-back {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.btn-primary-custom:disabled, 
.btn-primary-custom.disabled {
    background-color: transparent !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================== */
/* 10. CONTACTO */
/* ============================================== */
#contacto {
    background-color: var(--color-primary) !important;
    padding: 60px 0;
}

#contacto .form-label { color: var(--color-light) !important; font-weight: 600; }
#contacto .form-control { background-color: #FFFFFF; color: var(--color-dark); border-radius: 8px; }

/* ============================================== */
/* 11. PRICING CARDS */
/* ============================================== */
.pricing-card {
    background-color: var(--color-light);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover { border: 3px solid var(--color-primary); }

/* Ajustes finales de visibilidad */
#hero, section { background: transparent !important; }
#main-navbar .navbar-brand img {
    height: 40px !important;
    width: auto;
    max-height: none !important;
}

/* ============================================== 
   ESTO ES LO QUE FIJA Y AJUSTA LA IMAGEN EN MOBILE
   ============================================== */

body::before {
    content: "";
    position: fixed; /* Esto deja la imagen quieta */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../img/kurp2.png");
    background-size: cover;      /* Cubre la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;
    z-index: -1;                 /* La manda al fondo */
}

/* Ajuste específico para que en Mobile no se pierda el encuadre */
@media (max-width: 768px) {
    body::before {
        background-position: center top; /* Evita que se vea mal el recorte */
    }
}

/* IMPORTANTE: Borra el background-image que tengas en 'html' o 'body' 
   para que no se duplique la imagen o se tape. */
html, body {
    background: transparent !important;
}

/* ============================================== */
/* 10. CONTACTO - LIMPIEZA TOTAL */
/* ============================================== */

#contacto {
    background: transparent !important;
    min-height: auto !important; /* Permitimos que la altura la de el contenido */
}

/* Forzamos visibilidad de la card */
/* Busca y reemplaza tu clase .contact-card con esta */
.contact-card {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-radius: 40px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    overflow: hidden;
    
    /* Añade esto: */
    will-change: transform, opacity; 
    backface-visibility: hidden;
    transform: translateZ(0); /* Fuerza aceleración por hardware */
}

/* Etiquetas del formulario siempre visibles (Negras) */
#contact-form .form-label {
    color: #333333 !important;
    font-weight: 700;
}

/* Inputs con texto oscuro para que se vea lo que escriben */
#contact-form .form-control {
    color: #000000 !important;
}

#contact-form .form-control:focus {
    border-color: var(--color-primary);
    background-color: #ffffff !important;
}

/* Fix para AOS en móviles que a veces oculta elementos */
[data-aos] {
    pointer-events: auto !important;
}

/* ============================================== */
/* 12. FOOTER (FONDO TRASLÚCIDO Y TIPOGRAFÍA)    */
/* ============================================== */

footer.bg-dark-section {
    /* Negro con 85% de opacidad para que se trasluzca el fondo sutilmente */
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Open Sans', sans-serif; /* Consistencia con el body */
}

footer h5 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Estilos de los Links */
.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px); /* Efecto de desplazamiento al pasar el mouse */
}

/* Iconos Sociales */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons .social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Texto de descripción y propuesta */
footer p, .footer-proposal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc !important;
}

/* Ajuste del HR */
footer hr {
    opacity: 0.2;
    border-color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    footer {
        text-align: center !important;
    }
    .footer-link:hover {
        transform: none; /* Quitamos el desplazamiento en móvil */
    }
    .contact-info-footer li {
        justify-content: center;
    }
}
/* ============================================== */
/* 13. SOLUCIÓN FINAL: IGUALACIÓN Y CENTRADO      */
/* ============================================== */

/* 1. Ajuste del contenedor principal (Cápsula blanca) */
body.checkout-page #main-navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important; /* Liberamos el overflow para que no corte el logo */
    
    padding: 8px 20px !important; /* Igual que tu sección 2 */
}

/* 2. Reset del contenedor interno de Bootstrap */
body.checkout-page #main-navbar .container-fluid {
    display: flex !important;
    justify-content: center !important; /* Forzamos el centro */
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. El Logo: eliminamos floats y forzamos centrado */
body.checkout-page #main-navbar .navbar-brand {
    margin: 0 auto !important; /* Margen automático es infalible en Flexbox */
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: static !important;
    transform: none !important;
    float: none !important;
}



/* 5. Limpieza absoluta de elementos que empujan */
body.checkout-page #main-navbar .navbar-toggler,
body.checkout-page #main-navbar .navbar-collapse,
body.checkout-page #main-navbar .ms-auto {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    margin: 0 !important;
}

/* 6. Ajuste Mobile: Respetando tus reglas de la sección 3 */
@media (max-width: 991px) {
    body.checkout-page #main-navbar {
        width: 95% !important;
        padding: 8px 20px !important;
        border-radius: 20px !important;
    }
    
}

/* ==============================================
   FIX ALTURA NAVBAR (MISMO TAMAÑO EN TODAS LAS PÁGINAS)
   ============================================== */

#main-navbar{
    height:56px !important;
    min-height:56px !important;
    padding:0 20px !important;
    display:flex;
    align-items:center;
}

/* centrado vertical del contenido */
#main-navbar .container-fluid{
    height:100%;
    display:flex;
    align-items:center;
}

/* asegura que el logo quede centrado verticalmente */
#main-navbar .navbar-brand{
    display:flex;
    align-items:center;
    height:100%;
}

/* ==============================================
   FIX TAMAÑO LOGO (MISMO EN TODAS LAS PÁGINAS)
   ============================================== */

#main-navbar .navbar-brand{
    height:40px !important;
    display:flex;
    align-items:center;
}

#main-navbar .navbar-brand img{
    height:40px !important;
    width:auto !important;
    display:block;
}

/* Tamaño del logo global */
.logo-navbar{
    height:45px !important;
    width:auto !important;
    max-height:45px !important;
}

/* Forzar tamaño también en checkout */
body.checkout-page #main-navbar img{
    height:45px !important;
    max-height:45px !important;
    width:auto !important;
}

/* ============================================== */
/* 14. SECCIÓN TALLES */
/* ============================================== */

#talles {
    background: transparent;
}

/* CONTENEDOR CENTRADO */
#talles .row {
    justify-content: center;
    text-align: center;
}

/* CARD AJUSTADA A LA IMAGEN */
.talles-card {
    background-color: var(--color-light);
    border-radius: 25px;
    transition: all 0.3s ease;

    padding: 10px;

    display: inline-block;
    width: auto !important; /* 🔥 rompe bootstrap */
}

/* HOVER */
.talles-card:hover {
    border: 3px solid var(--color-primary);
}

/* IMAGEN */
.talles-img {
    width: 550px;      /* 🔥 ajustá este valor a gusto */
    max-width: 100%;   /* responsive */
    height: auto;
    display: block;
    border-radius: 15px;
}

/* MOBILE */
@media (max-width: 768px) {
    .talles-card {
        padding: 6px;
        border-radius: 20px;
    }

    .talles-img {
        width: 100%;
    }
}

/* FIX ESPACIADO MOBILE ENTRE TALLES Y COMPRAR */
@media (max-width: 768px) {

    #talles {
        min-height: auto !important;
        padding-bottom: 30px; /* 🔥 controla el espacio */
    }

    #comprar {
        min-height: auto !important;
        padding-top: 30px; /* 🔥 controla el espacio */
    }

}

/* ==============================================
   FIX REAL MOBILE (FORZADO)
============================================== */
@media (max-width: 768px) {

    /* 🔥 Rompemos TODOS los 100vh */
    section,
    #ventajas,
    #talles,
    #comprar {
        min-height: auto !important;
        height: auto !important;
    }

    /* 🔥 Hero controlado (no tan alto) */
    #hero {
        min-height: 85vh !important;
        height: auto !important;
    }

    /* 🔥 Espaciado real entre secciones */
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

}

/* ==============================================
   HERO TIPOGRAFÍA SOLO MOBILE (FORZADO)
============================================== */
@media (max-width: 768px) {

    #hero h1 {
        font-size: 2.4rem !important;
        line-height: 1.2 !important;
    }

    #hero p.lead {
        font-size: 1.2rem !important;
    }

}

/* ==============================================
   FIX MENU MOBILE (NO EMPUJA HEADER)
============================================== */
@media (max-width: 991px) {


    /* 🔥 CLAVE: sacamos el menú del flujo */
    .navbar-collapse {
        position: absolute;
        top: 70px; /* altura debajo del navbar */
        left: 0;
        width: 100%;
        
        background: white;
        border-radius: 15px;
        padding: 15px;

        box-shadow: 0 15px 30px rgba(0,0,0,0.15);

        z-index: 999;

        /* animación opcional */
        transition: all 0.3s ease;
    }

    /* Evita que Bootstrap meta altura extra */
    .navbar {
        align-items: center !important;
    }

    /* Asegura que el contenedor no crezca */
    #main-navbar .container-fluid {
        position: relative;
    }
}

/* ==============================================
   FIX ANIMACIÓN MENU MOBILE (SUAVE Y SIN DELAY)
============================================== */
@media (max-width: 991px) {

    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        background: white;
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);

        z-index: 999;

        /* 🔥 NUEVA ANIMACIÓN */
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    /* 🔥 Desactivamos SOLO la animación conflictiva */
    .collapsing {
        height: auto !important;
        transition: none !important;
    }
}

.ver-talles-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.ver-talles-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ==============================================
   FIX ESPACIADO INFERIOR CHECKOUT MOBILE
============================================== */
@media (max-width: 768px) {

    #checkout-section {
        padding-bottom: 120px !important; /* 🔥 más aire abajo */
    }

}

/* ==============================================
   BOTÓN FLOTANTE WHATSAPP
============================================== */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background-color: #25D366;
    color: #fff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);

    z-index: 99999;

    transition: all 0.3s ease;

    text-decoration: none !important;
}

.whatsapp-float i {
    display: block;
    line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    color: #fff;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

