/* 
 * STYLOFITNESS - Estilos Principales
 * Diseño profesional basado en colores del logo
 */

/* =============================================
   VARIABLES CSS Y CONFIGURACIÓN BASE
   ============================================= */
:root {
    /* Colores principales del logo STYLOFITNESS */
    --primary-color: #FF6B00;
    --secondary-color: #E55A00;
    --accent-color: #FF8533;
    --metallic-color: #8A8A8A;
    --dark-bg: #2A2A2A;
    --light-bg: #F5F5F5;
    --white: #FAF7F0;
    --text-light: #B8B8B8;
    --text-dark: #2A2A2A;
    
    /* Colores de estado */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Gradientes profesionales */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-bg) 0%, var(--metallic-color) 100%);
    --gradient-hero: linear-gradient(rgba(42, 42, 42, 0.8), rgba(138, 138, 138, 0.6));
    
    /* Sombras profesionales */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 20px rgba(255, 107, 0, 0.3);
    
    /* Transiciones suaves */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Montserrat', Arial, sans-serif;
}

/* =============================================
   RESET Y BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Ocultar mensajes de error de PHP */
.php-error, .php-warning, .php-notice {
    display: none !important;
}

/* Estilo para mensajes de error que no se pueden ocultar */
body > div:first-child:not(.loading-screen):not(.container):not(.header) {
    display: none !important;
}

/* =============================================
   UTILIDADES Y CLASES AUXILIARES
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-white { color: var(--white); }
.text-light { color: var(--text-light); }

.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background: var(--gradient-secondary); }
.bg-dark { background: var(--gradient-dark); }
.bg-white { background: var(--white); }

.shadow-light { box-shadow: var(--shadow-light); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-heavy { box-shadow: var(--shadow-heavy); }

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* =============================================
   HEADER Y NAVEGACIÓN
   ============================================= */
.header {
    background: var(--gradient-dark);
    padding: 0.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
}

.header.scrolled {
    padding: 0.15rem 0;
    box-shadow: var(--shadow-medium);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    position: relative;
}

.navbar-brand {
    z-index: 1001;
    margin-right: auto;
    padding-right: 1rem;
    padding-left: 0.5rem;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0.5rem;
    border-radius: 16px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
    border-radius: 25px;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

/* Buscador en navbar */
.navbar-search {
    position: relative;
    margin: 0 0.5rem;
}

.search-form {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 160px;
    padding: 0.35rem 0.5rem;
    padding-right: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.7rem;
    outline: none;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.7rem;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-primary);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-suggestion-item:hover {
    background: rgba(255, 107, 0, 0.1);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 1rem;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.suggestion-category {
    font-size: 0.85rem;
    color: var(--text-light);
}

.suggestion-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-loading,
.search-error,
.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

.search-error {
    color: var(--danger);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo h1 {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* =============================================
   MENSAJES FLASH
   ============================================= */
.flash-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    z-index: 9998;
    min-width: 400px;
    max-width: 90vw;
    transition: var(--transition-medium);
}

.flash-message .container {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.flash-success {
    border-left: 5px solid var(--success);
}

.flash-error {
    border-left: 5px solid var(--danger);
}

.flash-warning {
    border-left: 5px solid var(--warning);
}

.flash-info {
    border-left: 5px solid var(--info);
}

.flash-message i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.flash-success i {
    color: var(--success);
}

.flash-error i {
    color: var(--danger);
}

.flash-warning i {
    color: var(--warning);
}

.flash-info i {
    color: var(--info);
}

.flash-message span {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Prevenir scroll cuando el menú está abierto */
body.nav-open {
    overflow: hidden;
}

/* =============================================
   SECCIÓN DE OFERTAS ESPECIALES - CORREGIDA
   ============================================= */
.special-offers-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 2rem 0; /* CAMBIO: Padding reducido para mayor compacidad */
    margin: 0;
    position: relative;
    overflow: visible; /* CAMBIO: Permitir overflow para evitar cortes */
    min-height: 60vh; /* CAMBIO: Altura mínima reducida */
    display: block; /* CAMBIO: Layout normal en lugar de flex */
}

.offers-container {
    position: relative;
    width: 100%;
    height: auto; /* CAMBIO: Altura automática */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.offers-header {
    text-align: center;
    padding: 0; /* CAMBIO: Padding más controlado */
    position: relative;
    z-index: 10;
    margin-bottom: 0; /* CAMBIO: Margen inferior para separación */
}

.offers-title {
    font-family: var(--font-accent);
    font-size: 2.8rem; /* CAMBIO: Tamaño más moderado */
    font-weight: 900;
    margin: 0 0 1rem 0; /* CAMBIO: Margen inferior fijo */
    color: var(--white);
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
    letter-spacing: 2px;
}

.offers-title i {
    color: var(--primary-color);
    animation: pulse 2s infinite;
    margin: 0 0.5rem;
}

.offers-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 300;
}

/* Mega Carrusel - Corregido */
.mega-carousel {
    position: relative;
    width: 100%;
    height: auto; /* CAMBIO: Altura automática */
    min-height: 450px; /* CAMBIO: Altura mínima reducida para mayor compacidad */
    overflow: hidden;
    border-radius: 20px; /* CAMBIO: Bordes redondeados */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* CAMBIO: Sombra para definir límites */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px; /* CAMBIO: Altura mínima reducida */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mega-slide {
    min-width: 100%;
    height: auto; /* CAMBIO: Altura automática */
    min-height: 350px; /* CAMBIO: Altura mínima reducida para PCs */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* CAMBIO: Ocultar overflow interno */
    padding: 1.5rem 0; /* CAMBIO: Padding vertical reducido */
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
     background: linear-gradient(135deg, #1a1a1a 30%, #2d2d2d 50%, #1a1a1a 100%);
    
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.95;
}

.bg-overlay-1 {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 50%, #ffaa66 100%);
}

.bg-overlay-2 {
    background: linear-gradient(135deg, #e55a00 0%, #ff6b00 50%, #ff8533 100%);
}

.bg-overlay-3 {
    background: linear-gradient(135deg, #cc5200 0%, #e55a00 50%, #ff6b00 100%);
}

.bg-overlay-4 {
    background: linear-gradient(135deg, #b84700 0%, #cc5200 50%, #e55a00 100%);
}

.bg-particles {
    display: none; /* Ocultar partículas de fondo */
}

.slide-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr; /* Primera columna más ancha, tercera más angosta */
    gap: 1.5rem;
    align-items: center; /* Centrar verticalmente el contenido */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 350px;
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 30%, #d2691e 70%, #ff8c00 100%);
}

/* Información del producto - Columna 1 */
.product-info-mega {
    color: var(--white);
    padding: 2rem; /* Padding uniforme */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente */
    height: 100%;
    grid-column: 1;
    grid-row: 1;
    background: rgba(0, 0, 0, 0.1); /* Fondo sutil para definir la columna */
    border-radius: 15px;
}

.mega-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.mega-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

.discount-percent {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.discount-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.special-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.product-category-mega {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.product-title-mega {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-description-mega {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 100%;
}

.price-mega {
    margin-bottom: 2rem;
}

.original-price-mega {
    font-size: 1.2rem;
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 0.75rem;
}

.sale-price-mega {
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-right: 0.75rem;
}

.current-price-mega {
    font-size: 2.2rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.savings-mega {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #90EE90;
    margin-top: 0.25rem;
    text-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

/* Contador regresivo */
.countdown-timer {
    margin-bottom: 2rem;
}

.timer-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.timer-digits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.8rem 0.6rem;
    min-width: 60px;
}

.timer-value {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.timer-label-small {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.2rem;
    opacity: 0.8;
}

.timer-separator {
    font-size: 1.5rem;
    font-weight: 900;
    opacity: 0.7;
    animation: blink 1s infinite;
}

/* Botones mega */
.mega-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-mega-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mega-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
}

.btn-mega-primary i {
    margin-right: 0.5rem;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-mega-primary:hover .btn-shine {
    left: 100%;
}

/* Estados especiales para botones mega */
.btn-mega-primary.adding {
    background: var(--gradient-secondary);
    transform: scale(0.95);
    pointer-events: none;
}

.btn-mega-primary.added {
    background: var(--success);
    transform: scale(1.05);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.timer-expired {
    color: var(--danger);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    border: 2px solid var(--danger);
}

.btn-mega-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-medium);
}

.btn-mega-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-mega-secondary i {
    margin-right: 0.5rem;
}

/* Indicador de stock */
.stock-indicator {
    margin-bottom: 1rem;
}

.stock-bar {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stock-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.stock-high {
    background: linear-gradient(90deg, #90EE90, #32CD32);
}

.stock-medium {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.stock-low {
    background: linear-gradient(90deg, #FF6347, #DC143C);
}

.stock-text {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Visual del producto - Columna 2 (imagen) */
.product-visual-mega {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    grid-column: 2;
    grid-row: 1;
    background: rgba(0, 0, 0, 0.1); /* Fondo sutil para definir la columna */
    border-radius: 15px;
    padding: 1.5rem;
}

.mega-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-features {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 70px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

/* Área de detalles adicionales - Columna 3 */
.product-details-mega {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: center; /* Centrar verticalmente */
    background: rgba(0, 0, 0, 0.1); /* Fondo más sutil para consistencia */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%; /* Altura completa para alineación */
}

/* Timer más compacto */
.countdown-timer {
    margin-bottom: 1rem;
}

.timer-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    text-align: center;
    color: var(--white);
}

.timer-digits {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 0.4rem;
    min-width: 45px;
}

.timer-value {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Courier New', monospace;
    color: var(--white);
}

.timer-label-small {
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.1rem;
    opacity: 0.8;
    color: var(--white);
}

.timer-separator {
    font-size: 1.2rem;
    font-weight: 900;
    opacity: 0.7;
    color: var(--white);
    animation: blink 1s infinite;
}

/* Botones más compactos */
.mega-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-mega-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-mega-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 0, 0.4);
}

.btn-mega-primary i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.btn-mega-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    width: 100%;
}

.btn-mega-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-mega-secondary i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Stock indicator más compacto */
.stock-indicator {
    margin-bottom: 0.5rem;
}

.stock-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stock-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.stock-text {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    color: var(--white);
    text-align: center;
}

.mega-product-image {
    max-width: 90%; /* CAMBIO: Tamaño más conservador */
    max-height: 90%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 3;
}

/* Eliminar animaciones problemáticas */
.mega-slide.active .mega-product-image {
    /* CAMBIO: Remover animación flotante problemática */
    transform: none;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%; /* CAMBIO: Tamaño más conservador */
    height: 110%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2), transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    /* CAMBIO: Remover animación problemática */
    z-index: 1;
}

.floating-elements {
    display: none; /* Ocultar elementos flotantes */
}

.float-element {
    display: none; /* Ocultar elementos flotantes individuales */
}

/* Elementos flotantes deshabilitados */
/*
.float-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.float-4 {
    bottom: 35%;
    right: 10%;
    animation-delay: 6s;
}
*/

.product-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.feature-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Controles del carrusel - Corregidos */
.mega-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 20; /* CAMBIO: Z-index más alto */
    pointer-events: none;
    transform: translateY(-50%); /* Centrar verticalmente los controles */
}

.mega-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.15); /* CAMBIO: Más visible */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 55px; /* CAMBIO: Tamaño más conservador */
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-medium);
    pointer-events: auto;
}

.mega-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05); /* CAMBIO: Escala más sutil */
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.mega-prev {
    left: 1.5rem; /* CAMBIO: Posición más conservadora */
}

.mega-next {
    right: 1.5rem;
}

/* Indicadores - Corregidos */
.mega-indicators {
    position: absolute;
    bottom: 1.5rem; /* CAMBIO: Posición más conservadora */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 20; /* CAMBIO: Z-index más alto */
}

.mega-dot {
    width: 50px; /* CAMBIO: Tamaño más conservador */
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.mega-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4); /* CAMBIO: Sombra más sutil */
}

.dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    transition: width 0.1s linear;
    width: 0;
}

.mega-dot.active .dot-progress {
    animation: progressFill 5s linear;
}

/* Progress bar - Corregida */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px; /* CAMBIO: Altura más sutil */
    background: rgba(255, 255, 255, 0.2);
    z-index: 15;
}

.progress-bar-mega {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    transition: width 0.1s linear;
}

/* Animaciones para ofertas especiales */
/* Animaciones reducidas para evitar distorsiones */
@keyframes shine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

@keyframes productFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Animaciones flotantes eliminadas para evitar distorsiones */
/*
@keyframes floatAround {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 1; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.8; }
    75% { transform: translateY(-30px) rotate(270deg); opacity: 1; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.6; }
}
*/

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Responsive específico para layout de tres columnas */
@media (max-width: 1200px) {
    .slide-content {
        grid-template-columns: 0.9fr 1fr 0.9fr;
        gap: 1rem;
    }
    
    .mega-image-container {
        width: 260px;
        height: 260px;
    }
    
    .product-details-mega {
        padding: 0.75rem;
    }
    
    .timer-unit {
        min-width: 40px;
        padding: 0.4rem 0.3rem;
    }
    
    .timer-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        text-align: center;
    }
    
    .product-info-mega {
        grid-column: 1;
        grid-row: 1;
        order: 1;
        padding: 1rem;
        text-align: center;
    }
    
    .product-visual-mega {
        grid-column: 1;
        grid-row: 2;
        order: 2;
    }
    
    .product-details-mega {
        grid-column: 1;
        grid-row: 3;
        order: 3;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }
    
    .mega-image-container {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .product-title-mega {
        font-size: 1.6rem;
    }
    
    .mega-actions {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    
    .btn-mega-primary,
    .btn-mega-secondary {
        width: auto;
        min-width: 150px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}
@media (max-width: 1024px) {
    .special-offers-section {
        padding: 2rem 0;
        min-height: 50vh; /* CAMBIO: Altura mínima reducida para tablets */
    }
    
    .mega-carousel {
        min-height: 500px; /* CAMBIO: Altura reducida */
    }
    
    .carousel-wrapper {
        min-height: 500px;
    }
    
    .mega-slide {
        min-height: 500px;
    }
    
    .offers-title {
        font-size: 2.5rem; /* CAMBIO: Tamaño ajustado */
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: 400px; /* CAMBIO: Altura mínima reducida */
        background: linear-gradient(135deg, #221102 20%, #723f05 50%, #b36d05 100%);
    }
    
    .mega-image-container {
        width: 280px;
        height: 280px;
        order: 1; /* CAMBIO: Imagen primero en móvil */
    }
    
    .product-info-mega {
        order: 2; /* CAMBIO: Info después en móvil */
        padding: 1.5rem;
    }
    
    .features-mega-subtitle {
        font-size: 1rem;
    }
    
    .feature-title-modern {
        font-size: 1.5rem;
    }
    
    .feature-description-modern {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .floating-shapes {
        display: none; /* Ocultar formas flotantes en móviles pequeños */
    }
    
    .icon-orbit {
        display: none; /* Simplificar en móviles */
    }

    
    .product-title-mega {
        font-size: 2rem;
    }
    
    .sale-price-mega,
    .current-price-mega {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .special-offers-section {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .mega-carousel {
        min-height: 500px; /* Aumentado para acomodar la imagen */
        border-radius: 15px;
    }
    
    .carousel-wrapper {
        min-height: 500px;
    }
    
    .mega-slide {
        min-height: 500px;
        padding: 1rem 0;
    }
    
    .slide-content {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        min-height: 400px;
        padding: 0;
    }
    
    /* Primera columna expandida en móvil con imagen */
    .product-info-mega {
        grid-column: 1;
        grid-row: 1;
        order: 1;
        padding: 1.5rem;
        text-align: center; /* Centrado para móvil */
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px 15px 0 0;
        margin: 0;
    }
    
    /* Mostrar imagen en móvil - entre info y detalles */
    .product-visual-mega {
        display: flex;
        grid-column: 1;
        grid-row: 2;
        order: 2;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.25);
        margin: 0;
    }
    
    .mega-image-container {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem auto;
    }
    
    .product-features {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }
    
    .feature-item {
        min-width: 60px;
        padding: 0.4rem;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
    }
    
    .feature-item i {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    /* Detalles expandidos */
    .product-details-mega {
        grid-column: 1;
        grid-row: 3;
        order: 3;
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0 0 15px 15px;
        margin: 0;
        width: 100%;
        max-width: none;
    }
    
    /* Ajustes de texto para móvil */
    .product-title-mega {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .product-description-mega {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        max-width: 100%;
        text-align: center;
    }
    
    .price-mega {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .sale-price-mega,
    .current-price-mega {
        font-size: 2.5rem;
    }
    
    .original-price-mega {
        font-size: 1.3rem;
    }
    
    .savings-mega {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Timer más compacto */
    .timer-digits {
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .timer-unit {
        min-width: 50px;
        padding: 0.6rem 0.4rem;
    }
    
    .timer-value {
        font-size: 1.3rem;
    }
    
    .timer-label-small {
        font-size: 0.6rem;
    }
    
    .timer-separator {
        font-size: 1.1rem;
        margin: 0 0.2rem;
    }
    
    /* Botones apilados verticalmente */
    .mega-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-mega-primary,
    .btn-mega-secondary {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* Stock indicator expandido */
    .stock-indicator {
        margin-top: 1rem;
    }
    
    .stock-bar {
        height: 8px;
        border-radius: 4px;
    }
    
    .stock-text {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        text-align: center;
    }
    
    /* Controles del carrusel ajustados */
    .mega-nav {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.25);
    }
    
    .mega-prev {
        left: 0.5rem;
    }
    
    .mega-next {
        right: 0.5rem;
    }
    
    /* Indicadores centrados */
    .mega-indicators {
        bottom: 1rem;
    }
    
    .mega-dot {
        width: 40px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .offers-header {
        padding: 1rem 0 1rem;
    }
    
    .offers-title {
        font-size: 2rem;
    }
    
    .offers-title i {
        margin: 0 0.5rem;
    }
    
    .mega-carousel {
        min-height: 450px;
        border-radius: 10px;
    }
    
    .carousel-wrapper {
        min-height: 450px;
    }
    
    .mega-slide {
        min-height: 450px;
        padding: 0.5rem 0;
    }
    
    .slide-content {
        padding: 0;
        min-height: 380px;
        gap: 0.75rem;
    }
    
    /* Primera columna aún más expandida */
    .product-info-mega {
        padding: 1rem;
        border-radius: 10px 10px 0 0;
    }
    
    /* Imagen más pequeña en móviles muy pequeños */
    .product-visual-mega {
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .mega-image-container {
        width: 160px;
        height: 160px;
    }
    
    .product-features {
        gap: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .feature-item {
        min-width: 50px;
        padding: 0.3rem;
        font-size: 0.65rem;
    }
    
    .feature-item i {
        font-size: 0.8rem;
    }
    
    .product-details-mega {
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }
    
    .product-title-mega {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .product-description-mega {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .sale-price-mega,
    .current-price-mega {
        font-size: 2rem;
    }
    
    .original-price-mega {
        font-size: 1.1rem;
    }
    
    .mega-badge {
        padding: 0.6rem 1.2rem;
        border-radius: 12px;
    }
    
    .discount-percent {
        font-size: 2rem;
    }
    
    .discount-text {
        font-size: 0.9rem;
    }
    
    .special-text {
        font-size: 1.3rem;
    }
    
    /* Timer ultra compacto */
    .timer-unit {
        min-width: 45px;
        padding: 0.5rem 0.3rem;
    }
    
    .timer-value {
        font-size: 1.1rem;
    }
    
    .timer-label-small {
        font-size: 0.55rem;
    }
    
    .timer-separator {
        font-size: 1rem;
        margin: 0 0.1rem;
    }
    
    /* Botones más compactos */
    .btn-mega-primary,
    .btn-mega-secondary {
        max-width: 280px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Stock bar más visible */
    .stock-bar {
        height: 6px;
    }
    
    .stock-text {
        font-size: 0.8rem;
    }
    
    /* Ocultar controles en pantallas muy pequeñas */
    .mega-nav {
        display: none;
    }
    
    /* Indicadores más pequeños */
    .mega-dot {
        width: 35px;
        height: 3px;
    }
    
    .mega-indicators {
        gap: 0.5rem;
    }
}

/* Acciones del navbar */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 1001;
}

.cart-wrapper,
.wishlist-wrapper {
    position: relative;
}

.cart-icon,
.wishlist-icon {
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.cart-icon:hover,
.wishlist-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Menú de usuario */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.75rem;
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.user-name {
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    min-width: 250px;
    padding: 1rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

.user-dropdown-menu.active,
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.user-info strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
}

.user-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Botones de autenticación - Versión compacta para móvil */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-login {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-login .btn-text {
    display: inline;
}

.btn-login .btn-icon {
    display: none;
}

/* Versión móvil - Solo ícono */
@media (max-width: 768px) {
    .btn-login {
        padding: 0.75rem;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
        gap: 0;
        font-size: 1.1rem;
    }
    
    .btn-login .btn-text {
        display: none;
    }
    
    .btn-login .btn-icon {
        display: inline;
    }
    
    .auth-buttons {
        gap: 0.5rem;
    }
}

.btn-register {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-primary);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Toggle móvil y botones alineados */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 45px;
    height: 45px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Asegurar que el botón login tenga el mismo tamaño que el toggle */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .btn-login {
        width: 45px;
        height: 45px;
        border-radius: 8px;
        padding: 0.5rem;
        font-size: 1.1rem;
    }
    
    .navbar-actions {
        align-items: center;
    }
}

/* Overlay para menú móvil */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   CORRECCIÓN: HERO SECTION
   ============================================= */

.hero {
    /* CAMBIO: Asegurar que el hero tenga posicionamiento correcto */
    position: relative;
    z-index: 1; /* CAMBIO: Z-index más bajo que ofertas */
    height: calc(100vh - 60px);
    min-height: 600px;
    background: linear-gradient(var(--gradient-hero), var(--gradient-hero)), 
                url('/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin: 0; /* CAMBIO: Eliminar margin negativo problemático */
    padding-top: 60px;
}

/* =============================================
   CORRECCIÓN: SECCIONES SIGUIENTES
   ============================================= */

/* CAMBIO: Asegurar que las secciones siguientes tengan el espaciado correcto */
.features-section {
    position: relative;
    z-index: 1;
    clear: both; /* CAMBIO: Limpiar flotaciones */
    margin-top: 0; /* CAMBIO: Sin margen superior */
    padding: 5rem 0;
}

.featured-products-section {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 0;
    padding: 5rem 0;
}

.classes-section {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 0;
    padding: 5rem 0;
}

.testimonials-section {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 0;
    padding: 5rem 0;
}

.cta-section {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 0;
    padding: 5rem 0;
}

/* =============================================
   REGLAS DE LIMPIEZA GENERAL
   ============================================= */

/* CAMBIO: Prevenir desbordamientos problemáticos */
body {
    overflow-x: hidden;
}

/* CAMBIO: Asegurar que el main-content tenga el flujo correcto */
.main-content {
    position: relative;
    z-index: 1;
    overflow-x: hidden; /* CAMBIO: Prevenir scroll horizontal */
}

/* CAMBIO: Reset de posicionamiento problemático */
.section {
    position: relative;
    clear: both;
    overflow-x: hidden;
}

/* =============================================
   CONTENIDO PRINCIPAL
   ============================================= */
.main-content {
    padding-top: 45px; /* Altura del header + margen reducida */
    min-height: calc(100vh - 45px);
    transition: var(--transition-medium);
}

/* Ajuste cuando el header se contrae al hacer scroll */
.header.scrolled + .nav-overlay + .flash-message ~ .main-content,
.header.scrolled ~ .main-content {
    padding-top: 35px;
}

/* Espaciado adicional para las secciones */
.section {
    padding: 5rem 0;
}

.section:first-child {
    padding-top: 3rem; /* Menos padding para la primera sección */
}

/* =============================================
   HERO SECTION - YA CORREGIDO ARRIBA
   ============================================= */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-medium);
    cursor: pointer;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-medium);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* =============================================
   SECCIONES PRINCIPALES
   ============================================= */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   CARRUSEL DE PRODUCTOS
   ============================================= */
.product-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem;
    position: relative;
}

.carousel-content {
    flex: 1;
    z-index: 2;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.carousel-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.carousel-price .original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.carousel-image {
    flex: 1;
    text-align: center;
}

.carousel-image img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 3;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* =============================================
   GRID DE PRODUCTOS
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-quick-view {
    padding: 0.75rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-quick-view:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* =============================================
   CLASES GRUPALES
   ============================================= */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.class-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.class-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    position: relative;
}

.class-time {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.class-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.class-instructor {
    font-size: 0.9rem;
    opacity: 0.9;
}

.class-body {
    padding: 1.5rem;
}

.class-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.class-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.class-duration {
    color: var(--primary-color);
    font-weight: 600;
}

.class-capacity {
    color: var(--text-light);
}

.btn-book-class {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-book-class:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* =============================================
   ESTADÍSTICAS
   ============================================= */
.stats-section {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    position: relative;
    transition: var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: var(--font-accent);
}

.footer-section p,
.footer-section li {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   ANIMACIONES
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .navbar-search {
        display: none;
    }
    
    .main-content {
        padding-top: 45px;
    }
    
    .hero {
        height: calc(100vh - 45px);
        min-height: 500px;
        margin-top: -45px;
        padding-top: 45px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--gradient-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding: 4rem 2rem 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-heavy);
        transition: var(--transition-medium);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 15px;
        font-size: 1rem;
        justify-content: flex-start;
    }
    
    .nav-link i {
        font-size: 1.1rem;
        width: 20px;
    }
    
    .navbar-actions {
        gap: 0.5rem;
        align-items: center;
    }
    
    .cart-icon,
    .wishlist-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .user-trigger {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .user-name {
        display: none;
    }
    
    /* Botón login del mismo tamaño que el toggle */
    .btn-login {
        width: 45px;
        height: 45px;
        border-radius: 8px;
        padding: 0.5rem;
        font-size: 1.1rem;
        justify-content: center;
        gap: 0;
    }
    
    .btn-login .btn-text {
        display: none;
    }
    
    .btn-login .btn-icon {
        display: inline;
    }
    
    .auth-buttons {
        flex-direction: row;
        gap: 0.5rem;
        width: auto;
        margin-top: 0;
    }
    
    .btn-login,
    .btn-register {
        width: auto;
        justify-content: center;
        padding: 0.5rem;
        font-size: 1.1rem;
        min-width: 45px;
        height: 45px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section:first-child {
        padding-top: 2rem;
    }
    
    .hero {
        height: 80vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .carousel-slide {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .products-grid,
    .classes-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        padding-top: 40px; /* Aún menos padding en móviles pequeños */
    }
    
    .navbar {
        height: 40px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero {
        height: calc(100vh - 40px);
        min-height: 450px;
        margin-top: -40px;
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        width: 280px;
        padding: 3.5rem 1.5rem 2rem;
    }
    
    .navbar-actions {
        gap: 0.25rem;
    }
    
    .cart-icon,
    .wishlist-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .user-trigger {
        padding: 0.4rem;
    }
    
    .user-avatar,
    .user-avatar-placeholder {
        width: 28px;
        height: 28px;
    }
    
    /* Botón login compacto en móviles pequeños */
    .btn-login {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .class-card,
    .product-card {
        margin: 0 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* =============================================
   LOADING Y ESTADOS
   ============================================= */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* =============================================
   EFECTOS ESPECIALES
   ============================================= */
/* Efectos especiales simplificados para evitar distorsiones */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-effect {
    text-shadow: 0 0 5px var(--primary-color),
                 0 0 10px var(--primary-color);
    /* Reducido el efecto neon */
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Efectos hover avanzados */
.hover-lift {
    transition: var(--transition-medium);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.hover-scale {
    transition: var(--transition-fast);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}