/* ==========================================
   QuillaStore - CSS Principal Mejorado
   Inspirado en MercadoLibre, Hiraoka, Juntoz, Linio
   ========================================== */

/* Variables migradas a variables.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HERO SLIDER - Sistema Limpio Sin Opacidades NI SOMBRAS
   ========================================== */
.hero-slider {
    position: relative;
    margin-bottom: 40px;
    min-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    /* TODAS las sombras eliminadas para slider completamente limpio */
    box-shadow: none !important;
    /* Fondo gradiente moderno como fallback para evitar blancos */
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 50%, 
        #f093fb 100%);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    /* Asegurar que no haya sombras heredadas */
    box-shadow: none !important;
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    /* Para slider infinito: iniciar en posición del primer slide real (índice 1) */
    transform: translateX(-100%);
}

/* Deshabilitar transición durante el reposicionamiento infinito */
.slider-track.no-transition {
    transition: none !important;
}

.slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
    min-height: 400px;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Importante para slider infinito */
    /* Fondo gradiente moderno para cada slide como fallback */
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.8) 0%, 
        rgba(118, 75, 162, 0.8) 50%, 
        rgba(240, 147, 251, 0.8) 100%);
}

.slide.active {
    opacity: 1;
}

/* Slides clones para efecto infinito - heredan estilos de .slide */

/* Sistema de Imágenes Optimizado - CARGA INSTANTÁNEA */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease-out;
    z-index: 1;
    /* Fondo neutral muy sutil para carga rápida */
    background-color: #f8f9fa;
    /* Solo mostrar gradiente si NO HAY imagen definida */
}

/* Solo mostrar gradiente cuando NO hay background-image definido */
.slide-bg:not([style*="background-image"]) {
    background-image: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 50%, 
        rgba(240, 147, 251, 0.3) 100%);
}

.slide.active .slide-bg {
    transform: scale(1.02);
}

/* Estados de carga optimizados - MÍNIMA INTERFERENCIA */
.slide-bg[data-bg]:not([style*="background-image"]) {
    /* Color neutral muy sutil mientras carga */
    background-color: #f5f5f5;
    animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% {
        background: linear-gradient(135deg, 
            #667eea 0%, 
            #764ba2 50%, 
            #f093fb 100%);
    }
    100% {
        background: linear-gradient(135deg, 
            #764ba2 0%, 
            #f093fb 50%, 
            #667eea 100%);
    }
}

/* Error de imagen - Fallback elegante (no blanco) */
.slide-bg.image-error {
    background: linear-gradient(135deg, 
        #ff6b6b 0%, 
        #ee5a6f 50%, 
        #ce6db0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg.image-error::before {
    content: '🖼️';
    font-size: 4rem;
    opacity: 0.3;
    display: block !important;
}

/* Desktop: Mostrar solo imagen desktop */
.slide-bg-desktop {
    display: block;
}

.slide-bg-mobile {
    display: none;
}

/* Mobile y Tablet: Mostrar solo imagen mobile */
@media (max-width: 767px) {
    .slide-bg-desktop {
        display: none;
    }
    
    .slide-bg-mobile {
        display: block;
    }
    
    .hero-slider {
        min-height: 320px;
    }
    
    .slide {
        min-height: 320px;
    }
}

/* ELIMINADO: Overlay que opacaba las imágenes */
/* Asegurar que no haya pseudo-elementos con sombras */
.hero-slider::before,
.hero-slider::after,
.slider-container::before,
.slider-container::after,
.slide::before,
.slide::after {
    display: none !important;
}

.slide .container {
    position: relative;
    z-index: 3;
    padding: 60px 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .slide .container {
        padding: 40px 20px;
    }
}

.hero-content {
    max-width: 300px;
    text-align: center;
    width: 100%;
    /* Contenedor completamente transparente - sin fondo */
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    transform: none;
    animation: none;
    /* Posicionado discretamente en esquina inferior derecha */
    position: absolute;
    bottom: 30px;
    right: 30px;
    left: auto;
    transform: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 30px 20px;
        margin: 0 15px;
    }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.1;
    /* Efecto moderno de aparición */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.98);
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
    /* Efecto moderno de aparición */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

@media (max-width: 767px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* Responsive heights for different devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-slider,
    .slide {
        min-height: 360px;
    }
}

@media (min-width: 1025px) {
    .hero-slider,
    .slide {
        min-height: 500px;
    }
}

@media (min-width: 1440px) {
    .hero-slider,
    .slide {
        min-height: 600px;
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 767px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* ==========================================
   BOTONES DEL SLIDER - Organizados y Limpios
   ========================================== */

/* Botón principal del slider - DISCRETO y NO INTRUSIVO */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    min-width: 120px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* Botón discreto que no obstaculiza */
    opacity: 0.85;
    transform: scale(0.9);
    animation: fadeInDelayed 1s ease-out 2s both;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: transparent !important;
    color: white !important;
    border-color: white !important;
}

.btn-secondary:hover {
    background: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Botones de navegación laterales - ULTRA MODERNOS */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    backdrop-filter: blur(20px);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
    /* Efecto glassmorphism moderno */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    opacity: 1;
    color: #ff6b6b;
}

.prev-btn {
    left: 30px;
    animation: slideInLeft 0.6s ease-out 1.2s both;
}

.next-btn {
    right: 30px;
    animation: slideInRight 0.6s ease-out 1.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-30px);
    }
    to {
        opacity: 0.8;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 0.8;
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 767px) {
    .prev-btn, .next-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
}

/* Controles centrales - ORGANIZADOS */
.slider-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out 1.5s both;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dot:hover::before {
    width: 8px;
    height: 8px;
}

.dot.active {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active::before {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   SECCIONES PRINCIPALES
   ========================================== */
.featured-categories,
.featured-stores,
.featured-products {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==========================================
   CATEGORÍAS DESTACADAS
   ========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.category-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.category-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 131, 250, 0.8), rgba(0, 166, 80, 0.6));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-img::before {
    opacity: 1;
}
.slide.active .slide-bg {
    transform: scale(1);
}

/* Overlay superior para mejorar legibilidad en textos */
.slide::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(2,6,23,0.50) 0%, rgba(2,6,23,0.35) 40%, rgba(2,6,23,0.25) 100%);
    z-index:1;
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-info a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   TIENDAS DESTACADAS
   ========================================== */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.store-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.store-logo {
    text-align: center;
    margin-bottom: 20px;
}

.store-logo img {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}

.store-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    text-align: center;
}

.store-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.5;
}

.store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.store-tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.store-card:hover .store-tag {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.store-info .btn {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================
   PRODUCTOS DESTACADOS
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.product-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-tag.nuevo {
    background: var(--secondary-color);
}

.product-tag.destacado {
    background: var(--primary-color);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
    min-height: 2.6em;
}

.product-store {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.add-to-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    margin: 50px 0;
    border-radius: var(--border-radius);
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-light);
}

.newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-width: 150px;
}

.newsletter button:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInDelayed {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.85;
        transform: scale(0.9);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        text-align: center;
    }
    
    .btn {
        min-width: 140px;
        padding: 12px 24px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .categories-grid,
    .stores-grid,
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }
    
    .stores-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .newsletter form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter input[type="email"] {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .slide .container {
        padding: 50px 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .add-to-cart {
        width: 100%;
    }
}

/* ==========================================
   ESTADOS DE CARGA Y HOVER MEJORADOS
   ========================================== */
.category-card:hover,
.store-card:hover,
.product-card:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Efecto de loading para imágenes */
.category-img,
.product-img {
    background-color: var(--bg-light);
    position: relative;
}

.category-img::after,
.product-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0.3;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   FOOTER (Público)
   ========================================== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1224 100%);
    color: #e5e7eb;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer .container { max-width: var(--max-width); }

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-logo { display:block; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }

.footer-social { display:flex; gap:10px; margin-top:10px; }
.footer-social .social-icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#0f172a; background:#e2e8f0; transition:transform .25s ease, background .25s ease; text-decoration:none; }
.footer-social .social-icon:hover { transform: translateY(-3px); background:#f8fafc; }

.footer-links { list-style:none; display:grid; gap:8px; }
.footer-links a { color:#cbd5e1; text-decoration:none; transition: color .25s ease; position:relative; }
.footer-links a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:#60a5fa; transition: width .25s ease; }
.footer-links a:hover { color:#ffffff; }
.footer-links a:hover::after { width:100%; }

.footer-contact { list-style:none; display:grid; gap:10px; padding-left:0; }
.footer-contact .contact-item { display:flex; align-items:center; gap:10px; color:#cbd5e1; }
.footer-contact a { color:#93c5fd; text-decoration:none; }
.footer-contact a:hover { text-decoration:underline; }

/* Newsletter (del footer) */
.newsletter-form { display:flex; gap:10px; flex-wrap:wrap; }
.newsletter-input { flex:1; min-width:220px; padding:12px 14px; border-radius:8px; border:1px solid #334155; background:#0b1220; color:#e5e7eb; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
.newsletter-input::placeholder { color:#94a3b8; }
.newsletter-button { background:#3b82f6; color:#fff; border:none; padding:12px 18px; border-radius:8px; font-weight:600; cursor:pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.newsletter-button:hover { background:#2563eb; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(37,99,235,.8); }

.footer-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(148,163,184,.2); text-align:center; color:#94a3b8; font-size:.95rem; }

/* Efecto de revelado */
.footer-section { opacity:0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.footer-section.reveal-in { opacity:1; transform: translateY(0); }

@media (max-width: 992px){
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
    .footer-content { grid-template-columns: 1fr; }
}

/* ==========================================
   SLIDER - Efectos finales y optimizaciones
   ========================================== */

/* Preferencias de usuario: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .slider-track,
    .slide,
    .slide-bg {
        transition: none !important;
        animation: none !important;
    }
}

/* Animaciones para entrada de contenido */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ocultar controles por defecto hasta que JavaScript se active */
.prev-btn, .next-btn {
    display: none;
}

/* Estados de carga y mejoras de rendimiento */
.slide-bg[data-bg]:not([style*="background-image"]) {
    background-color: #f8f9fa;
}

/* Loader mínimo y elegante solo durante carga */
.slide-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Solo mostrar loader si realmente está cargando */
.slide-bg[data-bg]:not([style*="background-image"])::after {
    opacity: 1;
}

/* Ocultar loader cuando imagen está cargada */
.slide-bg[style*="background-image"]::after {
    opacity: 0 !important;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================
   DISEÑO RESPONSIVO ULTRA MODERNO
   ========================================== */
@media screen and (max-width: 768px) {
    .slider-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0;
        max-width: 280px;
        backdrop-filter: none;
        bottom: 20px;
        right: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .prev-btn, .next-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media screen and (max-width: 480px) {
    .slider-container {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content {
        padding: 0;
        max-width: 250px;
        bottom: 15px;
        right: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}