@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700&display=swap');

/* ==========================================================================
   1. VARIABLES GLOBALES Y DISEÑO DE SISTEMA (PREMIUM AESTHETICS)
   ========================================================================== */
:root {
    /* Paleta de colores Premium */
    --brand-pink: #EC008C; /* Un rosa más vibrante y moderno */
    --brand-pink-dark: #C60074;
    --brand-blue: #0750A4;
    --brand-blue-dark: #053975;
    --brand-whatsapp: #25D366;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--brand-pink) 0%, #FF33A1 100%);
    --gradient-blue: linear-gradient(135deg, var(--brand-blue) 0%, #1A73E8 100%);
    --gradient-dark: linear-gradient(to bottom, rgba(7, 80, 164, 0.85) 0%, rgba(5, 57, 117, 0.95) 100%);
    
    /* Superficies y Fondos */
    --bg-navbar: rgba(255, 255, 255, 0.85); /* Glass effect */
    --bg-light-1: #F8F9FB; /* Más suave */
    --bg-light-2: #FFFFFF;
    --text-dark: #1D3557;
    --text-muted: #5A6A85;
    --text-light: #FFFFFF;
    
    /* Tipografía única */
    --font-family: 'Outfit', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Efectos Premium (Glassmorphism & Shadows) */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius: 20px;
    --box-shadow: 0 10px 40px rgba(7, 80, 164, 0.08);
    --box-shadow-hover: 0 20px 50px rgba(236, 0, 140, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Neumorfismo invertido suave para inputs */
    --input-shadow-inner: inset 0 2px 5px rgba(0,0,0,0.03);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light-1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZABLES (BOTONES, BADGES)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efecto de resplandor interno en botones */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-pink {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(236, 0, 140, 0.3);
}

.btn-pink:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(236, 0, 140, 0.45);
}

.btn-blue {
    background: var(--gradient-blue);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(7, 80, 164, 0.3);
}

.btn-blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(7, 80, 164, 0.45);
}

.btn-whatsapp {
    background-color: var(--brand-whatsapp);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   3. CABECERA (TOP BAR Y NAVBAR RESPONSIVO)
   ========================================================================== */
.header-top {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-top .container {
    display: flex;
    flex-direction: row;           /* Una sola fila siempre, incluso en móvil */
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
    flex-wrap: nowrap;             /* Sin salto de línea */
    overflow: hidden;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s;
    font-size: 0.78rem;            /* Pequeño para caber en una línea */
    white-space: nowrap;           /* Sin salto de línea interno */
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-info-item:hover {
    opacity: 1;
}

/* Separadores entre items del header — con padding simétrico (izq Y der) */
.top-info-item + .top-info-item {
    border-left: 1px solid rgba(255,255,255,0.4);
    padding-left: 12px;
}
/* Espacio después de cada item (derecha) */
.top-info-item {
    padding-right: 12px;
}
/* El último no lleva padding derecho extra */
.top-info-item:last-child {
    padding-right: 0;
}

/* Texto largo: visible en desktop, oculto en móvil */
.top-text-long  { display: inline; }
.top-text-short { display: none;   }

/* Navbar Premium Glassmorphism */
.navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Hamburguesa móvil animada */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú de navegación Moderno */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 120px 40px 40px 40px;
    gap: 25px;
    list-style: none;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1050;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-block;
    padding: 10px 0;
    position: relative;
}

/* Efecto hover subrayado animado */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-pink);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-cta {
    display: block;
    flex-shrink: 0;  /* El botón no se reduce más de lo necesario */
}
.nav-cta .btn {
    padding: 10px 20px;
}
.nav-cta .cta-text {
    display: inline;
    font-size: 0.95rem;
}

/* ==========================================================================
   4. SECCIÓN HERO (INICIO) - DISEÑO ASIMÉTRICO MODERNO
   ========================================================================== */
.hero {
    background-color: var(--bg-light-1);
    background-image: url('../images/escenario-escritorio_web.webp');
    background-size: cover;
    background-position: center right;
    background-attachment: fixed;
    padding: 60px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente horizontal: blanco sólido izquierda → transparente derecha */
    background: linear-gradient(to right, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 55%;    /* Solo toma la mitad izquierda; la foto ocupa la derecha */
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-ribbon {
    height: 80px;
    margin-bottom: -15px;
    transform: rotate(-3deg) translateX(-10px);
    filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.15));
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--brand-blue);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    /* Texto con stroke invertido (estilo moderno) */
    text-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
   5. SECCIÓN BENEFICIOS (BARRA FLOTANTE MODERNIZADA)
   ========================================================================== */
.benefits-section {
    background-color: var(--bg-light-1);
    padding: 0;
    transform: translateY(-30px);
    position: relative;
    z-index: 10;
    margin-bottom: -20px; /* Acerca más la barra rosa a la sección de categorías */
}

.benefits-pink-bar {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--text-light);
    box-shadow: 0 15px 35px rgba(236, 0, 140, 0.25);
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.benefit-item i {
    font-size: 2.2rem;
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
}

.benefit-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.benefit-divider {
    display: none;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.25);
    align-self: stretch;
}

/* ==========================================================================
   6. SECCIÓN CATEGORÍAS (GRID PREMIUM)
   ========================================================================== */
.categories-section {
    background-color: var(--bg-light-1);
    padding: 10px 0 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.section-header img {
    height: 35px;
    width: auto;
    filter: invert(19%) sepia(91%) saturate(2326%) hue-rotate(307deg) brightness(91%) contrast(105%); /* Colorizado a rosa/azul dinámicamente si es png negro */
}

.section-header .arrow-left {
    transform: none;
}

.section-header img:last-of-type {
    transform: scaleX(-1);
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--brand-blue);
    font-weight: 800;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--bg-light-2);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.category-img-wrapper {
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}

/* Overlay gradient inside category images */
.category-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover .category-img-wrapper::after {
    opacity: 1;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-info {
    padding: 20px;
    text-align: center;
    background: var(--bg-light-2);
    z-index: 2;
}

.category-info h3 {
    font-size: 1.3rem;
    color: var(--brand-blue);
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   7. SECCIÓN NOSOTROS (CATEDRAL Y CAROUSEL)
   ========================================================================== */
.nosotros-section {
    background-image: url('../images/catedral_web.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 50px 0;
    z-index: 2; /* Para quedar encima de entrega-section */
}

.nosotros-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
    z-index: 1;
}

.nosotros-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 50px;
    color: var(--text-light);
}

.nosotros-content h4 {
    color: var(--brand-pink);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.nosotros-content h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.nosotros-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.nosotros-carousel {
    background: var(--bg-light-2);
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transform: rotate(2deg); /* Estilo dinámico */
    transition: transform 0.4s;
}

.nosotros-carousel:hover {
    transform: rotate(0deg);
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 5;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-pink);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: var(--brand-blue);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: 15px; }
.carousel-btn-next { right: 15px; }

/* ==========================================================================
   8. SECCIÓN MAYOREO (TARJETA MODERNA Y CAJA)
   ========================================================================== */
/* MAYOREO: actúa como divisor entre "Nosotros" y "Entregas" - sin fondo de sección propio */
.mayoreo-section {
    background-color: transparent;
    padding: 0;
    position: relative;
    z-index: 5;
    margin-top: -35px; /* Superpone sobre el bloque de arriba */
    margin-bottom: -35px; /* Superpone sobre el bloque de abajo */
}

.mayoreo-card {
    background: var(--gradient-primary);
    border-radius: 24px; /* Esquinas redondeadas como Atención personalizada */
    padding: 35px 30px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(236, 0, 140, 0.2);
    overflow: hidden;
}

/* Patrón de fondo para tarjeta mayoreo */
.mayoreo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%), radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: 0;
    animation: rotatePattern 60s linear infinite;
}

@keyframes rotatePattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mayoreo-text-col, .mayoreo-center-col {
    position: relative;
    z-index: 1;
}

.mayoreo-text-col h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.mayoreo-text-col p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.mayoreo-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mayoreo-box-img {
    width: 160px;
    height: 160px;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: bounceSlow 3s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.mayoreo-box-img img {
    width: 110px;
    height: auto;
}

/* ==========================================================================
   9. SECCIÓN ENTREGAS (HOGAR DULCE Y HORARIOS)
   ========================================================================== */
.entrega-section {
    background-image: url('../images/candiesbox2_web.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    margin-top: -300px; /* Sube la sección para topar con Nosotros */
    padding: 350px 0 50px 0; /* Compensa los 300px de subida + 50px de padding original */
}

.entrega-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    z-index: 1;
}

.entrega-section .container {
    position: relative;
    z-index: 2;
}

.entrega-content h2 {
    font-size: 2.8rem;
    color: var(--brand-blue);
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
}

.entrega-content h3 {
    font-size: 1.4rem;
    color: var(--brand-pink);
    margin-bottom: 40px;
    font-weight: 600;
}

.entrega-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.entrega-card {
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    transition: var(--transition);
}

.entrega-card:hover {
    transform: translateX(10px);
    border-color: var(--brand-pink);
}

.entrega-card i {
    font-size: 2.5rem;
    color: var(--brand-pink);
    background: rgba(236, 0, 140, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0; /* Evita que el círculo se deforme al reducir la ventana */
}

.entrega-card h4 {
    font-size: 1.25rem;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.entrega-disclaimer {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255,255,255,0.7);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

/* ==========================================================================
   10. SECCIÓN CLIENTE CONSENTIDO (MEMBRESÍA)
   ========================================================================== */
.membership-section {
    background: linear-gradient(180deg, var(--bg-light-1) 0%, #E6F0FA 100%);
    padding: 45px 0;
}

.membership-section .container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.membership-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
}

.crown-badge {
    background: var(--gradient-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(7, 80, 164, 0.3);
}

.membership-content h2 {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.membership-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: var(--text-muted);
}

.membership-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.membership-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 70%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    animation: shadowScale 4s ease-in-out infinite;
}

@keyframes shadowScale {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(0.8); opacity: 0.3; }
}

.membership-image img {
    max-width: 450px;
    width: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
    animation: bounceAndTilt 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes bounceAndTilt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg) scale(1.02); }
}

.membership-thanks {
    text-align: center;
    font-size: 1.5rem;
    color: var(--brand-pink);
    font-weight: 800;
    margin-top: 50px;
}

/* ==========================================================================
   11. FACTURACIÓN Y ERROR 404 (ESTILOS ESPECÍFICOS PREMIUM)
   ========================================================================== */

/* ============================================================
   404 PAGE — Diseño referencia: torres de dulces laterales full-height,
   número gigante centrado, 2 botones, Rico Policía integrado
   ============================================================ */
.page-404 {
    background: linear-gradient(180deg, #C8E6FF 0%, #A8D5F8 100%);
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.page-404-overlay {
    display: none;
}

/* Torres de dulces: llena toda la altura de la sección */
.page-404-float {
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    max-width: 22vw;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    z-index: 1;
}

.page-404-float--left  { 
    left: 0; 
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}
.page-404-float--right { 
    right: 0; 
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* Contenedor central — deja margen para las torres */
.page-404 .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 24vw;
    padding-right: 24vw;
}

/* Bloque de texto centrado */
.page-404-content {
    text-align: center;
    max-width: 640px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* "¡Ups! Algo salió mal." — pequeño, arriba */
.page-404-intro {
    font-size: 1.05rem;
    color: var(--brand-blue);
    font-weight: 600;
    opacity: 0.75;
    margin-bottom: 2px;
}

/* Número 404 — protagonista */
.page-404-content h1 {
    font-size: clamp(5rem, 14vw, 11rem);
    color: var(--brand-blue);
    font-weight: 900;
    line-height: 0.9;
    margin: 0 0 0 0;
    text-shadow: 4px 8px 0px rgba(7, 80, 164, 0.12);
}

/* "Página no encontrada." */
.page-404-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: var(--brand-blue);
    font-weight: 900;
    line-height: 1.15;
    margin: 4px 0 18px 0;
}

/* Descripción */
.page-404-lead {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 28px;
    opacity: 0.82;
    max-width: 460px;
    line-height: 1.6;
}

/* 2 botones de acción */
.page-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Rico Policía — centrado arriba del 404 */
.page-404-rico-centered {
    margin-bottom: -10px;
    z-index: 3;
    animation: bounceAndTilt 4s ease-in-out infinite;
}

.page-404-rico-centered img {
    max-width: clamp(90px, 12vw, 150px);
    margin: 0 auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}


/* Facturacion Section */

.facturacion-section {
    background-image: url('../images/fondo-factura_web.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 0 60px 0;
    position: relative;
}

.facturacion-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay más transparente para que el fondo sea visible en todas las pantallas */
    background: linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(220,235,250,0.82) 100%);
    z-index: 1;
}

.facturacion-section .container {
    position: relative;
    z-index: 2;
}

.facturacion-header {
    text-align: center;
    margin-bottom: 30px;
}

.facturacion-header h1 {
    font-size: 2.8rem;
    color: var(--brand-pink);
    font-weight: 800;
    margin-bottom: 15px;
}

.facturacion-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.facturacion-card {
    background: var(--bg-light-2);
    border-radius: 30px;
    padding: 40px 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 1000px;
    margin: 0 auto;
}

/* Estilos de formulario modernizados */
.form-row-2col, .form-row-3col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #E4EBF9;
    background-color: #F8F9FB;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--input-shadow-inner);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--brand-pink);
    background-color: var(--bg-light-2);
    box-shadow: 0 0 0 4px rgba(236, 0, 140, 0.1);
}

.form-group input::placeholder {
    color: #A0B0C5;
}

/* Área de carga de archivos moderna */
.form-group-file {
    position: relative;
    width: 100%;
    height: 140px;
    border: 2px dashed #CBD5E1;
    border-radius: 16px;
    background-color: #F8F9FB;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.form-group-file:hover, .form-group-file.dragover {
    border-color: var(--brand-pink);
    background-color: rgba(236, 0, 140, 0.02);
}

.form-group-file input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-dummy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    z-index: 1;
}

.file-dummy i {
    font-size: 2.5rem;
    color: #A0B0C5;
    transition: var(--transition);
}

.form-group-file:hover .file-dummy i {
    color: var(--brand-pink);
    transform: scale(1.1);
}

.file-dummy .text-hint {
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 1.05rem;
}

.form-error-msg {
    color: #E63946;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none; /* Managed by JS */
    font-weight: 500;
}

.form-submit-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.form-submit-wrapper .btn {
    width: 100%;
    max-width: 300px;
    padding: 16px;
    font-size: 1.1rem;
}

/* Alertas de formulario */
.form-alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background-color: rgba(37, 211, 102, 0.1);
    border: 1px solid var(--brand-whatsapp);
    color: #107C3A;
}

.alert-error {
    background-color: rgba(230, 57, 70, 0.1);
    border: 1px solid #E63946;
    color: #D62828;
}

/* ==========================================================================
   12. PIE DE PÁGINA (MAPAS Y SUCURSALES PREMIUM)
   ========================================================================== */
.footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 50px 0 20px 0;
    position: relative;
    overflow: hidden;
}

/* Ola decorativa superior del footer ELIMINADA - causaba ruido visual */

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    position: relative;
    z-index: 3;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    /* Sin filtro - muestra logo con sus colores originales */
}

.footer-brand p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 8px; /* Reducido para acortar espacio entre RRSS y el bloque siguiente */
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--brand-pink);
    transform: translateY(-5px);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.location-item {
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.location-item h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.location-detail-line {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.location-detail-line i {
    color: #FF85C8; /* Rosa más claro */
    font-size: 1.2rem;
    margin-top: 3px;
}

.location-detail-line p {
    font-size: 1rem;
    opacity: 0.9;
}

.location-detail-line a:hover {
    color: var(--brand-pink);
}

.location-map {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%) contrast(1.1);
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    width: 100%;
    text-align: center;
}

/* Botón Flotante WhatsApp Premium */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--brand-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 99999; /* Mayor z-index para asegurar visibilidad en móvil */
    transition: var(--transition);
}

.floating-whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--brand-whatsapp);
    opacity: 0;
    animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(-10deg);
    background-color: #1ebe57;
}

/* ==========================================================================
   13. MEDIA QUERIES (TABLETS Y DESKTOPS)
   ========================================================================== */
@media (min-width: 768px) {
    /* Top Bar */
    .header-top .container {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0;
        min-height: 600px;
    }
    .hero-content h1 {
        font-size: 4rem;
    }
    .hero-content p {
        font-size: 1.35rem;
    }
    
    /* Benefits */
    .benefits-section {
        transform: translateY(-60px);
    }
    .benefits-pink-bar {
        flex-direction: row;
        justify-content: space-evenly;
        padding: 25px;
    }
    .benefit-item {
        flex: 1;
        flex-direction: row;
        text-align: left;
        justify-content: center;
        gap: 15px;
    }
    .benefit-item i {
        margin-bottom: 0;
    }
    .benefit-divider {
        display: block;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Nosotros */
    .nosotros-section .container {
        flex-direction: row;
        align-items: center;
    }
    .nosotros-content {
        flex: 1;
    }
    .nosotros-carousel {
        flex: 1;
        max-width: 500px;
    }
    
    /* Mayoreo */
    .mayoreo-section .container {
        max-width: 1350px;
    }
    .mayoreo-card {
        flex-direction: row;
        text-align: center;
        justify-content: space-between;
        align-items: center;
        height: 170px;
        padding: 15px 70px;
    }
    .mayoreo-text-col {
        flex: 1;
    }
    .mayoreo-center-col {
        gap: 10px;
    }
    .mayoreo-box-img {
        width: 100px;
        height: 100px;
        border-width: 4px;
        transform: translateY(10px); /* Bajar la caja */
    }
    .mayoreo-center-col .btn-whatsapp {
        padding: 8px 16px; /* Reducir padding interno del botón */
        font-size: 0.9rem;
    }
    .mayoreo-text-col h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    .mayoreo-text-col p {
        font-size: 0.95rem;
    }
    
    /* Entregas */
    .entrega-grid {
        flex-direction: row;
    }
    
    /* Membership */
    .membership-section .container {
        flex-direction: row;
        justify-content: space-between;
    }
    .membership-content {
        text-align: left;
        align-items: flex-start;
        flex: 1;
    }
    .membership-image {
        flex: 1;
        justify-content: flex-end;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .locations-grid {
        grid-template-columns: 1fr;
    }
    .location-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
    }
    .location-item h3 {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }
    .location-details {
        margin-bottom: 0;
    }
    
    /* 404 — en tablet las torres laterales son más angostas */
    .page-404 .container {
        padding-left: 22vw;
        padding-right: 22vw;
        justify-content: center;
        align-items: center;
    }
    .page-404-float {
        max-width: 20vw;
    }
    .page-404-rico {
        right: calc(20vw - 40px);
    }
    .page-404-content {
        max-width: 600px;
    }
    .page-404-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Facturacion */
    .facturacion-card {
        padding: 60px;
    }
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
    }
    .form-row-3col {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    /* Navbar */
    .hamburger {
        display: none; /* Ocultar hamburguesa */
    }
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Reparar centrado */
    }
    .logo {
        position: static;
        transform: none;
        margin: 0;
        order: 1; /* Logo a la izquierda */
    }
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 20px;
        order: 2; /* Menú al centro */
    }
    .nav-cta {
        order: 3; /* Botón a la derecha */
    }
    .nav-link {
        font-size: 1.05rem;
        padding: 5px 0;
    }
    
    /* Hero - escritorio: texto izquierda, foto visible en el lado derecho */
    .hero {
        padding: 80px 0;
        min-height: 560px;
        background-position: center right 5%;
    }
    .hero-overlay {
        /* En desktop, blanco opaco hasta 55%, luego se desvanece hacia la foto */
        background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0.6) 60%, rgba(255,255,255,0) 100%);
    }
    .hero-content {
        max-width: 52%;
    }
    .hero-content h1 {
        font-size: 4rem;
    }
    
    /* Categories */
    .categories-section {
        padding: 60px 0 100px 0;
    }
    
    /* Footer en desktop: columna brand + dos cajas sucursales con mapas visibles */
    .footer-grid {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
    .locations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    /* location-item: detalles a la izquierda, mapa (triple espacio) a la derecha */
    .location-item {
        display: grid;
        grid-template-columns: 1fr 248px;  /* mapa ocupa ancho fijo de 248px */
        grid-template-rows: auto 1fr;
        gap: 8px 16px;
        align-items: start;
    }
    .location-item h3 {
        grid-column: 1 / -1;
        margin-bottom: 0;
        font-size: 1rem;
    }
    .location-details {
        margin-bottom: 0;
        gap: 5px;
    }
    .location-detail-line p {
        font-size: 0.78rem;
    }
    .location-detail-line i {
        font-size: 0.85rem;
        margin-top: 2px;
    }
    .location-map {
        height: 100%;
        min-height: 190px;
        margin-top: -30px;
    }
    /* Header top: en desktop todos los separadores */
    .header-top .container {
        gap: 25px;
    }
    .top-info-item {
        font-size: 0.9rem;
        white-space: normal;
    }
}

/* Estilos adicionales para footer-brand en tablet (una sola línea) */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-brand {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }
    .footer-logo {
        flex-shrink: 0;
    }
    .footer-brand > p {
        flex: 1;
        min-width: 200px;
        margin: 0;
        font-size: 0.95rem;
    }
    .footer-socials {
        margin-top: 0;
    }
    
    /* Mayoreo Tablet */
    .mayoreo-card {
        padding: 50px 40px; /* Agregado padding interno */
    }
    .mayoreo-text-col h3 {
        font-size: 1.2rem; /* Tamaño de texto más reducido */
    }
    .mayoreo-text-col p {
        font-size: 0.85rem; /* Tamaño de texto más reducido */
    }
    
    /* Entregas Tablet */
    .entrega-grid {
        flex-direction: column;
    }
}

/* ============================================================
   CARRUSEL DE SUCURSALES EN MÓVIL (footer)
   ============================================================ */
.footer-location-carousel {
    position: relative;
    overflow: hidden;
}

.footer-location-slide {
    display: none;
    animation: slideInFoot 0.5s ease;
}

.footer-location-slide.active {
    display: block;
}

@keyframes slideInFoot {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.footer-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 5px; /* Reducido espacio respecto al elemento anterior */
}

.footer-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.footer-carousel-dot.active {
    background: var(--brand-pink);
}


@media (max-width: 767px) {

    /* ============================================================
       HEADER MÓVIL — una sola línea con el texto muy compacto
       ============================================================ */
    .header-top {
        padding: 8px 0;
    }
    .header-top .container {
        gap: 0;
        padding: 0 6px;
    }
    .top-info-item {
        font-size: 0.68rem;
        gap: 3px;
        padding-left: 6px;
    }
    .top-info-item:first-child {
        padding-left: 0;
        border-left: none;
    }
    .top-info-item i {
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    /* Mostrar texto corto en móvil */
    .top-text-long  { display: none;   }
    .top-text-short { display: inline; }
    /* Ajuste de padding derecho en móvil (más estrecho que desktop) */
    .top-info-item {
        padding-right: 6px;
    }
    .top-info-item:last-child {
        padding-right: 0;
    }

    /* ============================================================
       NAVBAR MÓVIL — botón de WhatsApp compacto, logo más pequeño
       ============================================================ */
    .navbar {
        padding: 8px 0;
    }
    .logo img {
        height: 48px;
    }
    .nav-cta .btn {
        padding: 6px 10px;
        font-size: 0.72rem;
        gap: 4px;
        border-radius: 30px;
        line-height: 1.2;
        max-width: 110px;
        text-align: center;
    }
    .nav-cta .btn i {
        font-size: 1rem;
        flex-shrink: 0;
    }
    .nav-cta .cta-text {
        font-size: 0.72rem;
        line-height: 1.2;
        display: inline;
    }

    /* ============================================================
       HERO MÓVIL — compacto como en la referencia
       ============================================================ */
    .hero {
        background-image: url('../images/escenario-vertical_web.webp');
        background-attachment: scroll;
        background-position: center top;
        min-height: 0;
        padding: 28px 0 16px;
    }
    .hero-overlay {
        background: radial-gradient(circle, rgba(255,255,255,0.92) 15%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0.3) 100%);
    }
    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    .hero-ribbon {
        height: 40px;
        margin-bottom: -6px;
    }

    /* ============================================================
       BARRA DE BENEFICIOS — compacta como referencia
       Referencia: ícono + texto en columna, 3 items en fila horizontal
       ============================================================ */
    .benefits-section {
        transform: translateY(-15px);
        margin-bottom: 0;      /* Más espacio entre beneficios y categorías */
        margin-top: 18px;      /* Más respiro entre el hero y la barra rosa */
    }
    .benefits-pink-bar {
        padding: 10px 10px;
        border-radius: 14px;
        gap: 0;            /* Sin gap — separadores son los dividers */
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    .benefit-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0 5px;
    }
    .benefit-item i {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .benefit-item h3 {
        font-size: 0.72rem;
        line-height: 1.2;
    }
    .benefit-divider {
        display: block;
        width: 1px;
        height: 40px;
        background: rgba(255,255,255,0.3);
        flex-shrink: 0;
    }

    /* ============================================================
       CATEGORÍAS — 2 columnas, section-header en 1 línea compacta
       ============================================================ */
    .categories-section {
        padding: 5px 0 30px 0;
    }
    .section-header {
        margin-bottom: 12px;
        gap: 8px;        /* Flechas más cerca del título */
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .section-header img {
        height: 22px;    /* Flechas más pequeñas */
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;   /* 2 columnas */
        gap: 12px;
    }
    .category-card {
        border-radius: 16px;
    }
    .category-img-wrapper {
        height: 110px;
    }
    .category-info {
        padding: 8px;
    }
    .category-info h3 {
        font-size: 0.95rem;
    }

    /* ============================================================
       NOSOTROS — imagen encima, texto debajo
       ============================================================ */
    .nosotros-section {
        padding: 30px 0 10vh 0; /* Agregado 10vh de espacio abajo */
    }
    .nosotros-section .container {
        flex-direction: column;
        gap: 20px;
    }
    .nosotros-content {
        order: 2;
        text-align: center;
        max-width: 100%;
    }
    .nosotros-content h4 {
        font-size: 0.95rem;
    }
    .nosotros-content h2 {
        font-size: 1.5rem;
    }
    .nosotros-content p {
        font-size: 0.9rem;
    }
    .nosotros-carousel {
        order: 1;
        width: 100%;
    }
    .carousel-container {
        height: 220px;
        border-radius: 16px;
    }

    /* ============================================================
       MAYOREO — como referencia: 2 columnas, texto izq, imagen+cta der
       ============================================================ */
    .mayoreo-section {
        padding: 0;   /* Es banda divisora */
    }
    /* Todo en una sola línea: [texto izq] [círculo+btn] [texto der] */
    .mayoreo-card {
        padding: 14px 12px;
        gap: 10px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
    .mayoreo-text-col {
        text-align: center;
        flex: 1;
        min-width: 0;
    }
    .mayoreo-text-col h3 {
        font-size: 0.82rem;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    .mayoreo-text-col p {
        font-size: 0.72rem;
        line-height: 1.25;
        opacity: 0.9;
    }
    .mayoreo-center-col {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .mayoreo-box-img {
        width: 60px;
        height: 60px;
        border-width: 4px;
        animation: none;   /* Sin animación en móvil para no ocupar espacio visual */
    }
    .mayoreo-box-img img {
        width: 42px;
    }
    /* Botón de WhatsApp compacto */
    .mayoreo-card .btn-whatsapp {
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 4px;
        border-radius: 20px;
    }
    .mayoreo-card .btn-whatsapp i {
        font-size: 0.9rem;
    }

    /* ============================================================
       ENTREGAS — compactar
       ============================================================ */
    .entrega-section {
        margin-top: 0; /* Revierte la superposición para móvil */
        padding: 10vh 0 30px 0; /* Restaura el padding original con los 10vh */
    }
    .entrega-content h2 {
        font-size: 1.8rem;
    }
    .entrega-content h3 {
        font-size: 1rem;
    }
    .entrega-grid {
        gap: 12px;
    }
    .entrega-item {
        padding: 14px;
    }
    .entrega-item p {
        font-size: 0.88rem;
    }

    /* ============================================================
       MEMBRESÍA — imagen arriba (credencial), botón debajo
       ============================================================ */
    .membership-section {
        padding: 30px 0;
    }
    .membership-section .container {
        flex-direction: column;
        gap: 10px; /* Reduced from 20px */
    }
    .membership-image {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    .membership-image img {
        max-width: 85%;
        border-radius: 20px;
    }
    .membership-content {
        order: 2;
        text-align: center;
        align-items: center;
        padding: 0 10px;
    }
    .membership-content .crown-badge {
        margin-bottom: 12px; /* Reduced from 25px */
    }
    .membership-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px; /* Reduced from 25px */
    }
    .membership-content h3 {
        font-size: 1.1rem;
    }
    .membership-content p {
        font-size: 0.9rem;
        margin-bottom: 17px; /* Reduced from 35px */
    }
    .membership-content .btn {
        margin-top: 8px; /* Reduced from 15px */
        align-self: center;
        width: 100%;
        justify-content: center;
    }

    /* ============================================================
       FOOTER MÓVIL — carrusel
       ============================================================ */
    .locations-grid {
        display: none;
    }
    .footer {
        padding: 30px 0 15px 0;
    }
    .footer-grid {
        gap: 25px;
    }
    .footer-bottom {
        margin-top: 15px;
        padding-top: 12px;
    }
    .footer-location-carousel {
        display: block;
    }
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .footer-logo {
        align-self: center;
    }
    .footer-socials {
        justify-content: center;
        margin-top: 5px;
    }
    /* Botón flotante WhatsApp visible en móvil */
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        z-index: 9999;
        display: flex;
    }

    /* 404 en móvil: torres más angostas */
    .page-404 .container {
        padding-left: 24vw;
        padding-right: 24vw;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .page-404-float {
        max-width: 22vw;
    }
    .page-404-rico {
        right: calc(22vw - 30px);
        bottom: 5px;
    }
    .page-404-rico img {
        max-width: 80px;
    }
    .page-404-content h1 {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }
    .page-404-title {
        font-size: 1.3rem;
    }
    .page-404-lead {
        font-size: 0.9rem;
    }
    .page-404-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .page-404-actions .btn {
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    /* ============================================================
       FORMULARIO FACTURACIÓN
       ============================================================ */
    .form-group {
        margin-bottom: 12px;
    }
    .form-group label {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    .form-row-2col, .form-row-3col {
        gap: 12px;
        margin-bottom: 12px;
    }
    .form-submit-wrapper {
        margin-top: 20px;
    }
    .facturacion-section {
        padding: 20px 0 40px 0;
        background-attachment: scroll;
    }
    .facturacion-header {
        margin-bottom: 18px;
    }
    .facturacion-header h1 {
        font-size: 2rem;
    }
    .facturacion-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
}

/* En tablet y desktop, ocultar el carrusel de footer */
@media (min-width: 768px) {
    .footer-location-carousel {
        display: none;
    }
    .locations-grid {
        display: grid;
    }
}
