@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary: #D7263D;
    --primary-dark: #A61C2C;
    --secondary: #DAB3BD;
    --accent: #E8C8CF;
    --dark: #111111;
    --gray: #4a4a4a;
    --light-gray: #f8eef1;
    --black: #000000;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-brand: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: transparent;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.1); /* Transparente por defecto */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    position: fixed; /* Fixed para que esté sobre el carrusel */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header sólido cuando sale del carrusel */
.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Texto en blanco cuando está transparente */
.header .logo-text h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}

.header .tagline {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.header .nav a {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-weight: 600;
    transition: all 0.3s ease;
}

.header .nav a:hover {
    color: var(--primary);
}

.header .cart-btn {
    background: rgba(215, 38, 61, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Texto oscuro cuando el header es sólido */
.header.scrolled .logo-text h1 {
    color: var(--black);
    text-shadow: none;
}

.header.scrolled .tagline {
    color: var(--gray);
    text-shadow: none;
}

.header.scrolled .nav a {
    color: var(--black);
    text-shadow: none;
}

.header.scrolled .nav a:hover {
    color: var(--primary);
}

.header.scrolled .cart-btn {
    background: var(--primary);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
    background: transparent !important;
}

/* Asegurar que el container dentro del header sea transparente */
.header .container {
    background: transparent !important;
}

.logo h1 {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.header.scrolled .logo-image {
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

.logo-link:hover .logo-image {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 300;
    display: none; /* Ocultar eslogan */
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

/* Botón hamburguesa (oculto en desktop) */
.menu-toggle {
    display: none;
}

.cart-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--dark);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 75vh;
    overflow: hidden;
    margin-bottom: 0; /* Sin espacio abajo */
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 600px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 3;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 5rem 0;
    background: var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
}

/* ===== PROMOTIONS ===== */
.promotions {
    padding: 5rem 0;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.promo-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px;
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.promo-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.promo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.promo-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.promo-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 2rem 0; /* Reducido de 5rem a 2rem */
    background: var(--light-gray);
    padding-top: 5rem; /* Espacio para el menú sticky */
}

/* Ocultar título de productos para ahorrar espacio */
#productsTitle {
    display: none;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--dark);
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0.5rem 0;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin: 1rem 0;
}

.btn-personalize {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-personalize:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    font-size: 1.5rem;
    color: var(--dark);
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

/* Cart Modal */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-options {
    font-size: 0.85rem;
    color: var(--gray);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.btn-remove {
    background: #ff4444;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.cart-total {
    padding: 1.5rem 0;
    text-align: right;
    font-size: 1.3rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

/* Product Detail Modal */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.thumbnail-images::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}

.product-detail-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.required {
    color: var(--primary);
    font-size: 1.2rem;
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.option-btn:hover, .option-btn.selected {
    border-color: var(--primary);
    background: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Checkout Modal */
.checkout-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.checkout-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary);
    font-size: 1.3rem;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-location {
    color: var(--primary) !important;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

.footer-brand-name {
    font-family: var(--font-brand);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.footer-badge {
    display: inline-block;
    background: rgba(215, 38, 61, 0.18);
    border: 1px solid rgba(215, 38, 61, 0.45);
    color: #ffd7de;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-link img {
    width: 18px;
    height: 18px;
}

.footer-note {
    font-size: 0.85rem;
    color: #bcbcbc;
    margin-top: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap; /* Cambiar a nowrap para mantener todo en una fila */
        padding: 0.8rem 0;
        position: relative;
        justify-content: space-between;
    }
    
    /* Ocultar texto del logo en móviles */
    .logo-text {
        display: none;
    }
    
    /* Menú hamburguesa */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--white);
        padding: 0.5rem;
        order: 1; /* Primero */
        transition: var(--transition);
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
    }
    
    .header.scrolled .menu-toggle {
        color: var(--dark);
    }
    
    .logo-link {
        order: 2; /* Segundo (centro) */
    }
    
    .cart-btn {
        order: 3; /* Tercero (derecha) */
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 0;
        z-index: 1001;
        order: 4;
        border-radius: 0 0 15px 15px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav a {
        padding: 1rem 1.5rem;
        color: var(--dark) !important;
        text-shadow: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: var(--primary);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav a:hover {
        background: var(--light-gray);
        padding-left: 2rem;
    }
    
    .nav a:hover::before {
        transform: translateX(0);
    }
    
    .nav a:active {
        background: rgba(248, 180, 217, 0.2);
    }
    
    .category-submenu {
        position: sticky;
        top: 70px; /* Reducido para eliminar el espacio - solo altura del header compacto */
        z-index: 998; /* Menor que header para que no se solape */
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .hero-content {
        top: 60%; /* Mover el texto más abajo en tablets para que no quede detrás del header */
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        max-height: 180px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }
    
    .header-content {
        padding: 0.6rem 0; /* Header más compacto en móviles */
    }
    
    .category-submenu {
        position: sticky;
        top: 65px; /* Reducido para móviles pequeños */
        z-index: 998; /* Menor que header para que no se solape */
    }
    
    .hero-content {
        top: 65%; /* Mover el texto más abajo en móviles para que no quede detrás del header */
    }
    
    .hero-content h2 {
        font-size: 1.3rem; /* Reducido de 1.5rem */
    }
    
    .hero-content p {
        font-size: 0.9rem; /* Reducido para móviles */
    }
    
    .slider-btn {
        width: 35px; /* Reducido de 40px */
        height: 35px;
        font-size: 1.2rem; /* Reducido de 1.5rem */
    }
    
    .slider-btn.prev {
        left: 5px; /* Más cerca del borde */
    }
    
    .slider-btn.next {
        right: 5px; /* Más cerca del borde */
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .cart-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .thumbnail-images {
        max-height: 150px;
        gap: 0.3rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .category-submenu-btn {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* ===== MEJORAS PROMOCIONES ===== */
.promo-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.promo-card:hover {
    transform: scale(1.05);
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.promo-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.promo-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.btn-promo {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-promo:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .promo-card {
        height: 250px;
    }
    
    .promo-content {
        padding: 1.5rem;
    }
    
    .promo-content h3 {
        font-size: 1.4rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* ===== PÁGINA PERSONALIZADA ===== */
.hero-personalizada {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.hero-personalizada-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-personalizada-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-personalizada-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-personalizada-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Sección de pedido personalizado */
.custom-order-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.custom-order-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.custom-order-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.custom-order-info p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.occasions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.occasion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.occasion-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.occasion-icon {
    font-size: 1.8rem;
}

.info-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.info-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 8px 0;
    color: var(--gray);
}

/* Formulario personalizado */
.custom-order-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.custom-order-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(248, 180, 217, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.btn-custom-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-custom-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-icon {
    font-size: 1.5rem;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.5;
}

/* Categoría especial en el grid */
.category-card.special {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: 3px solid var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.category-card.special::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    opacity: 0.3;
}

.category-card.special:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(248, 180, 217, 0.4);
}

/* Responsive */
@media (max-width: 968px) {
    .custom-order-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-personalizada-title {
        font-size: 2.2rem;
    }
    
    .occasions-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .custom-order-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-personalizada-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-personalizada-title {
        font-size: 1.8rem;
    }
}

/* ===== SUBMENÚ DE CATEGORÍAS (FULL WIDTH) ===== */
.category-submenu {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 92px; /* Altura exacta del header fixed (60px logo + 32px padding) */
    z-index: 999; /* Justo debajo del header para que ambos sean visibles */
    border-bottom: 1px solid #e8e8e8;
    width: 100%;
    margin-top: 0;
}

.category-submenu-wrapper {
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light-gray);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: none;
}

.category-submenu-wrapper::-webkit-scrollbar {
    height: 4px;
}

.category-submenu-wrapper::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.category-submenu-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.category-submenu-btn {
    padding: 18px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    position: relative;
    flex-shrink: 0;
}

.category-submenu-btn:hover {
    color: var(--dark);
    background: var(--light-gray);
}

.category-submenu-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.category-submenu-special {
    color: var(--primary) !important;
    font-weight: 600;
}

.category-submenu-special:hover {
    background: rgba(248, 180, 217, 0.1) !important;
}

/* ===== PÁGINA DE PROMOCIONES ===== */
.hero-promociones {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.hero-promociones-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-promociones-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-promociones-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.promotions-page {
    padding: 60px 0;
    background: var(--light-gray);
}

.promo-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    text-align: center;
    color: var(--white);
}

.promo-cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promo-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.promo-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.promo-cta .btn-primary:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===== PROMOCIONES ===== */
.promotions {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.promotions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.promotions-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: -1rem;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.promo-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.promo-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
}

.promo-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.promo-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(248, 180, 217, 0.4);
}

.btn-promo {
    align-self: flex-start;
    padding: 12px 28px;
    background: var(--white);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-promo:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Animación de productos */
.products-grid {
    min-height: 400px;
}

.product-card {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .category-submenu {
        top: 70px; /* Reducido para tablets */
        z-index: 998;
    }
    
    .category-submenu-wrapper {
        justify-content: flex-start;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .category-submenu-wrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .category-submenu-btn {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
    
    .category-submenu-btn:not(.active)::after {
        background: transparent !important;
    }
    
    .category-submenu-btn.active::after {
        background: var(--primary) !important;
    }
    
    .hero-promociones-title {
        font-size: 2.2rem;
    }
    
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promo-card {
        height: 300px;
    }
    
    .promo-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .category-submenu {
        top: 65px; /* Ajustado para eliminar el espacio debajo del header en celulares */
    }
    .category-submenu-btn {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .category-submenu-btn:not(.active)::after {
        background: transparent !important;
    }
    
    .category-submenu-btn.active::after {
        background: var(--primary) !important;
    }
    
    .hero-promociones-title {
        font-size: 1.8rem;
    }
    
    .promo-card {
        height: 280px;
    }
    
    .promo-content {
        padding: 20px;
    }
    
    .promo-content h3 {
        font-size: 1.4rem;
    }
    
    .promo-cta-content h2 {
        font-size: 1.8rem;
    }
}

/* ===== BOTÓN WHATSAPP CON IMAGEN ===== */
.whatsapp-icon-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .whatsapp-icon-img {
        width: 30px;
        height: 30px;
    }
}

/* ===== BADGE DE MÚLTIPLES FOTOS ===== */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(248, 180, 217, 0.95);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 10;
}

.product-card {
    position: relative;
}
