/* ========================================
   SHOWTIME - CSS Principal
   Hoja de estilos separada para mejor organización
   ======================================== */

/* --- FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:wght@700;900&display=swap');

/* --- VARIABLES CSS --- */
:root {
    --brand-yellow: #FFD700;
    --brand-dark: #1a1a1a;
    --brand-pink: #ec4899;
    --brand-purple: #a855f7;
    --bounce-timing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ESTILOS BASE --- */
body {
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    color: var(--brand-dark);
    scroll-behavior: smooth;
}

.serif-title {
    font-family: 'Playfair Display', serif;
}

/* --- RESPONSIVE IMAGES (SELECTIVE) --- */
/* Only apply responsive behavior to specific containers, not globally */

/* Cards and grid items should be responsive */
.category-card img,
.service-card img,
.gallery-item img,
.reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal images in services page */
#serviceModal .rounded-xl img {
    width: 100%;
    object-fit: cover;
}

/* Modal Premium Styling */
#serviceModal > div {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid rgba(236, 72, 153, 0.1);
}

#serviceModal .max-h-\[90vh\] {
    scrollbar-width: thin;
    scrollbar-color: rgba(236, 72, 153, 0.3) rgba(0, 0, 0, 0.05);
}

#serviceModal .max-h-\[90vh\]::-webkit-scrollbar {
    width: 8px;
}

#serviceModal .max-h-\[90vh\]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#serviceModal .max-h-\[90vh\]::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 10px;
}

#serviceModal .max-h-\[90vh\]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777, #9333ea);
}

/* Close button styling - only for the X button at top */
#serviceModal button.sticky[onclick="closeServiceModal()"] {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#serviceModal button.sticky[onclick="closeServiceModal()"]:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: white;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

/* Character cards in sections */
.group.relative.overflow-hidden img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer logo should maintain aspect ratio - ONLY footer, NOT nav */
footer img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Nav logo is controlled by Tailwind classes - don't interfere */

/* --- HERO SECTION --- */
.hero-clean {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #fff8e1 100%);
    min-height: 70vh;
}

@media (max-width: 768px) {
    .hero-clean {
        min-height: 60vh;
    }
}

/* --- CARDS DE PERSONAJES DISNEY --- */
.category-card {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    height: clamp(320px, 45vw, 500px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .category-card {
        height: clamp(260px, 55vw, 380px);
    }
}

@media (max-width: 480px) {
    .category-card {
        height: clamp(240px, 65vw, 320px);
    }
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(236, 72, 153, 0.15);
}

@media (max-width: 768px) {
    .category-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
}

.category-card img {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.category-card:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* --- SERVICE CARDS --- */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card .p-6 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card .p-6 button {
    margin-top: auto !important;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(236, 72, 153, 0.12);
}

/* --- NAVEGACIÓN PREMIUM --- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover::before {
    opacity: 1;
}

/* --- BOTONES PREMIUM --- */
.btn-premium {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Shimmer effect animado */
.btn-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.5), 0 5px 15px rgba(168, 85, 247, 0.4);
}

.btn-premium:hover::after {
    opacity: 1;
}

.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

/* --- MODAL OPTION CARDS PREMIUM --- */
.modal-option-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.modal-option-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modal-option-card:hover::before {
    opacity: 1;
}

.modal-option-card .p-4 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modal-option-card .p-4 button {
    margin-top: auto !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-option-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(236, 72, 153, 0.1);
}

.modal-option-card:hover .p-4 button {
    transform: scale(1.05);
}

.modal-option-card img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-option-card:hover img {
    transform: scale(1.08) rotate(1deg);
}

/* --- MODAL OPTION CARDS PREMIUM --- */
.modal-option-card-premium {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(236, 72, 153, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.modal-option-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    transition: left 0.5s ease;
}

.modal-option-card-premium:hover::before {
    left: 0;
}

.modal-option-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.15),
                0 8px 20px rgba(168, 85, 247, 0.1);
}

.modal-option-card-premium.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.05));
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.15);
}

.modal-option-card-premium.featured::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.modal-option-card-premium.featured:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.25),
                0 8px 20px rgba(251, 191, 36, 0.15);
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.625rem;
    font-weight: 900;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.btn-add-premium {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
    font-weight: 800;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4),
                0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-add-premium:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Responsive para modal cards premium */
@media (max-width: 640px) {
    .modal-option-card-premium {
        margin-bottom: 0.5rem;
    }
    
    .btn-add-premium {
        padding: 0.65rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* --- GALERÍA PREMIUM EN GRID --- */
.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

/* Si solo hay una imagen, mostrarla más grande */
.gallery-item-single {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
    max-height: 400px;
}

/* Para imágenes regulares en el grid */
.gallery-item-premium {
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item-premium:hover {
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2),
                0 8px 16px rgba(168, 85, 247, 0.15);
}

.gallery-overlay {
    position: relative;
}

/* Responsive para galería */
@media (max-width: 768px) {
    .gallery-grid-premium {
        gap: 0.5rem;
    }
    
    .gallery-item-premium {
        aspect-ratio: 1 / 1;
    }
    
    .gallery-item-single {
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }
}

@media (max-width: 640px) {
    .gallery-grid-premium {
        gap: 0.375rem;
    }
    
    .gallery-item-single {
        max-height: 220px;
    }
}

/* --- ANIMACIONES REVEAL MEJORADAS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px) scale(0.98);
    }
}

/* --- MICRO-INTERACCIONES PREMIUM --- */
.micro-bounce {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.micro-bounce:hover {
    transform: scale(1.05);
}

.micro-bounce:active {
    transform: scale(0.95);
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Magnetic hover effect */
@media (hover: hover) and (pointer: fine) {
    .magnetic {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .magnetic:hover {
        transform: scale(1.08);
    }
}

/* --- ANIMACIONES DEL CARRITO --- */
@keyframes cartSlideDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        max-height: 2000px;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cartSlideUp {
    from {
        max-height: 2000px;
        opacity: 1;
        transform: translateY(0);
    }
    to {
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
    }
}

.cart-form-enter {
    animation: cartSlideDown 0.5s ease-out forwards;
}

.cart-form-exit {
    animation: cartSlideUp 0.5s ease-out forwards;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    gap: 0;
}

.animate-marquee span {
    padding-right: 3rem;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Soft Animation */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* --- RESPONSIVE CART MODAL --- */
@media (max-width: 1024px) {
    #cartModal .max-w-3xl {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    #cartModal .max-w-3xl {
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    #cartModal .rounded-2xl {
        border-radius: 0 !important;
    }
}

@media (max-width: 640px) {
    #cartModalBody {
        font-size: 14px;
    }
    
    #cartModal input,
    #cartModal select,
    #cartModal textarea {
        font-size: 14px;
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777, #9333ea);
}

/* --- RESPONSIVE SERVICE MODALS --- */
@media (max-width: 1024px) {
    #serviceModal .max-w-4xl {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    #serviceModal .max-w-4xl {
        max-width: 100vw;
        max-height: 100vh;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    #serviceModal .rounded-2xl {
        border-radius: 0 !important;
    }
    
    #serviceModal .p-6,
    #serviceModal .md\:p-12 {
        padding: 1rem !important;
    }
    
    #serviceModal .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    #serviceModal .md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    #serviceModal .text-3xl,
    #serviceModal .md\:text-4xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    #serviceModal .text-lg {
        font-size: 1rem !important;
    }
    
    #serviceModal .text-base {
        font-size: 0.875rem !important;
    }
    
    #serviceModal .gap-6 {
        gap: 0.75rem !important;
    }
    
    #serviceModal .gap-8 {
        gap: 1rem !important;
    }
    
    #serviceModal .p-4 {
        padding: 0.75rem !important;
    }
    
    #serviceModal .p-6 {
        padding: 1rem !important;
    }
    
    #serviceModal button {
        font-size: 0.75rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    /* Princesa cards más pequeñas en móvil */
    #serviceModal .princess-card,
    #serviceModal .costume-card {
        border-width: 2px !important;
    }
    
    #serviceModal .checkmark-overlay {
        width: 2rem !important;
        height: 2rem !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
    }
    
    #serviceModal .checkmark-overlay i {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    #serviceModal .grid {
        gap: 0.5rem !important;
    }
    
    #serviceModal .mb-8 {
        margin-bottom: 1rem !important;
    }
    
    #serviceModal .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Opciones en columna única para pantallas muy pequeñas */
    #serviceModal .md\:grid-cols-2.max-w-3xl {
        grid-template-columns: 1fr !important;
    }
}

/* Fade In Scale */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-scale {
    animation: fadeInScale 0.5s ease-out forwards;
}

/* --- MENÚ MÓVIL --- */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* --- UTILIDADES RESPONSIVAS --- */
@media (max-width: 640px) {
    /* Ajustar texto para pantallas pequeñas */
    .tracking-widest {
        letter-spacing: 0.1em;
    }
    
    .tracking-\[0\.3em\] {
        letter-spacing: 0.2em;
    }
}

/* --- MEJORAS DE ACCESIBILIDAD TÁCTIL --- */
@media (hover: none) and (pointer: coarse) {
    /* Áreas táctiles más grandes en dispositivos móviles */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* --- OPTIMIZACIÓN DE IMÁGENES MÓVIL --- */
@media (max-width: 768px) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* --- PROMO CARDS PREMIUM --- */
.promo-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.promo-card button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(236, 72, 153, 0.15) 0%,
        rgba(168, 85, 247, 0.15) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.promo-card:hover::before {
    opacity: 1;
    animation: rotate-gradient 3s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.promo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18), 0 10px 25px rgba(236, 72, 153, 0.2);
}

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

/* --- HERO BACKGROUND ANIMATION --- */
.hero-animated {
    background: linear-gradient(-45deg, #fff8e1, #fce4ec, #f3e5f5, #e8f5e9);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* --- SMOOTH SCROLL --- */
html {
    scroll-behavior: smooth;
}

/* --- BUTTON HOVER EFFECTS --- */
button, .btn, a.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* --- GLASS MORPHISM EFFECT PREMIUM --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* --- FEATURE CARDS PREMIUM --- */
.feature-card {
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.glass-effect-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(236, 72, 153, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(236, 72, 153, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-effect-premium:hover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.15),
                0 8px 16px rgba(168, 85, 247, 0.1);
    transform: translateY(-8px) scale(1.02);
}

.glass-effect-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #a855f7, #ec4899);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-effect-premium:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .feature-icon-wrapper::before {
    opacity: 1;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotateY(5deg);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotateZ(-5deg);
    filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.3));
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: #1f2937;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-title {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    font-size: 0.813rem;
    color: #6b7280;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: #4b5563;
}

/* Responsive para Feature Cards */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem 1.25rem;
    }
    
    .feature-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
        border-radius: 16px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .feature-card {
        padding: 1.25rem 1rem;
    }
    
    .feature-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
        border-radius: 14px;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }
    
    .feature-description {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .glass-effect-premium:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* --- SHIMMER EFFECT --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* --- CUSTOM SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777, #7c3aed);
}

/* Smooth scroll behavior */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* ========================================
   SIDEBAR MENU - Premium Design
   ======================================== */

/* Hamburger Button Animation */
.sidebar-line {
    position: relative;
    overflow: hidden;
}

.sidebar-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer-line 3s infinite;
}

@keyframes shimmer-line {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Glow effect for sidebar toggle */
#sidebarToggle {
    position: fixed;
    will-change: transform;
}

#sidebarToggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ec4899, #a855f7, #ec4899);
    border-radius: 12px;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: rotate-gradient 3s linear infinite;
}

#sidebarToggle:hover::before {
    opacity: 0.7;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#sidebarToggle:hover .sidebar-line:nth-child(1) {
    background: linear-gradient(90deg, #ec4899, #a855f7);
    transform: translateX(3px);
}

#sidebarToggle:hover .sidebar-line:nth-child(2) {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

#sidebarToggle:hover .sidebar-line:nth-child(3) {
    background: linear-gradient(90deg, #ec4899, #a855f7);
    transform: translateX(-3px);
}

#sidebarToggle.active .sidebar-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#sidebarToggle.active .sidebar-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

#sidebarToggle.active .sidebar-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Animation */
#sidebarMenu.active {
    transform: translateX(0);
}

#sidebarMenu.active .sidebar-item,
#sidebarMenu.active .sidebar-dropdown {
    animation: slideInLeft 0.4s ease-out forwards;
    opacity: 0;
}

#sidebarMenu.active .sidebar-item:nth-child(1),
#sidebarMenu.active .sidebar-dropdown:nth-child(1) { animation-delay: 0.1s; }
#sidebarMenu.active .sidebar-item:nth-child(2),
#sidebarMenu.active .sidebar-dropdown:nth-child(2) { animation-delay: 0.15s; }
#sidebarMenu.active .sidebar-item:nth-child(3),
#sidebarMenu.active .sidebar-dropdown:nth-child(3) { animation-delay: 0.2s; }
#sidebarMenu.active .sidebar-item:nth-child(4),
#sidebarMenu.active .sidebar-dropdown:nth-child(4) { animation-delay: 0.25s; }
#sidebarMenu.active .sidebar-item:nth-child(5),
#sidebarMenu.active .sidebar-dropdown:nth-child(5) { animation-delay: 0.3s; }
#sidebarMenu.active .sidebar-item:nth-child(6),
#sidebarMenu.active .sidebar-dropdown:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #sidebarMenu {
        width: 85vw;
        max-width: 320px;
    }
    
    #sidebarToggle {
        top: 20px;
        left: 8px;
        width: 44px;
        height: 44px;
    }
    
    .sidebar-line {
        width: 24px;
    }
}

@media (max-width: 480px) {
    #sidebarMenu {
        width: 90vw;
        max-width: 280px;
    }
    
    #sidebarToggle {
        top: 18px;
        left: 6px;
        width: 40px;
        height: 40px;
        z-index: 70;
    }
    
    .sidebar-line {
        width: 22px;
        height: 2px;
    }
    
    /* Adjust sidebar content for mobile */
    #sidebarMenu .p-6 {
        padding: 1rem;
        padding-bottom: 2rem;
    }
    
    #sidebarMenu h1,
    #sidebarMenu .h-14 {
        height: 3rem;
    }
    
    .sidebar-item span {
        font-size: 0.9rem;
    }
    
    .submenu a {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Overlay styles */
#sidebarOverlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Sidebar Items */
.sidebar-item {
    position: relative;
    overflow: hidden;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #ec4899, #a855f7);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-item:hover::before {
    transform: scaleY(1);
}

/* Active state for sidebar items */
.sidebar-item.active-page {
    background: linear-gradient(to right, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
}

.sidebar-item.active-page::before {
    transform: scaleY(1);
}

.sidebar-item.active-page span {
    color: #ec4899;
    font-weight: 700;
}

.sidebar-item.active-page i {
    color: #a855f7;
}

/* Submenu Toggle */
.submenu-toggle {
    transition: all 0.3s ease;
}

.submenu-toggle:hover i {
    color: #ec4899;
}

.submenu-toggle.active i {
    transform: rotate(180deg);
    color: #a855f7;
}

/* Submenu Animation */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.submenu.active {
    max-height: 600px;
    opacity: 1;
}

/* Submenu Links */
.submenu a {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    transition: width 0.3s ease;
}

.submenu a:hover::before {
    width: 6px;
}

.submenu a:hover {
    transform: translateX(2px);
}

/* Badge Pulse Animation */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }
}

#cartBadgeSidebar:not(.hidden) {
    animation: badge-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebarMenu {
        width: 85vw;
        max-width: 320px;
    }
    
    #sidebarToggle {
        top: 20px;
        left: 8px;
        width: 44px;
        height: 44px;
    }
    
    .sidebar-line {
        width: 24px;
    }
}

/* Sidebar Scrollbar Custom */
#sidebarMenu::-webkit-scrollbar {
    width: 6px;
}

#sidebarMenu::-webkit-scrollbar-track {
    background: transparent;
}

#sidebarMenu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #a855f7);
    border-radius: 3px;
}

#sidebarMenu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #db2777, #9333ea);
}

/* Sidebar Shadow Effect */
#sidebarMenu {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}
/* ========================================
   FLOATING CAROUSEL - Hero Section
   Carrusel con posiciones fijas y transición rápida
   ======================================== */

.carousel-fixed {
    position: absolute;
    width: 320px !important;
    height: 400px !important;
    max-width: 320px !important;
    max-height: 400px !important;
    top: 55%;
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.carousel-left {
    left: 20px;
}

.carousel-right {
    right: 20px;
}

/* Responsive carousel sizes */
@media (min-width: 1440px) {
    .carousel-fixed {
        width: 260px !important;
        height: 340px !important;
        max-width: 260px !important;
        max-height: 340px !important;
    }
    
    .carousel-left {
        left: 20px;
    }
    
    .carousel-right {
        right: 20px;
    }
}

@media (min-width: 1600px) {
    .carousel-fixed {
        width: 320px !important;
        height: 400px !important;
        max-width: 320px !important;
        max-height: 400px !important;
    }
    
    .carousel-left {
        left: 40px;
    }
    
    .carousel-right {
        right: 40px;
    }
}

@media (min-width: 1800px) {
    .carousel-fixed {
        width: 380px !important;
        height: 480px !important;
        max-width: 380px !important;
        max-height: 480px !important;
    }
    
    .carousel-left {
        left: 60px;
    }
    
    .carousel-right {
        right: 60px;
    }
}

/* Transiciones suaves sin parpadeo */
.carousel-fixed {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel-fixed img {
    transition: opacity 600ms ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover effect para carousel */
.carousel-fixed:hover {
    box-shadow: 0 30px 60px -15px rgba(236, 72, 153, 0.4);
    transform: translateY(-50%) scale(1.03);
}

/* Rotar imagen de Barbie */
.carousel-image-container img[src*="barbie.jpg"] {
    transform: rotate(90deg) scale(1.2);
    transform-origin: center;
}

.carousel-fixed:hover .carousel-image-container img[src*="barbie.jpg"] {
    transform: rotate(90deg) scale(1.35);
}

/* Glow effect premium */
.carousel-fixed::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #ec4899, #a855f7, #3b82f6);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
}

.carousel-fixed:hover::before {
    opacity: 0.7;
}

/* Botones Overlay en las imágenes (invisibles hasta hover) */
.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-overlay-btn {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
    opacity: 0;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-fixed:hover .carousel-overlay-btn {
    opacity: 1;
}

.carousel-overlay-btn.left {
    left: 12px;
}

.carousel-overlay-btn.right {
    right: 12px;
}

.carousel-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.carousel-overlay-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive - Hide carousel on smaller screens */
@media (max-width: 1439px) {
    .carousel-fixed {
        display: none !important;
    }
}

/* Ensure carousel never overlaps content */
.hero-animated .relative {
    z-index: 20 !important;
    position: relative;
}

.carousel-fixed {
    z-index: 1 !important;
}

/* ========================================
   GALLERY FILTERS
   ======================================== */
.gallery-filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
    border-color: #ec4899;
    color: #ec4899;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

/* ========================================
   SCROLL OFFSET PARA ANCLAS
   ======================================== */
/* Añade espacio arriba cuando se navega a una sección con ID
   para que se vea el título de la sección */
section[id],
div[id] {
    scroll-margin-top: 140px;
}

@media (max-width: 768px) {
    section[id],
    div[id] {
        scroll-margin-top: 120px;
    }
}

/* ========================================
   NOTIFICACIÓN PREMIUM DEL CARRITO
   ======================================== */
.premium-cart-notification {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    opacity: 0;
}

.premium-cart-notification.active {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    opacity: 1;
}

.premium-cart-notification.hiding {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
}

.premium-notification-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fef3ff 100%);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(168, 85, 247, 0.4),
                0 10px 30px rgba(236, 72, 153, 0.3);
    transform: scale(0.5) translateY(-100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    overflow: hidden;
}

.premium-cart-notification.active .premium-notification-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.premium-cart-notification.hiding .premium-notification-content {
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

/* Animación del carrito */
.cart-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.cart-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cart-bounce 0.6s ease-out;
    display: block;
}

@keyframes cart-bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(0.95) rotate(5deg);
    }
    75% {
        transform: scale(1.05) rotate(-3deg);
    }
}

/* Producto cayendo */
.product-drop {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    opacity: 0;
    animation: product-fall 0.6s ease-in forwards;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.5);
}

@keyframes product-fall {
    0% {
        top: -30px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    70% {
        top: 45px;
        opacity: 1;
    }
    85% {
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        top: 50px;
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
}

/* Texto de la notificación */
.notification-text {
    position: relative;
}

.success-check {
    display: inline-block;
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 0.5rem;
    animation: check-pop 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes check-pop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.notification-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: text-slide-up 0.5s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.notification-text p {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    animation: text-slide-up 0.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes text-slide-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Confetti */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 1.2s ease-out forwards;
}

.confetti::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Diferentes colores de confetti */
.confetti-0::before, .confetti-5::before, .confetti-10::before { background: #ec4899; }
.confetti-1::before, .confetti-6::before, .confetti-11::before { background: #a855f7; }
.confetti-2::before, .confetti-7::before, .confetti-12::before { background: #fbbf24; }
.confetti-3::before, .confetti-8::before, .confetti-13::before { background: #10b981; }
.confetti-4::before, .confetti-9::before, .confetti-14::before { background: #3b82f6; }

/* Posiciones y delays únicos para cada confetti */
.confetti-0 { left: 10%; animation-delay: 0.1s; }
.confetti-1 { left: 20%; animation-delay: 0.15s; }
.confetti-2 { left: 30%; animation-delay: 0.2s; }
.confetti-3 { left: 40%; animation-delay: 0.1s; }
.confetti-4 { left: 50%; animation-delay: 0.25s; }
.confetti-5 { left: 60%; animation-delay: 0.15s; }
.confetti-6 { left: 70%; animation-delay: 0.3s; }
.confetti-7 { left: 80%; animation-delay: 0.2s; }
.confetti-8 { left: 90%; animation-delay: 0.1s; }
.confetti-9 { left: 15%; animation-delay: 0.25s; }
.confetti-10 { left: 25%; animation-delay: 0.2s; }
.confetti-11 { left: 35%; animation-delay: 0.15s; }
.confetti-12 { left: 65%; animation-delay: 0.1s; }
.confetti-13 { left: 75%; animation-delay: 0.2s; }
.confetti-14 { left: 85%; animation-delay: 0.3s; }

@keyframes confetti-fall {
    0% {
        top: -10%;
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: translateY(0) rotate(720deg);
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .premium-notification-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .cart-icon {
        font-size: 3rem;
    }
    
    .notification-text h3 {
        font-size: 1.5rem;
    }
    
    .notification-text p {
        font-size: 0.9rem;
    }
    
    .success-check {
        font-size: 2.5rem;
    }
}

/* ========================================
   GLOBAL RESPONSIVE IMPROVEMENTS
   Mejoras globales de responsividad para todas las páginas
   ======================================== */

/* Ensure all containers are responsive */
.container,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl,
.max-w-xl {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl,
    .max-w-xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl,
    .max-w-xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Responsive grids - ensure they stack properly on mobile */
.grid {
    display: grid;
    gap: 1rem;
}

@media (max-width: 640px) {
    /* Only stack 3+ column grids — preserve intentional 2-col layouts */
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Stack 3-column grids to 2 columns on tablet */
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Stack 4-column grids to 2 columns on tablet */
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ensure sections have proper responsive padding */
section {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Responsive text sizes */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.4;
    }
    
    .serif-title {
        font-size: 2rem !important;
    }
}

/* Responsive buttons — only explicit btn class, never bare button (breaks hamburger/close/nav) */
@media (max-width: 640px) {
    .btn-block {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }
}

/* Responsive images within specific sections */
@media (max-width: 768px) {
    .aspect-\[3\/4\] {
        aspect-ratio: 3/4;
    }
    
    /* Adjust character card images on mobile — clamp handled in category-card rule */
    
    .group.relative {
        width: 100%;
    }
}


/* Overflow handling */
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent horizontal scroll issues */
.overflow-hidden {
    overflow: hidden;
}

section.overflow-hidden {
    overflow: hidden;
}

/* Ensure aspect-ratio containers are responsive */
[class*="aspect-"] {
    position: relative;
    width: 100%;
}

[class*="aspect-"] img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific handling for aspect-square */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* Gallery items - specific selector */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Character cards in Disney section - specific selector */
.group.relative.overflow-hidden img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure carousel images are responsive */
.carousel-image-container {
    width: 100%;
    height: 100%;
}

.carousel-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional responsive utilities */
@media (max-width: 1024px) {
    /* Reduce padding on tablets */
    .px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 640px) {
    /* Further reduce on mobile */
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Specific card images */
    .category-card img,
    .service-card img,
    .gallery-item img,
    .modal-option-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Banner de Novedades - Estilo Premium */
.news-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.5s ease-out;
}

.news-banner {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.5), 
                0 0 100px rgba(168, 85, 247, 0.3);
    animation: slideInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.news-banner-content {
    position: relative;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

.news-banner-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 2px, transparent 2px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: sparkleMove 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

.news-banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #ec4899;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.news-banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.news-banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.news-banner-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-banner-close {
    background: white;
    color: #ec4899;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.news-banner-close:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
}

.news-banner-close:active {
    transform: translateY(-1px) scale(0.98);
}

/* Animaciones del banner */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInBounce {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes sparkleMove {
    0% {
        background-position: 0 0, 40px 40px;
    }
    100% {
        background-position: 80px 80px, 120px 120px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive del banner de novedades */
@media (max-width: 640px) {
    .news-banner {
        width: 95%;
        border-radius: 16px;
    }
    
    .news-banner-content {
        padding: 1.5rem;
    }
    
    .news-banner-title {
        font-size: 1.75rem;
    }
    
    .news-banner-subtitle {
        font-size: 0.95rem;
    }
    
    .news-banner-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1.2rem;
    }
    
    .news-banner-close {
        padding: 0.7rem 2rem;
        font-size: 0.8rem;
    }
    
    .news-banner-image {
        max-height: 200px;
    }
}

/* ========================================
   ANIMACIONES PREMIUM FADE-IN-UP (Nivel Senior)
   Usando cubic-bezier profesional con timing perfecto
   ======================================== */

/* Animación fade-in-up suave y profesional */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación fade-in-up-scale con efecto premium */
@keyframes fade-in-up-scale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación fade-in suave */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Clases de utilidad para animaciones */
.fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in-up-scale {
    animation: fade-in-up-scale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in {
    animation: fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Delays para animaciones escalonadas */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Estados hover mejorados con transiciones premium */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Efecto de micro-interacción en botones */
.hover-lift:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* Glow effect premium para elementos importantes */
.hover-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4),
                0 0 40px rgba(99, 102, 241, 0.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Intersection Observer support para lazy loading de animaciones */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de entrada para modales mejorada */
#cartModal .modal-content,
#serviceModal .modal-content {
    animation: fade-in-up-scale 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mejoras sutiles para cards existentes */
.card-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ========================================
   SERVICIOS ESPECIALES - CASAMENTOS/BATIZADOS
   Estilos custom para diseños premium
   ======================================== */

/* Handwriting font para Polaroids */
.font-handwriting {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-weight: 600;
}

/* iPhone Mockup 3D effects */
@media (min-width: 768px) {
    .hover-lift {
        transform-style: preserve-3d;
    }
}

/* Audio Wave Animation (ya está inline pero aquí como backup) */
@keyframes audioWave {
    0%, 100% { 
        height: 40%; 
        opacity: 0.7;
    }
    50% { 
        height: 100%; 
        opacity: 1;
    }
}

/* Audio bars when playing */
.audio-bar {
    transition: height 0.3s ease;
}

/* Video player overlay transitions */
#iphonePlayBtn {
    transition: opacity 0.3s ease;
}

#iphonePlayBtn.opacity-0 {
    opacity: 0;
    pointer-events: none;
}

/* Video navigation dots */
.video-dot.active {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2);
}

/* Glassmorphism effects */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for service sections */
@media (max-width: 768px) {
    .serif-title {
        font-size: 2rem;
    }

    /* Ensure polaroids don't overflow on mobile */
    .polaroid-container {
        position: relative !important;
        transform: none !important;
    }
}

/* ================================================
   PREMIUM OVERHAUL — Showtime 2026
   ================================================ */

/* --- FORM INPUTS: fix text color & placeholder --- */
.st-input {
    color: #111827 !important;
    caret-color: #a855f7;
}
.st-input::placeholder {
    color: #9ca3af !important;
    font-weight: 400;
}
.st-input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12) !important;
}
.st-input option {
    color: #111827;
}

/* --- NAV: scrolled state --- */
nav.nav-scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.05) !important;
    border-bottom-color: rgba(168,85,247,0.12) !important;
    backdrop-filter: blur(20px) !important;
}

/* --- NAV LINKS: better active/hover --- */
.nav-link {
    color: #374151;
    padding: 4px 2px;
}
.nav-link:hover {
    color: #7c3aed;
}
.nav-link.active-page {
    color: #7c3aed;
    font-weight: 700;
}
.nav-link.active-page::after {
    width: 100% !important;
}

/* --- GRADIENT TEXT UTILITY --- */
.text-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #FFD700 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- SCROLL REVEAL: upgraded stagger --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
    will-change: opacity, transform;
}
.reveal.reveal-left {
    transform: translateX(-32px);
}
.reveal.reveal-right {
    transform: translateX(32px);
}
.reveal.reveal-scale {
    transform: scale(0.92) translateY(16px);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* --- WHATSAPP BUTTON: premium pulse --- */
.whatsapp-float {
    animation: waPulse 3s ease-in-out infinite;
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
    50% { box-shadow: 0 12px 40px rgba(37,211,102,0.5), 0 0 0 10px rgba(37,211,102,0); }
}
.whatsapp-float:hover {
    animation: none;
    transform: scale(1.12) !important;
    box-shadow: 0 16px 48px rgba(37,211,102,0.55) !important;
}

/* --- SHIMMER ANIMATION (for buttons) --- */
@keyframes shimmer {
    0% { transform: rotate(45deg) translateX(-150%); }
    100% { transform: rotate(45deg) translateX(150%); }
}

/* --- SECTION DIVIDER --- */
.st-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168,85,247,0.3), transparent);
    margin: 0 auto;
}

/* --- FOCUS GLOBAL PREMIUM --- */
*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 3px;
    border-radius: 6px;
}

/* --- CARD LIFT: generic premium hover --- */
.card-lift {
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(168,85,247,0.1);
}

/* --- BADGE PREMIUM --- */
.badge-premium {
    background: linear-gradient(135deg,#ec4899,#a855f7);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(168,85,247,0.35);
}

/* --- FOOTER PREMIUM --- */
footer {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f0ff 100%) !important;
    border-top: 1px solid rgba(168,85,247,0.12) !important;
}
footer .fab {
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
footer a:hover .fab,
footer a:hover i {
    color: #ec4899 !important;
    transform: scale(1.25) rotate(-5deg);
}

/* --- INPUT ICON FOCUS COLOR --- */
.st-field:focus-within .st-icon {
    color: #a855f7 !important;
}

/* --- CONTACT OPT HOVER LIFT --- */
.contact-opt .opt-card:hover {
    transform: translateY(-3px) scale(1.02) !important;
}

/* --- FORM POPUP BODY --- */
#cartFormPopup div.flex-1.overflow-y-auto {
    background: #ffffff !important;
}
#cartFormPopup .st-label {
    color: #374151 !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 10px;
}

/* --- PAGE LOAD FADE --- */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
main, [role="main"], .main-content {
    animation: pageFadeIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* --- MOBILE TOUCH FEEDBACK --- */
@media (max-width: 768px) {
    .service-card:active, .category-card:active {
        transform: scale(0.97) !important;
        transition-duration: 0.1s !important;
    }
}

