/* RESET + THEME */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    /* Colores principales */
    --azul-electrico: #144388;
    --azul-claro: #1976d2;
    --azul-oscuro: #0d2b58;
    --amarillo: #FFD700;
    --amarillo-hover: #FFC107;
    --naranja: #FF6B35;
    --rosa: #FF69B4;
    --verde: #4CAF50;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --gris-oscuro: #333333;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-fuerte: rgba(0, 0, 0, 0.2);
    
    /* Gradientes festivos */
    --gradiente-principal: linear-gradient(135deg, var(--azul-electrico) 0%, var(--azul-claro) 100%);
    --gradiente-festivo: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
    --gradiente-magia: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Tipografía */
    --fuente-titulos: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    --fuente-cuerpo: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
    
    /* Transiciones */
    --transicion-rapida: 0.2s ease;
    --transicion-normal: 0.3s ease;
    --transicion-suave: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transicion-rebote: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--fuente-cuerpo);
    line-height: 1.6;
    color: var(--gris-oscuro);
    overflow-x: hidden;
    background: var(--blanco);
}

/* ===== HEADER FESTIVO 🎉 ===== */
header {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, var(--azul-oscuro) 100%);
    color: var(--blanco);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(20, 67, 136, 0.4);
    backdrop-filter: blur(12px);
    transition: var(--transicion-normal);
    border-bottom: 3px solid var(--amarillo);
}

/* Decoración festiva en el header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--amarillo) 0%, 
        var(--naranja) 25%, 
        #FF69B4 50%, 
        var(--amarillo) 75%, 
        var(--naranja) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(20, 67, 136, 0.98);
    box-shadow: 0 6px 40px rgba(20, 67, 136, 0.5);
}

nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1800px;
    /* Aumentado para pantallas grandes */
    width: 95%;
    /* Ocupa casi todo el ancho */
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    z-index: 1001;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transicion-rebote);
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    padding: 6px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.logo-img:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border-color: var(--amarillo);
}

.logo-text {
    font-family: var(--fuente-titulos);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Reglas de desktop - solo se aplican en pantallas grandes */
@media (min-width: 769px) {
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.6rem;
    justify-self: center;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-self: end;
    }
}

.nav-links li {
    list-style: none;
}

.nav-links a,
.user-actions a {
    color: #fff;
    text-decoration: none;
    font-family: var(--fuente-cuerpo);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transicion-rebote);
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 25px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 25px;
    transform: scale(0);
    transition: var(--transicion-rebote);
}

.nav-links a:hover::before {
    transform: scale(1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    transition: var(--transicion-normal);
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a:hover,
.user-actions a:hover {
    color: var(--amarillo);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

/* Carrito en nav con badge especial */
.nav-links a .badge {
    background: linear-gradient(135deg, var(--naranja) 0%, #FF8C00 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 5px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Botones del header - OCULTOS por defecto (se muestran en móvil dentro del menú lateral) */
.guest-actions {
    display: none; /* Ocultar en escritorio - los botones ya están en nav-links en móvil */
    align-items: center;
    gap: 0.75rem;
}

.btn-nav-login {
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-family: var(--fuente-cuerpo);
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: var(--transicion-rebote);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.btn-nav-register {
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
    color: var(--azul-oscuro);
    border: 2px solid var(--amarillo);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    font-family: var(--fuente-cuerpo);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
}

.btn-nav-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-nav-register:hover::before {
    left: 100%;
}

.btn-nav-register:hover {
    background: linear-gradient(135deg, var(--naranja) 0%, #FF8C00 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
    animation: none;
}

/* Espaciado extra horizontal */
nav {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* Responsive Menu */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* MENÚ OCULTO POR DEFECTO - Solo aparece con nav.active */
    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        right: -100%;
        /* ANCHO RESPONSIVE: Se adapta pero con límites seguros */
        width: min(90vw, 380px); /* Usa el menor entre 90vw y 380px */
        max-width: 380px; /* Aumentado para evitar corte de texto */
        min-width: min(300px, 85vw); /* Mínimo adaptativo */
        height: 100vh;
        background: linear-gradient(135deg, var(--azul-electrico) 0%, var(--azul-oscuro) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        padding: 1rem 1.5rem;
        padding-top: 70px; /* Reducido para mejor aprovechamiento del espacio */
        padding-bottom: 1rem; /* Reducido para mejor aprovechamiento */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        overflow-x: hidden !important; /* Cambiado a hidden para evitar scroll horizontal */
        -webkit-overflow-scrolling: touch;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
        box-sizing: border-box !important; /* Incluir padding en el ancho */
    }

    .user-actions {
        display: none !important;
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        background: rgba(0, 0, 0, 0.3);
        flex-direction: column;
        padding: 1.5rem 1.2rem;
        gap: 0.75rem;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        z-index: 1001;
        transition: right 0.3s ease;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin-top: auto;
    }

    /* MENÚ VISIBLE SOLO CUANDO NAV TIENE CLASE .active */
    /* ALTURA COMPLETA: Pantalla completa como app móvil, sin scroll partido */
    nav.active .nav-links {
        display: flex !important;
        right: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* ANCHO RESPONSIVE: Se adapta al viewport pero con límites */
        width: min(90vw, 380px) !important; /* Usa el menor entre 90vw y 380px */
        max-width: 380px !important; /* Aumentado de 350px a 380px para evitar corte */
        min-width: min(300px, 85vw) !important; /* Mínimo adaptativo */
        /* ALTURA: Pantalla completa */
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-x: hidden !important; /* Evitar scroll horizontal */
        overflow-y: auto !important; /* Scroll interno */
        word-wrap: normal !important;
        overflow-wrap: normal !important;
        box-sizing: border-box !important; /* Incluir padding en el ancho */
        position: fixed !important;
        top: 0 !important;
    }

    /* USER-ACTIONS: Solo mostrar si hay usuario autenticado */
    /* Si no hay usuario, los botones ya están en nav-links */
    nav.active .user-actions:has(.user-menu-wrapper) {
        display: flex !important;
        right: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        margin-top: 1rem !important;
    }
    
    /* Ocultar guest-actions separado (ya están en nav-links) */
    nav.active .user-actions:has(.guest-actions) {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        text-align: left;
        gap: 0.5rem;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        list-style: none;
        overflow: visible !important;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.25rem; /* Reducido ligeramente de 1.5rem para dar más espacio al texto */
        text-align: left;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
        color: white;
        text-decoration: none;
        /* TEXTO: Mantener una línea pero ajustarse al contenedor */
        white-space: nowrap !important; /* Mantener en una línea si es posible */
        overflow: hidden !important; /* Ocultar desbordamiento */
        text-overflow: ellipsis !important; /* Mostrar "..." si el texto es demasiado largo */
        width: 100% !important;
        min-width: 0 !important; /* Permitir que se encoja si es necesario */
        max-width: 100% !important;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
        box-sizing: border-box !important; /* Incluir padding y border en el ancho */
        word-break: keep-all !important; /* No dividir palabras */
    }
    
    .nav-links a:hover,
    .nav-links a:active,
    .nav-links a:focus {
        background: rgba(255, 215, 0, 0.25);
        border-color: var(--amarillo);
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0052CC 100%);
    color: #fff;
    padding: 160px 1.5rem 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* anula el max-width del section */
}

/* Ola suave encima del fondo (puedes dejar tu SVG anterior si quieres) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background: radial-gradient(circle at 10% 20%, #ffffff33 0, transparent 45%),
        radial-gradient(circle at 80% 80%, #ffffff22 0, transparent 50%);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Etiqueta superior */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-tag i {
    font-size: 0.9rem;
    color: var(--amarillo);
}

.hero-inner h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.hero-inner p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 1.8rem;
    opacity: 0.95;
}

/* Botón centrado */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cart Modal Adjustments */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 80px;
    /* Increased padding to lower the modal */
}

.cart-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    /* Adjusted margin */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 85vh;
    /* Prevent it from being too tall */
    overflow-y: auto;
    /* Scroll inside modal if needed */
}

@media (max-width: 768px) {
    .cart-modal {
        padding-top: 60px;
    }

    .cart-modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

/* Pastillas de ventajas */
.hero-highlights {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.38);
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.hero-pill i {
    font-size: 0.9rem;
    color: var(--amarillo);
}

/* Ajustes en móviles */
@media (max-width: 768px) {
    .hero {
        padding: 130px 1.2rem 90px;
    }

    .hero-inner h1 {
        font-size: 2.1rem;
    }

    .hero-inner p {
        font-size: 1rem;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: center;
    }

    .hero-pill {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@keyframes wave {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
    color: var(--gris-oscuro);
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transicion-rebote);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

/* SECTION BASE */
section {
    padding: 80px 2rem;
    max-width: 1800px;
    /* Aumentado para pantallas grandes */
    width: 95%;
    /* Ocupa casi todo el ancho */
    margin: 0 auto
}

.section-title {
    font-family: var(--fuente-titulos);
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--azul-electrico);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja), var(--amarillo));
    margin: 1rem auto;
    border-radius: 10px;
}

/* CARDS SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 320px;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(20, 67, 136, 0.1);
    transition: var(--transicion-rebote);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transicion-normal);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--amarillo);
    box-shadow: 0 20px 50px rgba(20, 67, 136, 0.2), 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.service-card .service-icon {
    font-size: 4rem;
    color: var(--azul-electrico);
    margin-bottom: 1rem;
    transition: var(--transicion-rebote);
    display: inline-block;
}

.service-card .service-icon .emoji-icon {
    font-size: 4.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: var(--transicion-rebote);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--amarillo);
    text-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.service-card:hover .service-icon .emoji-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.4));
    animation: wiggle 0.5s ease-in-out;
}

.service-card h3 {
    font-family: var(--fuente-titulos);
    color: var(--azul-electrico);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    transition: var(--transicion-normal);
}

.service-card:hover h3 {
    color: var(--azul-oscuro);
}

/* ✅ ESTO ES CRÍTICO: El párrafo crece y empuja el botón hacia abajo */
.service-card p {
    flex-grow: 1;
    /* ← Hace que el texto ocupe el espacio disponible */
    margin-bottom: 1.5rem;
    color: #666;
}

/* ✅ El botón se pega al fondo de la tarjeta */
.btn-secondary {
    background: var(--gradiente-principal);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--fuente-cuerpo);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transicion-rebote);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(20, 67, 136, 0.3);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--gradiente-festivo);
    color: var(--gris-oscuro);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* COMBOS */
#combos {
    background: var(--gris-claro)
}

.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem
}

.combo-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(20, 67, 136, 0.12);
    transition: var(--transicion-rebote);
    position: relative;
    border: 3px solid transparent;
}

.combo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 215, 0, 0.05) 100%);
    pointer-events: none;
}

.combo-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--amarillo);
    box-shadow: 0 25px 60px rgba(20, 67, 136, 0.25), 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.combo-card.featured {
    border: 3px solid var(--amarillo);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
}

.combo-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 30px 70px rgba(255, 215, 0, 0.4);
}

.combo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--azul-electrico);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: .9rem;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3)
}

.combo-badge.popular {
    background: var(--amarillo);
    color: var(--gris-oscuro);
    animation: pulseGlow 2s infinite
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(0, 0, 0, .3)
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(255, 215, 0, .6)
    }
}

.combo-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--gris-claro)
}

.combo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s
}

.combo-card:hover .combo-image img {
    transform: scale(1.1)
}

.combo-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradiente-festivo);
    color: var(--gris-oscuro);
    padding: 1rem 1.5rem;
    border-radius: 50%;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1.8rem;
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    animation: balloonFloat 3s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.8);
    transition: var(--transicion-rebote);
}

.combo-card:hover .combo-price {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.combo-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.combo-content h3 {
    font-family: var(--fuente-titulos);
    color: var(--azul-electrico);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: var(--transicion-normal);
}

.combo-card:hover .combo-content h3 {
    color: var(--azul-oscuro);
}

.combo-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem
}

.combo-includes {
    list-style: none;
    margin-bottom: 2rem
}

.combo-includes li {
    padding: .8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1rem;
    color: var(--gris-oscuro)
}

.combo-includes li:last-child {
    border-bottom: none
}

.combo-includes i {
    color: #4CAF50;
    font-size: 1.2rem
}

.combo-note {
    background: #FFF9E6;
    border-left: 5px solid var(--amarillo);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem
}

.combo-note i {
    color: var(--amarillo);
    font-size: 1.5rem;
    flex-shrink: 0
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* CATÁLOGO MODAL */
.catalog-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .9);
    animation: fadeIn .3s
}

.catalog-modal.active {
    display: block
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.catalog-modal-content {
    background: #fff;
    margin: 2% auto;
    padding: 0;

    /* 🔹 Que el panel se adapte al contenido */
    width: fit-content;
    max-width: 95vw;
    /* que nunca pase del ancho de la pantalla */
    min-width: 360px;
    /* para que no se haga demasiado chiquito */

    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
    animation: slideDown .4s;
    max-height: 90vh;
    overflow-y: auto;
}


@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.catalog-header {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0052CC 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10
}

.catalog-header h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem
}

.close-catalog {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    background: rgba(255, 255, 255, .2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.close-catalog:hover {
    background: var(--amarillo);
    color: var(--gris-oscuro);
    transform: rotate(90deg)
}

.catalog-body {
    padding: 2rem
}

.catalog-item:hover .catalog-item-image img {
    transform: scale(1.1)
}

.catalog-item-btn {
    background: var(--azul-electrico);
    color: #fff;
    padding: .7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: .3s;
    font-size: 1rem
}

.catalog-item-btn:hover {
    background: #0052CC;
    transform: scale(1.05)
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .95);
    justify-content: center;
    align-items: center
}

.lightbox.active {
    display: flex
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .5)
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: .3s
}

.lightbox-close:hover {
    color: var(--amarillo);
    transform: rotate(90deg)
}

/* CHAT */
.live-chat-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 1500
}

.chat-button {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0052CC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 102, 255, .4);
    transition: .3s;
    z-index: 1500;
    animation: bounceChat 2s infinite
}

@keyframes bounceChat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 102, 255, .6)
}

.chat-button i {
    color: #fff;
    font-size: 1.8rem
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF4444;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: bold;
    animation: pulse 1.5s infinite
}

.chat-window {
    display: none;
    width: 380px;
    height: 550px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .3s
}

.chat-window.active {
    display: flex
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0052CC 100%);
    color: #fff;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: .8rem
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--amarillo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem
}

.chat-header-text h3 {
    font-size: 1rem;
    margin-bottom: .2rem
}

.chat-status {
    font-size: .8rem;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: .3rem
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: blink 2s infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.chat-close-btn {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, .3);
    transform: rotate(90deg)
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #F8F9FA
}

.chat-messages::-webkit-scrollbar {
    width: 6px
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px
}

.message {
    margin-bottom: 1rem;
    animation: fadeInMessage .3s
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.message-bot {
    display: flex;
    gap: .5rem;
    align-items: flex-start
}

.message-bot .message-avatar {
    width: 30px;
    height: 30px;
    background: var(--azul-electrico);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .8rem;
    flex-shrink: 0
}

.message-bot .message-content {
    background: #fff;
    padding: .8rem 1rem;
    border-radius: 15px;
    border-top-left-radius: 5px;
    max-width: 75%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

.message-user {
    display: flex;
    justify-content: flex-end
}

.message-user .message-content {
    background: var(--azul-electrico);
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 15px;
    border-top-right-radius: 5px;
    max-width: 75%
}

.message-time {
    font-size: .7rem;
    color: #999;
    margin-top: .3rem
}

.typing-indicator {
    display: none;
    padding: .8rem 1rem;
    background: #fff;
    border-radius: 15px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

.typing-indicator.active {
    display: block
}

.typing-dots {
    display: flex;
    gap: .3rem
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite
}

.typing-dots span:nth-child(2) {
    animation-delay: .2s
}

.typing-dots span:nth-child(3) {
    animation-delay: .4s
}

@keyframes typingAnimation {

    0%,
    60%,
    100% {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-10px)
    }
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem
}

.quick-reply-btn {
    background: #fff;
    border: 2px solid var(--azul-electrico);
    color: var(--azul-electrico);
    padding: .5rem 1rem;
    border-radius: 20px;
    font-size: .85rem;
    cursor: pointer;
    transition: .3s
}

.quick-reply-btn:hover {
    background: var(--azul-electrico);
    color: #fff
}

.chat-input-container {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: .8rem
}

.chat-input {
    flex: 1;
    padding: .8rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: .9rem;
    outline: none;
    transition: border-color .3s
}

.chat-input:focus {
    border-color: var(--azul-electrico)
}

.chat-send-btn {
    background: var(--azul-electrico);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s
}

.chat-send-btn:hover {
    background: #0052CC;
    transform: scale(1.1)
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed
}

/* GALERÍA */
#galeria {
    background: var(--gris-claro)
}

.gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--sombra)
}

.gallery-container {
    display: flex;
    transition: transform .5s ease
}

.gallery-item {
    min-width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    color: #fff;
    padding: 2rem;
    font-size: 1.2rem
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .9);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    z-index: 10
}

.slider-btn:hover {
    background: var(--amarillo)
}

.slider-btn.prev {
    left: 1rem
}

.slider-btn.next {
    right: 1rem
}

/* ABOUT */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem
}

.about-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(20, 67, 136, 0.1);
    border-left: 5px solid var(--azul-electrico);
    transition: var(--transicion-rebote);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    transition: var(--transicion-normal);
    opacity: 0;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-left-color: var(--amarillo);
    box-shadow: 0 20px 50px rgba(20, 67, 136, 0.15);
}

.about-card h3 {
    font-family: var(--fuente-titulos);
    color: var(--azul-electrico);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.about-card i {
    color: var(--amarillo);
    font-size: 1.8rem;
    transition: var(--transicion-rebote);
}

.about-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* COTIZADOR */
#cotizador {
    background: var(--gris-claro)
}

.quote {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra)
}

.quote__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(322px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem
}

.quote fieldset {
    border: 2px solid var(--azul-electrico);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--gris-claro)
}

.quote legend {
    color: var(--azul-electrico);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 .5rem
}

.quote .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: .5rem 0
}

.quote label {
    font-weight: 500;
    color: var(--gris-oscuro)
}

.qty {
    display: flex;
    align-items: center;
    gap: .5rem
}

.chip {
    background: var(--amarillo);
    color: var(--gris-oscuro);
    padding: .3rem .8rem;
    border-radius: 15px;
    font-size: .9rem;
    font-weight: bold
}

.quote input[type="number"],
.quote input[type="date"],
.quote input[type="text"],
.quote select {
    padding: .6rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color .3s;
    width: 80px
}

.quote input[type="date"],
.quote input[type="text"],
.quote select {
    width: 100%
}

.quote input:focus,
.quote select:focus {
    outline: none;
    border-color: var(--azul-electrico)
}

.quote__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: .5rem
}

.btn--primary {
    background: var(--azul-electrico);
    color: #fff
}

.btn--primary:hover {
    background: #0052CC;
    transform: scale(1.05)
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--azul-electrico);
    color: var(--azul-electrico)
}

.btn--outline:hover {
    background: var(--azul-electrico);
    color: #fff
}

.btn--whats {
    background: #25D366;
    color: #fff;
    text-decoration: none
}

.btn--whats:hover {
    background: #1da851;
    transform: scale(1.05)
}

.btn--icon img {
    width: 24px;
    height: 24px
}

.totals {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem
}

.totals__line {
    display: flex;
    justify-content: space-between;
    padding: .8rem 0;
    border-bottom: 1px solid #ddd
}

.totals__line span {
    color: #666
}

.totals__line strong {
    color: var(--gris-oscuro)
}

.totals__grand {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.5rem
}

.totals__grand span {
    color: var(--azul-electrico);
    font-weight: bold
}

.totals__grand strong {
    color: var(--azul-electrico);
    font-size: 2rem
}

.totals__hint {
    color: #999;
    font-size: .9rem;
    font-style: italic;
    margin: 1rem 0
}

.btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* espacio entre botones */
    flex-wrap: wrap;
    /* si no caben, que bajen a otra línea */
    margin-top: 1.5rem;
}


/* CONTACT + FOOTER */
.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra)
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gris-claro);
    border-radius: 10px
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--azul-electrico)
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--azul-electrico);
    color: #fff;
    font-size: 1.5rem;
    transition: .3s
}

.social-btn:hover {
    transform: scale(1.1);
    background: var(--amarillo);
    color: var(--gris-oscuro)
}

/* ===== FOOTER FESTIVO 🎉 ===== */
footer {
    background: linear-gradient(180deg, var(--azul-oscuro) 0%, #0a1628 100%);
    color: #fff;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ola decorativa arriba del footer */
footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f5f5f5' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,75 1440,50 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* Decoraciones festivas */
.footer-decorations {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 2rem;
    opacity: 0.15;
    pointer-events: none;
}

.footer-inner {
    padding: 5rem 2rem 2rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.footer-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transicion-normal);
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.footer-section h3 {
    font-family: var(--fuente-titulos);
    color: var(--amarillo);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    transition: var(--transicion-rebote);
    padding: 0.4rem 0;
}

.footer-section a:hover {
    color: var(--amarillo);
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer-section a i {
    color: var(--amarillo);
    width: 20px;
}

/* Social links en footer */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
    color: var(--azul-oscuro);
    font-size: 1.4rem;
    transition: var(--transicion-rebote);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Copyright */
.copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.copyright p {
    margin: 0;
}

.copyright a {
    color: var(--amarillo);
    text-decoration: none;
    transition: var(--transicion-normal);
}

.copyright a:hover {
    text-decoration: underline;
}


/* WHATS APP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transicion-rebote);
    animation: balloonFloat 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    z-index: -1;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 15px 45px rgba(37, 211, 102, 0.5);
    animation: none;
}

/* FEEDBACK AL AGREGAR */
.flash {
    box-shadow: 0 0 0 3px var(--amarillo) inset;
    transition: box-shadow .6s ease
}

/* RESPONSIVE - Reglas adicionales para móviles (768px) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-header h2 {
        font-size: 1.5rem;
    }

    .chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 10px;
        bottom: 100px;
    }

    .live-chat-container {
        right: 10px;
        bottom: 100px;
    }

    .chat-button {
        right: 100px;
    }

    .logo-img {
        height: 40px;
        max-width: 150px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .quote__grid {
        grid-template-columns: 1fr;
    }

    .combos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .combo-card.featured {
        transform: scale(1);
    }

    .combo-card.featured:hover {
        transform: translateY(-15px);
    }

    .combo-price {
        font-size: 1.5rem;
        width: 75px;
        height: 75px;
        padding: .8rem;
    }
}

@media (max-width:480px) {
    nav {
        padding: 0 1rem
    }

    .logo-img {
        height: 35px;
        max-width: 120px
    }

    .logo-text {
        display: none
    }

    section {
        padding: 50px 1rem
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px
    }

    .chat-button {
        width: 50px;
        height: 50px;
        right: 90px;
        bottom: 20px
    }

    .chat-button i {
        font-size: 1.5rem
    }

    .catalog-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 2% auto;
    }

}

/* ===== BADGES DE CARRITO ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gris-oscuro);
    background: var(--amarillo);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    vertical-align: middle;
}

.badge.bump {
    animation: badgeBump 300ms ease;
}

@keyframes badgeBump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

/* Contador local en botones “Agregar” */
.catalog-item-btn .count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #fff;
    color: var(--azul-electrico);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.catalog-qty-input {
    border: none;
    outline: none;
    text-align: center;
    background: transparent;
    /* el fondo blanco ya viene de .count-badge */
    -moz-appearance: textfield;
}

/* quitar flechitas de number en Chrome/Safari */
.catalog-qty-input::-webkit-outer-spin-button,
.catalog-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* === Detalle de cotización === */
.quote-details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--sombra);
}

.quote-details__title {
    margin: 0 0 0.75rem 0;
    color: var(--azul-electrico);
    font-size: 1.1rem;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-table th,
.quote-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.quote-table td:nth-child(2),
.quote-table td:nth-child(3),
.quote-table td:nth-child(4) {
    text-align: right;
}

.quote-table tr:last-child td {
    border-bottom: none;
}

/* MODAL DATOS DEL CLIENTE */
.client-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.client-modal.active {
    display: flex;
}

.client-modal-content {
    background: #fff;
    width: 95%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.client-modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0052CC 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.client-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.client-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.client-modal-body {
    padding: 1.5rem;
}

.client-form-row {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1rem;
}

.client-form-row label {
    font-weight: 600;
    color: var(--gris-oscuro);
}

.client-form-row label span {
    color: #e53935;
}

.client-form-row input {
    padding: .7rem .9rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: .95rem;
    transition: border-color .3s;
}

.client-form-row input:focus {
    outline: none;
    border-color: var(--azul-electrico);
}

.client-form-row input.error {
    border-color: #e53935;
}

.client-modal-note {
    font-size: .85rem;
    color: #777;
}

.client-modal-footer {
    padding: 1rem 1.5rem 1.3rem;
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    background: #fafafa;
}

/* Botón azul “Agregar” convertido en contenedor vertical */
.catalog-item-btn--add {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
}

.catalog-item-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Input de cantidad estilizado como pastilla blanca */
/* Input de cantidad con contorno visible */
.catalog-count-input {
    width: 80px;
    height: 28px;
    text-align: center;
    border-radius: 999px;

    /* 🔹 AQUÍ LE DAMOS EL CONTORNO */
    border: 2px solid rgba(255, 255, 255, 0.9);
    /* bordecito blanco */
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
    /* sombrita suave */

    padding: 0 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: #ffffff;
    color: var(--azul-electrico);
}

/* Cuando recibe foco, que se vea todavía más marcado */
.catalog-count-input:focus {
    outline: none;
    border-color: var(--amarillo);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.9);
}


/* Sin flechas en inputs number */
.catalog-count-input::-webkit-outer-spin-button,
.catalog-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.catalog-count-input[type="number"] {
    -moz-appearance: textfield;
}

/* Focus bonito */
.catalog-count-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--amarillo);
}

.catalog-item-btn--remove {
    width: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--azul-electrico);
    border: 2px solid var(--azul-electrico);
}

.catalog-item-btn--remove:hover {
    background: #ffebee;
    color: #c62828;
    border-color: #c62828;
}

.btn-combo-add {
    width: 100%;
    margin-top: 15px;
    background: #ffcc00;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
}

.btn-combo-add:hover {
    background: #e0b700;
    transform: scale(1.03);
}

/* HERO con slider de fondo */
.hero-with-slider {
    position: relative;
    overflow: hidden;
}

/* Contenedor de las diapositivas */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Cada foto */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 10s ease;
}

/* Foto visible */
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.02);
}

/* Capa azul encima de las fotos para que combine con tu paleta */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.9), rgba(0, 82, 204, 0.95));
    z-index: 0;
}

/* Contenido por encima del slider */
.hero-inner {
    position: relative;
    z-index: 1;
}

/* Flechas del carrusel */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-50%) scale(1.05);
}

/* Puntos del carrusel */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.hero-dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Ajustes en móviles */
@media (max-width: 768px) {
    .hero-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .hero-dots {
        bottom: 18px;
    }
}

/* === HERO CORREGIDO (texto + tarjeta con carrusel) === */

.hero {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0052CC 100%);
    color: #fff;
    padding: 150px 1.8rem 110px;
    position: relative;
    overflow: hidden;
}

/* brillo suave en el fondo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background:
        radial-gradient(circle at 10% 20%, #ffffff33 0, transparent 45%),
        radial-gradient(circle at 80% 80%, #ffffff22 0, transparent 50%);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-left {
    flex: 1.1;
    min-width: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-tag i {
    font-size: 0.9rem;
    color: var(--amarillo);
}

.hero-left h1 {
    font-family: var(--fuente-titulos);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.9rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out;
}

.hero-left p {
    font-size: 1.25rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-left {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-highlights {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.8rem 1rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.38);
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.hero-pill i {
    font-size: 0.9rem;
    color: var(--amarillo);
}

/* TARJETA DEL CARRUSEL */
.hero-right {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.hero-card-slider {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 260px;
    background: #050716;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* cada slide */
.hero-card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-card-slide.is-active {
    opacity: 1;
    transform: translateX(0);
}

.hero-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* flechas */
.hero-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease, transform 0.15s ease;
    opacity: 0.95;
}

.hero-card-arrow--prev {
    left: 26px;
}

.hero-card-arrow--next {
    right: 26px;
}

.hero-card-arrow:hover {
    background: rgba(15, 23, 42, 1);
    transform: translateY(-50%) scale(1.05);
}

/* puntos */
.hero-card-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}

.hero-card-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, width 0.2s ease;
}

.hero-card-dot.is-active {
    background: var(--amarillo);
    border-color: var(--amarillo);
    width: 16px;
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero {
        padding: 130px 1.5rem 90px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        width: 100%;
        justify-content: center;
    }

    .hero-card-slider {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-left h1 {
        font-size: 2.2rem;
    }

    .hero-left p {
        font-size: 1rem;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-pill {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Botón azul Agregar más compacto */
.catalog-item-btn--add {
    width: auto;
    /* ya no ocupa todo el ancho */
    max-width: 210px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    /* texto arriba, input abajo */
    align-items: center;
    gap: 0.25rem;
}

/* Texto "+ Agregar" un poco más chico */
.catalog-item-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Input de cantidad más pequeño y centrado */
.catalog-count-input {
    width: 64px;
    height: 24px;
    text-align: center;
    border-radius: 999px;
    border: none;
    padding: 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
    color: var(--azul-electrico);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.catalog-count-input::-webkit-outer-spin-button,
.catalog-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.catalog-count-input[type="number"] {
    -moz-appearance: textfield;
}

.catalog-count-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--amarillo);
}

/* Botón de restar pequeño y centrado */
.catalog-item-btn--remove {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin: 0;
    /* por si heredaba algo raro */
}

/* === Alinear botones al mismo nivel en todas las tarjetas === */

/* La parte de abajo de la tarjeta: nombre + descripción + botones */
.catalog-item-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
}


/* Contenedor de Agregar / Quitar */
.catalog-item-actions {
    margin-top: auto;
    /* se va al fondo de la tarjeta */
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Botón azul "Agregar" más compacto */
.catalog-item-btn--add {
    padding: 0.45rem 0.9rem;
    max-width: 170px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

/* Texto "+ Agregar" ligeramente más chico */
.catalog-item-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Input de cantidad tipo pastilla, pequeño */
.catalog-count-input {
    width: 60px;
    height: 22px;
    text-align: center;
    border-radius: 999px;
    border: none;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
    color: var(--azul-electrico);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.catalog-count-input::-webkit-outer-spin-button,
.catalog-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.catalog-count-input[type="number"] {
    -moz-appearance: textfield;
}

.catalog-count-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--amarillo);
}

/* Botón de restar también chiquito y centrado */
.catalog-item-btn--remove {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* === CATÁLOGO: tarjetas y botones corregidos === */

/* Grid de productos dentro del modal */
/* ===== CATÁLOGO: tarjetas y botones corregidos ===== */

/* Grid de productos dentro del modal */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    /* ✅ Limita el ancho total */
    margin: 0 auto;
    /* ✅ Centra el grid */
}

/* ✅ AGREGAR: Limitar el ancho máximo de cada tarjeta */
.catalog-item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--sombra);
    transition: .3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    /* ✅ Ancho máximo de cada tarjeta */
    margin: 0 auto;
    /* ✅ Centra la tarjeta si está sola */
}


.catalog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, .25);
}

/* Imagen */
.catalog-item-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
    background: var(--gris-claro);
}

.catalog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.catalog-item:hover .catalog-item-image img {
    transform: scale(1.06);
}

/* Precio */
.catalog-item-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--amarillo);
    color: var(--gris-oscuro);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* Parte de abajo: texto + botones */
.catalog-item-info {
    padding: 1.3rem 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.catalog-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--azul-electrico);
}

.catalog-item-description {
    font-size: 0.9rem;
    color: #666;
}

/* Contenedor de acciones (botón Agregar) */
.catalog-item-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

/* Base de todos los botones del catálogo */
.catalog-item-btn {
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-item-btn:hover {
    background: #0052CC;
    transform: translateY(-1px);
}


/* Modern Catalog Quantity Controls - Horizontal Design */
.catalog-qty-controls-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.catalog-qty-btn-modern {
    background: linear-gradient(135deg, var(--azul-electrico), #1976d2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.catalog-qty-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

.catalog-qty-btn-modern:active {
    transform: translateY(-1px);
}

.catalog-qty-btn-modern.minus {
    background: linear-gradient(135deg, #ef5350, #e53935);
    box-shadow: 0 4px 10px rgba(239, 83, 80, 0.3);
}

.catalog-qty-btn-modern.minus:hover {
    background: linear-gradient(135deg, #e53935, #c62828);
    box-shadow: 0 6px 20px rgba(239, 83, 80, 0.5);
}

.catalog-qty-display {
    flex: 1;
    text-align: center;
    padding: 0;
    min-width: 80px;
}

.catalog-qty-display span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--azul-electrico);
    display: inline-block;
    min-width: 40px;
    padding: 0.3rem 0.8rem;
    background: white;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botón Agregar con controles +/- dentro */
.catalog-item-btn--add {
    padding: 0.5rem 1rem;
    max-width: 200px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

/* Texto "+ Agregar" */
.catalog-item-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ✅ CONTENEDOR HORIZONTAL PARA +/- E INPUT */
.catalog-qty-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    /* separa un poco los tres */
}

/* 🟡 Botones de - y + */
.catalog-qty-compact-btn {
    background: var(--amarillo);
    /* amarillo sólido */
    color: var(--azul-electrico);
    /* símbolo en azul */
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* esquinas redondeadas */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.catalog-qty-compact-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.catalog-qty-compact-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.catalog-qty-compact-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

/* ✅ INPUT ENTRE LOS BOTONES +/- */
.catalog-qty-compact .catalog-count-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border-radius: 999px;
    /* pastilla redondita */
    border: 2px solid var(--amarillo);
    /* contorno amarillo */
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: #ffffff;
    color: var(--azul-electrico);
    box-shadow: none;
    /* sin sombras extras */
}

/* Input por defecto (si no está en .catalog-qty-compact) */
.catalog-count-input {
    width: 60px;
    height: 22px;
    text-align: center;
    border-radius: 999px;
    border: none;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
    color: var(--azul-electrico);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Quitar flechitas de number input */
.catalog-count-input::-webkit-outer-spin-button,
.catalog-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.catalog-count-input[type="number"] {
    -moz-appearance: textfield;
}

.catalog-count-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--amarillo);
}

/* ✅ OCULTAR BOTÓN DE RESTAR SEPARADO */
.catalog-item-btn--remove {
    display: none !important;
}

/* ===== HERO CON FONDO BLUR ===== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-background-slide.is-active {
    opacity: 1;
}

.hero-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(20, 67, 136, 0.85) 0%, rgba(13, 43, 88, 0.9) 100%);
    z-index: 1;
}


.hero-inner {
    position: relative;
    z-index: 2;
}

/* ===== CHATBOT ===== */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: var(--azul-electrico);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(20, 67, 136, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: bounceChat 2s infinite;
}

.chat-button:hover {
    transform: scale(1.1);
    background: var(--amarillo);
    color: var(--azul-electrico);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 999;
    animation: slideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0d2b58 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: var(--amarillo);
    color: var(--azul-electrico);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-header-text h3 {
    font-size: 1.1rem;
    margin: 0 0 0.2rem 0;
}

.chat-status {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-close-btn:hover {
    color: var(--amarillo);
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 400px;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.chat-message-bot {
    text-align: left;
}

.chat-message-user {
    text-align: right;
}

.chat-bubble {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-bubble-bot {
    background: #e3f2fd;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chat-bubble-user {
    background: var(--azul-electrico);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    gap: 0.5rem;
    background: #fff;
    border-radius: 0 0 15px 15px;
}

.chat-input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--azul-electrico);
}

.chat-send-btn {
    background: var(--azul-electrico);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chat-send-btn:hover {
    background: var(--amarillo);
    color: var(--azul-electrico);
    transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceChat {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .chat-button {
        right: 20px;
        bottom: 100px;
    }
}

/* ===== MODAL LOGIN PROFESIONAL ===== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.login-modal-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: loginSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.login-header {
    background: linear-gradient(135deg, var(--azul-electrico) 0%, #0d2b58 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.login-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.login-header h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.login-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.login-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.login-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Form */
.login-form-modern {
    padding: 2rem;
}

.login-input-group {
    margin-bottom: 1.5rem;
}

.login-input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--azul-electrico);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-input-group label i {
    font-size: 1rem;
}

.optional-tag {
    font-weight: 400;
    font-size: 0.85rem;
    color: #999;
}

.login-input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.login-input-group input:focus {
    outline: none;
    border-color: var(--azul-electrico);
    box-shadow: 0 0 0 4px rgba(20, 67, 136, 0.1);
}

.login-input-group input::placeholder {
    color: #bbb;
}

/* Error */
.login-error {
    background: #ffebee;
    color: #c62828;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.login-error i {
    font-size: 1.1rem;
}

/* Botón submit */
.login-submit-btn {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.login-submit-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.login-submit-btn i {
    font-size: 1.2rem;
}

/* Footer note */
.login-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.login-footer-note i {
    color: #4caf50;
}

/* Responsive */
@media (max-width: 768px) {
    .login-modal-card {
        width: 95%;
        margin: 1rem;
    }

    .login-form-modern {
        padding: 1.5rem;
    }
}

/* Toast global (avisos de carrito/cotizador) */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #182d5b;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 4000;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast button {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.toast-error {
    background: #c0392b !important;
    color: #fff !important;
}

.toast-success {
    background: #27ae60 !important;
    color: #fff !important;
}