/* FUENTES Y ESTILOS GLOBALES */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
}
.no-edit-keep
html, body { height: auto; min-height: 100%; overflow-y: auto; }
#page-content { min-height: 100vh; overflow: visible; }
.container { max-width: 1280px; }

/* HEADER */
#main-header {
    background-color: transparent;
    transition: background-color 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
}
#main-header .nav-link, #main-header .icon-link { 
    color: #8357C5;
    transition: color 0.3s ease; 
    cursor: pointer; 
}
#main-header .cart-counter { background-color: white; color: #8357C5; position: absolute; top: -0.5rem; right: -0.5rem; font-size: 0.75rem; font-weight: bold; border-radius: 9999px; height: 1.25rem; width: 1.25rem; display: flex; align-items: center; justify-content: center; }
#main-header #header-logo {
    transition: all 0.4s ease-in-out;
    opacity: 0.95;
    mix-blend-mode: multiply;
    background: transparent;
    border: none;
    outline: none;
    filter: contrast(1.1) brightness(1.05);
}

/* Transición suave al cambiar entre logos PNG */
#main-header #header-logo[src*="logo violeta.png"] {
    opacity: 0.95;
}

#main-header #header-logo[src*="logo blanco.png"] {
    opacity: 1;
    mix-blend-mode: normal;
}

#main-header.scrolled {
    background-color: #8357C5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#main-header:hover {
    background-color: #8357C5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#main-header:hover .nav-link, #main-header:hover .icon-link,
#main-header.scrolled .nav-link, #main-header.scrolled .icon-link { 
    color: white;
}
#main-header:hover #header-logo, #main-header.scrolled #header-logo {
    opacity: 1;
}

/* Cambiar color del botón del menú hamburguesa cuando el header tiene fondo */
#main-header:hover #menu-toggle,
#main-header.scrolled #menu-toggle {
    color: white;
}

/* Barra lateral */
#sidebar {
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    #sidebar {
        width: 85%;
    }
}

#sidebar.open {
    transform: translateX(0) !important;
}

#sidebar-overlay {
    transition: opacity 0.3s ease;
}

#sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Botón del menú hamburguesa */
#menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #8357C5;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

#menu-toggle:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Estilos para las secciones del sidebar */
#sidebar .user-section,
#sidebar .config-section,
#sidebar .about-section {
    margin-bottom: 2rem;
}

#sidebar a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

#sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Ajustes para scroll */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

/* Botón de registrarse */
#register-btn {
    background-color: white;
    color: #8357C5;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#register-btn:hover {
    background-color: #f3f4f6;
    border-color: #8357C5;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #register-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
}

/* ======================= BANNER CAROUSEL ======================= */
#banner-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 400%; /* 100% por cada slide */
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.carousel-slide {
    width: 25%; /* 100% / 4 slides */
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.carousel-slide.focus-left {
    background-position: 25% 50%;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem;
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8357C5;
    font-size: 1.5rem;
}

/* Posicionamiento específico de los botones */
#prev-btn {
    left: 1rem;
}

#next-btn {
    right: 1rem;
}

#banner-carousel:hover .carousel-arrow { opacity: 1; }
#banner-carousel .carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicator.active {
    background-color: #8357C5;
    border-color: white;
}

/* ======================= TARJETAS DE PRODUCTO ======================= */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ======================= PÁGINA DE PRODUCTO ======================= */
/* Los estilos de la galería ahora están en product-gallery.css */

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card .p-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ======================= SECCIÓN LOOKBOOK ======================= */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.lookbook-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    aspect-ratio: 1;
    cursor: pointer;
}

.lookbook-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lookbook-item:hover img {
    transform: scale(1.05);
}

.lookbook-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.lookbook-item:hover .lookbook-overlay {
    transform: translateY(0);
}

.lookbook-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lookbook-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.instagram-handle {
    color: #8357C5;
    font-weight: 600;
    text-decoration: none;
}

.instagram-handle:hover {
    text-decoration: underline;
}

/* ======================= SECCIÓN MANIFESTO ======================= */
#manifesto-section { padding: 5rem 1.5rem; background-color: #F8F5F2; }
#manifesto-section img { max-width: 100%; height: auto; margin: 0 auto; display: block; }

/* ======================= FOOTER ======================= */
.fotofooter-container {
    margin-bottom: 2rem;
}

.fotofooter-container img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.footer-violet-bar {
    background: linear-gradient(135deg, #8357C5 0%, #6e48a9 100%);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(131, 87, 197, 0.3);
}

.footer-violet-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-violet-bar h5 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.footer-violet-bar .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-violet-bar .footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.footer-violet-bar .footer-links a:hover {
    opacity: 0.8;
}

/* Barra violeta completa del footer */
.footer-violet-bar-full {
    background: linear-gradient(135deg, #8357C5 0%, #6e48a9 100%);
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: 0 -4px 12px rgba(131, 87, 197, 0.3);
}

.footer-violet-bar-full .container {
    max-width: 1280px;
}

.footer-violet-bar-full a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.footer-violet-bar-full a:hover {
    opacity: 0.8;
}

/* ======================= MODALES, TOAST Y WHATSAPP ======================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: flex-start; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; overflow-y: auto; padding: 2rem 0; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { 
    background-color: white; 
    border-radius: 0.5rem; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    max-height: 95vh; 
    overflow-y: auto; 
    pointer-events: auto;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.visible .modal-content { 
    transform: scale(1); 
    opacity: 1;
}
.size-option { padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.size-option:hover { background-color: #f3f4f6; border-color: #8357C5; }
.size-option.selected { background-color: #8357C5; color: white; border-color: #8357C5; }

/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8A2BE2;
    color: white !important;
    z-index: 1100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
    background: #7a23cc;
}
.whatsapp-button i { color: white !important; }
/* ======================= NOTIFICACIONES ESTÉTICAS ======================= */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.toast-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left: 4px solid #34d399;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left: 4px solid #f87171;
}

.toast-notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-left: 4px solid #60a5fa;
}

.toast-notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-left: 4px solid #fbbf24;
}

/* Iconos para las notificaciones */
.toast-notification::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
}

.toast-notification.success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
}

.toast-notification.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'%3E%3C/path%3E%3C/svg%3E");
}

.toast-notification.info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E");
}

.toast-notification.warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z'%3E%3C/path%3E%3C/svg%3E");
}

/* Animación de entrada y salida */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-notification.show {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.hide {
    animation: slideOutRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ======================= CARROT COUNTER MEJORADO ======================= */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: 2px solid white;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ======================= CHECKOUT LAYOUT FIXES ======================= */
.checkout-section { max-width: 1280px; margin-left: auto; margin-right: auto; }
.checkout-grid { align-items: flex-start; }
.checkout-card { padding: 1.5rem; }
.checkout-sticky { position: sticky; top: 8rem; }
.checkout-scroll-area { max-height: 65vh; overflow-y: auto; }
.checkout-radio label { align-items: center; }
.checkout-radio input[type="radio"] { transform: scale(1.05); }
.checkout-info { font-size: 0.95rem; line-height: 1.5; }
.checkout-info p, .checkout-info li { margin-bottom: 0.25rem; }

@media (max-width: 1024px) {
    .checkout-scroll-area { max-height: none; }
    .checkout-sticky { position: static; top: auto; }
}

.cart-counter:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ======================= ESTILOS DEL CARRITO ======================= */
.cart-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: #8357C5;
    color: #8357C5;
    background: #f8fafc;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #374151;
}

.remove-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #fecaca;
    background: white;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    border-color: #ef4444;
    background: #fef2f2;
    transform: scale(1.05);
}

.remove-item:active {
    transform: scale(0.95);
}

/* ======================= MENÚ DESPLEGABLE ======================= */
/* Las reglas del sidebar están definidas arriba */

.icon-link {
    color: #8357C5;
    cursor: pointer;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: #6e48a9;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8357C5;
}

/* ======================= CAROUSEL (ESTILOS ADICIONALES) ======================= */

/* Indicadores del carrusel */
.carousel-indicators {
    z-index: 10;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background-color: white !important;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicator:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.8);
}

/* ======================= GALERÍA DE PRODUCTOS ======================= */
.thumbnail-container {
    scrollbar-width: thin;
    scrollbar-color: #8357C5 #f3f4f6;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #8357C5;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #6e48a9;
}

.thumbnail {
    border-color: #e5e7eb;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #8357C5;
    box-shadow: 0 0 0 2px rgba(131, 87, 197, 0.2);
}

.size-option {
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #8357C5;
    background-color: rgba(131, 87, 197, 0.1);
}

.size-option.selected {
    border-color: #8357C5;
    background-color: #8357C5;
    color: white;
    transform: scale(1.05);
}

/* Mejoras para el modal de producto */
#product-preview-modal .modal-content {
    max-height: 95vh;
    overflow-y: auto;
}

.main-image-container { display: flex; align-items: center; justify-content: center; }
.main-image-container img { transition: transform 0.3s ease; max-height: 85vh; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.main-image-container img:hover { transform: none; }

/* ======================= LOOKBOOK ======================= */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lookbook-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.lookbook-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lookbook-item:hover img {
    transform: scale(1.05);
}

.lookbook-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.lookbook-item:hover .lookbook-overlay {
    transform: translateY(0);
}

.lookbook-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lookbook-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.instagram-handle {
    color: #8357C5;
    font-weight: 600;
    text-decoration: none;
}

.instagram-handle:hover {
    text-decoration: underline;
}

/* ======================= FOOTER ======================= */
.fotofooter-container {
    margin-top: 2rem;
}

.footer-violet-bar-full {
    background: linear-gradient(135deg, #8357C5 0%, #6e48a9 100%);
    color: white;
}

.footer-violet-bar-full a:hover {
    opacity: 0.8;
}

/* ======================= INDICADOR DE CARGA ======================= */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

#loading-cart {
    transition: opacity 0.3s ease;
}

#loading-cart.hidden {
    display: none;
}

#cart-content.hidden {
    display: none;
}

/* ======================= MODAL DE DATOS DEL CLIENTE ======================= */
#customer-data-modal {
    transition: all 0.3s ease-in-out;
}

#customer-data-modal.visible {
    opacity: 1;
    visibility: visible;
}

#customer-data-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#customer-data-modal .modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease-in-out;
}

#customer-data-modal.visible .modal-content {
    transform: scale(1) translateY(0);
}

#customer-data-modal input,
#customer-data-modal select,
#customer-data-modal textarea {
    transition: all 0.2s ease;
}

#customer-data-modal input:focus,
#customer-data-modal select:focus,
#customer-data-modal textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(131, 87, 197, 0.15);
}

#customer-data-modal button {
    transition: all 0.2s ease;
}

#customer-data-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos para campos requeridos */
#customer-data-modal input[required]::after {
    content: " *";
    color: #ef4444;
}

/* Animación de entrada para el formulario */
#customer-data-form {
    animation: slideInUp 0.5s ease-out;
}

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

/* Estilos responsivos para el modal */
@media (max-width: 768px) {
    #customer-data-modal .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    #customer-data-modal .grid {
        grid-template-columns: 1fr;
    }
}

/* Layout del header en móvil - Distribución simétrica compacta */
@media (max-width: 768px) {
    /* Mantener layout horizontal pero más compacto */
    #main-header .container {
        height: auto !important;
        min-height: 5rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        align-items: center !important;
    }
    
    /* Logo más pequeño y centrado */
    #main-header .absolute {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        order: 2 !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    /* Menú hamburguesa a la izquierda */
    #main-header .flex.items-center.space-x-6.flex-1.justify-start {
        order: 1 !important;
        flex: 0 0 auto !important;
    }
    
    /* Botones a la derecha, alineados con el logo */
    #main-header .flex.items-center.justify-end.space-x-6.flex-1 {
        order: 3 !important;
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
        margin: 0 !important;
    }
    
    /* Logo más grande para móvil */
    #header-logo {
        height: 3.5rem !important;
    }
    
    /* Botón más compacto */
    #register-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Iconos más pequeños */
    .icon-link {
        font-size: 1.25rem !important;
    }
    
    /* Carrito más compacto */
    #cart-count {
        height: 1rem !important;
        width: 1rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Responsividad del carrusel */
    #banner-carousel {
        height: 70vh;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carousel-indicators {
        bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
        /* Forzar forma circular */
        min-width: 10px;
        min-height: 10px;
        max-width: 10px;
        max-height: 10px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
    }
}

/* Responsividad del header para móviles pequeños */
@media (max-width: 640px) {
    /* Ajustes para móviles pequeños */
    #main-header .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        min-height: 6rem !important;
    }
    
    #header-logo {
        height: 3rem !important;
    }
    
    #register-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .icon-link {
        font-size: 1.125rem !important;
    }
    
    /* Carrito más compacto */
    #cart-count {
        height: 0.875rem !important;
        width: 0.875rem !important;
        font-size: 0.6rem !important;
    }
    
    /* Responsividad del carrusel */
    #banner-carousel {
        height: 60vh;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.4rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
        border-width: 1px;
        /* Forzar forma circular */
        min-width: 8px;
        min-height: 8px;
        max-width: 8px;
        max-height: 8px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* Ajustes para móviles muy pequeños */
    #main-header .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        min-height: 5rem !important;
    }
    
    #header-logo {
        height: 2.5rem !important;
    }
    
    #register-btn {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
    }
    
    .icon-link {
        font-size: 1rem !important;
    }
    
    /* Carrito ultra compacto */
    #cart-count {
        height: 0.75rem !important;
        width: 0.75rem !important;
        font-size: 0.55rem !important;
    }
    
    /* Responsividad del carrusel */
    .carousel-indicators {
        bottom: 0.75rem;
        gap: 0.3rem;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
        border-width: 1px;
        /* Forzar forma circular */
        min-width: 6px;
        min-height: 6px;
        max-width: 6px;
        max-height: 6px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
    }
}

/* ======================= ESTILOS PARA TIKTOK EMBED ======================= */
#tiktok-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    margin: 2rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(131, 87, 197, 0.1);
    position: relative;
    overflow: hidden;
}

#tiktok-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8357C5 0%, #6e48a9 100%);
}

#tiktok-section h2 {
    background: linear-gradient(135deg, #8357C5 0%, #6e48a9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#tiktok-section p {
    color: #64748b;
    font-weight: 500;
}

/* Estilos para el iframe de TikTok */
.tiktok-video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tiktok-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tiktok-video {
    border-radius: 15px;
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
}

.tiktok-iframe-fallback {
    border-radius: 15px;
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.tiktok-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
}

.tiktok-video-container:hover .tiktok-overlay {
    opacity: 1;
}

.tiktok-video-container:hover .tiktok-overlay {
    pointer-events: auto;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(131, 87, 197, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(131, 87, 197, 1);
}

.play-button i {
    color: white;
    font-size: 20px;
}

.tiktok-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsividad para móvil */
@media (max-width: 768px) {
    #tiktok-section {
        margin: 1rem auto;
        padding: 1.5rem 1rem;
    }
    
    #tiktok-section h2 {
        font-size: 2rem;
    }
    
    #tiktok-section p {
        font-size: 1rem;
    }
    
    .tiktok-video-container {
        min-width: 280px;
        max-width: 100%;
    }
    
    .tiktok-video,
    .tiktok-iframe-fallback {
        height: 600px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 18px;
    }
    
    .tiktok-text {
        font-size: 12px;
    }
}