/* Reset & Variables */
:root {
    --primary: #0967b1;
    --primary-dark: #07528e;
    --primary-light: #e6f0f7;
    --accent: #f7a721;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #64748b;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius: 16px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(9, 103, 177, 0.15);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #f4f8fb;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

a { text-decoration: none; color: inherit; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 48px 0; }
@media (min-width: 768px) {
    .section { padding: 80px 0; }
}
.bg-light { 
    background-color: #f4f8fb; 
    background-image: 
        radial-gradient(at 0% 0%, rgba(9, 103, 177, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(247, 167, 33, 0.1) 0px, transparent 50%),
        url('../images/premium_bg.png');
    background-size: auto, auto, cover;
    background-position: center, center, center;
    background-attachment: scroll, scroll, fixed;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(9, 103, 177, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 103, 177, 0.4);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-block, .w-100 { width: 100%; display: block; text-align: center; margin: 0 auto; }
.btn-large { padding: 18px 40px; font-size: 1.1rem; }

/* Navbar - Glassmorphism Premium */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.logo {
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

.nav-links { display: none; }
.menu-toggle {
    background: none; border: none; color: var(--primary); cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(9, 103, 177, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    margin-top: 30px; /* Separamos el texto de la barra blanca */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Products Grid */
.products-grid, .branches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.branch-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(9, 103, 177, 0.15) !important;
}

.product-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(9, 103, 177, 0.15);
    border-color: rgba(9, 103, 177, 0.2);
}

.product-img-wrapper {
    position: relative;
    padding-top: 75%;
    background: #f8f9fa; /* Fondo elegante para las fotos */
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

/* Las imÃ¡genes ahora son manejadas por .product-slider y .slider-img */

.product-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(247, 167, 33, 0.3);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-specs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-specs span {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-price-container { margin-bottom: 20px; }

.price-real {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981; /* Verde premium */
    font-family: var(--font-heading);
}

.price-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.price-locked:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9,103,177,0.2);
}

.price-locked svg {
    color: var(--accent);
}

.product-action-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Category Slider Styles */
.category-slider-section {
    margin-bottom: 50px;
}
.category-slider-section:last-child {
    margin-bottom: 0;
}
.category-slider-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(9,103,177,0.1);
}
.category-slider-container {
    display: flex;
    gap: 20px; /* Reducido para que entren 4 tarjetas */
    overflow-x: auto;
    padding: 20px 10px 30px 10px; /* Padding extra para no cortar la sombra de las tarjetas */
    scroll-snap-type: x mandatory;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-width: 100%;
}
@media (min-width: 1024px) {
    /* Centrar de forma segura sin romper el scroll */
    .category-slider-container {
        width: fit-content;
        margin: 0 auto;
    }
}
.category-slider-container::-webkit-scrollbar {
    display: none;
}
.category-slider-container .product-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: calc(100% - 20px);
    min-height: 430px;
    height: auto;
}
@media (min-width: 768px) {
    .category-slider-container .product-card { width: calc(50% - 10px); }
}
@media (min-width: 1024px) {
    .category-slider-container .product-card { width: calc(25% - 15px); }
}

/* Slider Nav Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(9,103,177,0.2);
}

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    width: 100%;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Skeleton Loader */
.skeleton {
    background: #e2e5e7;
    background: linear-gradient(90deg, #e2e5e7 25%, #f0f2f4 50%, #e2e5e7 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-sm);
    height: 450px;
    display: flex;
    flex-direction: column;
}
.skeleton-img { height: 250px; border-radius: var(--radius) var(--radius) 0 0; }
.skeleton-text { height: 20px; margin: 20px; border-radius: 4px; }
.skeleton-text.short { width: 50%; }
.skeleton-btn { height: 45px; margin: auto 20px 20px; border-radius: var(--radius-sm); }

/* Filters */
.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02);
}

.filter-group label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-light);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230967b1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9, 103, 177, 0.1);
}

/* Modals (Glassmorphism) */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}

.modal.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--bg-white);
    width: 90%; max-width: 450px;
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
    .modal-content.quiz-modal-content {
        max-width: 800px;
    }
}

.modal.active .modal-content { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute; top: 20px; right: 20px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    transition: var(--transition);
}
.close-modal:hover { background: #ffe4e4; color: #dc2626; }

.modal-title { color: var(--text-main); margin-bottom: 10px; font-size: 1.8rem; }
.modal-desc { color: var(--text-muted); margin-bottom: 25px; font-size: 1rem; }

.form-group { margin-bottom: 20px; }
.modal-form input, .register-form input {
    width: 100%; padding: 14px 16px;
    border: 2px solid #e2e8f0; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; transition: var(--transition);
    background: #f8fafc;
}
.modal-form input:focus, .register-form input:focus {
    outline: none; border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(9, 103, 177, 0.1);
}

/* Floating WA */
.floating-wa {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000; transition: var(--transition);
    animation: pulse-green 2s infinite;
}
.floating-wa:hover { transform: translateY(-5px) scale(1.05); }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Desktop */
@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .nav-links { display: flex; gap: 35px; }
    .nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(9, 103, 177, 0.05);
    transform: scale(1.05);
}
    
    .hero-content h1 { font-size: 4.5rem; }
    .hero-buttons { flex-direction: row; justify-content: center; gap: 20px; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-filters { flex-direction: row; }
    .filter-group { flex: 1; margin-bottom: 0; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* === Fase 3: Mejoras EstÃ©ticas === */

/* Nosotros Layout */
.nosotros-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
@media (min-width: 900px) {
    .nosotros-layout {
        flex-direction: row;
        align-items: center;
    }
    .nosotros-text, .nosotros-img-wrapper {
        flex: 1;
    }
}
.nosotros-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.nosotros-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}
.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.nosotros-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

/* Floating Banner */
#globalBanner {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 18px 25px 18px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 320px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#globalBanner .close-banner {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: var(--text-main);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: none;
}
#globalBanner .close-banner:hover {
    transform: scale(1.15);
    color: var(--primary);
}

#globalBanner .banner-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    #globalBanner {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 90px;
        max-width: none;
        border-radius: var(--radius);
        padding: 10px;
        font-size: 0.75rem;
    }
    #globalBanner .banner-icon svg { width: 14px; height: 14px; }
    
    .hero-content h1 { font-size: 2.2rem !important; margin-bottom: 1rem; }
    .hero-content p { font-size: 1rem !important; margin-bottom: 1.5rem; }
    .hero-video { object-position: left center; }
    
    .section, .bg-light { padding: 40px 0 !important; scroll-margin-top: 80px; }
    #catalogo { scroll-margin-top: 80px; }
    
    .product-info { padding: 15px; }
    .product-img-wrapper { padding-top: 65%; }
    .quiz-card { padding: 25px 20px; }
    
    .mobile-menu { height: auto !important; padding-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .nosotros-layout { margin-bottom: 20px; }
    .nosotros-img-wrapper { height: 350px; }
    .nosotros-img { object-position: center; object-fit: cover; height: 100%; }
    
    .horizontal-grid .card { padding: 15px; }
    .horizontal-grid .card h4 { font-size: 1.2rem; }
    
    .modern-footer { padding: 40px 0 20px !important; }
    .footer-grid { gap: 30px !important; }
}
.nosotros-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.nosotros-img-wrapper:hover .nosotros-img {
    transform: scale(1.05);
}

/* Modern Filters */
.modern-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-group-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.pill-btn {
    background: white;
    border: 1px solid #ddd;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.pill-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(9, 103, 177, 0.3);
}

/* Modern Footer */
.modern-footer {
    background: #111;
    color: #eee;
    padding: 48px 0 20px;
}
@media (min-width: 768px) {
    .modern-footer {
        padding: 80px 0 20px;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-logo {
    max-height: 90px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}
.footer-brand p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-links a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-contact p {
    color: #999;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Quiz UI Redesign */
.quiz-question {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}
.quiz-options-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.quiz-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    width: calc(50% - 10px);
    max-width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.quiz-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(9, 103, 177, 0.15);
}
.quiz-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.quiz-card h5 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
}
.quiz-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 600px) {
    .quiz-card { width: 100%; max-width: none; }
}

/* Horizontal Grid para sucursales */
@media (min-width: 1024px) {
    .horizontal-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .horizontal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Quiz Fix & Size Selector */
#quizModal .modal-content { max-width: 600px; max-height: 90vh; overflow-y: auto; }

/* ============================
   SLIDER & CAROUSEL 
   ============================ */
.product-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.slider-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.product-card:hover .slider-img.active {
    transform: scale(1.05); /* Efecto zoom a pedido */
}

.slider-img.active {
    opacity: 1;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 10px; left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.slider-dots .dot {
    width: 8px; height: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.slider-dots .dot.active {
    background: var(--primary);
    transform: scale(1.3);
    border-color: var(--primary);
}

.slider-dots .dot:hover:not(.active) {
    background: rgba(0,0,0,0.3);
}

/* ============================
   VARIANT CARDS (Modal) - Grid layout
   ============================ */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.variant-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.variant-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(9, 103, 177, 0.1);
    transform: translateY(-2px);
}

.variant-img {
    width: 100%; height: 180px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px;
    margin-bottom: 15px;
}

.variant-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}
.variant-info h4 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; font-weight: 700; }
.variant-info p { font-size: 0.85rem; color: #666; margin-bottom: 15px; line-height: 1.4; flex: 1; }

.variant-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(n+7) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* Banner Slider */
.banner-slider {
    position: relative;
    overflow: hidden;
    height: 45px; /* Permite 2 lÃ­neas */
    width: 100%;
    min-width: 200px;
    flex: 1;
}
.banner-slide-item {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(calc(-50% + 10px));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.banner-slide-item.active {
    opacity: 1;
    transform: translateY(-50%);
}
.banner-slide-item.exit {
    opacity: 0;
    transform: translateY(calc(-50% - 10px));
}

/* Navbar Hero Overlay */
.navbar-hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 20px 0;
}
.navbar-hero .nav-links a {
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}
.navbar-hero .nav-links a:hover {
    color: #e0e0e0;
}
.navbar-hero .menu-toggle {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.navbar-hero .logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
}
.mobile-menu.active {
    right: 0;
}
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}
.mobile-link {
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}
.mobile-link:hover {
    color: var(--primary);
}

/* Hide scrollbar for quiz slider */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Marquee para Sucursales */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    padding: 20px 0;
}
.marquee-track {
    display: flex;
    gap: 30px;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}


/* Animación de respiración para el banner global */
#globalBanner {
    animation: pulse-banner 3s infinite;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}
@keyframes pulse-banner {
    0% { transform: translateZ(0) scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
    50% { transform: translateZ(0) scale(1.02); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
    100% { transform: translateZ(0) scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
}

