/* =============================================================
   MÓDULO: OUTLET (TEMA PREMIUM DARK & ROJO VIBRANTE)
   ============================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Lato', sans-serif;
    background-color: #050505; 
    color: #e5e5e5; 
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cinzel', serif; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- HEADER: OUTLET --- */
.brand-intro {
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
    padding: 6rem 2rem; 
    text-align: center; 
    position: relative; 
    border-bottom: 2px solid #E63946;
    overflow: hidden;
}

/* Efecto de rayas diagonales sutiles en el fondo */
.brand-intro::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(230, 57, 70, 0.02),
        rgba(230, 57, 70, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
}

.brand-intro-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }

.texto-outlet {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #E63946;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.desc-outlet {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ccc;
}
.desc-outlet strong { color: #E63946; }

/* --- CONTROLES Y CATÁLOGO --- */
.section-padding { padding: 4rem 5%; max-width: 1400px; margin: 0 auto; }
.catalog-controls { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.catalog-controls input, .catalog-controls select {
    background: #111; 
    border: 1px solid #333; 
    color: #fff;
    border-radius: 4px; 
    padding: 12px 20px; 
    outline: none; 
    transition: 0.3s; 
    font-family: 'Lato', sans-serif;
    text-transform: uppercase; 
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.catalog-controls input:focus, .catalog-controls select:focus { 
    border-color: #E63946; 
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3); 
}

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem; }

/* --- TARJETAS DE PRODUCTO OUTLET --- */
.product-card {
    background: #0f0f0f; 
    border: 1px solid #222; 
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8); 
    transition: all 0.3s ease;
    overflow: hidden; 
    text-align: center; 
    padding: 1.5rem; 
    cursor: pointer;
    position: relative;
    /* FIX CRÍTICO: Forzamos estructura flexible interna */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Etiqueta de SALE en las tarjetas */
.product-card::after {
    content: 'OFERTA';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #E63946;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 5px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.product-card:hover { 
    transform: translateY(-8px); 
    border-color: #E63946; 
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.15); 
}

.product-card img { width: 100%; height: 250px; object-fit: contain; margin-bottom: 1rem; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
.product-card h4 { color: #fff; font-weight: 700; margin: 10px 0 5px 0; font-size: 1.1rem; }
.product-card .price { color: #E63946; font-size: 1.4rem; font-weight: 800; }
.category-tag { color: #888; background: #1a1a1a; padding: 4px 12px; border-radius: 2px; font-size: 0.75rem; letter-spacing: 1px; display: inline-block; margin-bottom: 5px; text-transform: uppercase; border: 1px solid #333; }

/* --- MODAL (Adaptado al Outlet) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.9); 
    /* FIX: Scroll vertical fluido */
    align-items: flex-start; 
    justify-content: center; 
    overflow-y: auto; 
    padding: 40px 0;
}
.modal-content {
    background: #111; 
    border: 1px solid #E63946; 
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.2); 
    color: #e5e5e5;
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    width: 92%; 
    max-width: 420px; 
    padding: 2.5rem 1.5rem 1.5rem 1.5rem; 
    /* FIX: Asegura que empiece desde arriba */
    margin: 0 auto;
}
.close-btn { position: absolute; top: 5px; right: 15px; font-size: 2.5rem; color: #666; cursor: pointer; transition: 0.3s; line-height: 1;}
.close-btn:hover { color: #E63946; }
.galeria-container { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; width: 100%; }
.modal-content img { width: 100%; height: auto; max-height: 250px; object-fit: contain; }

.nav-btn { background: rgba(230, 57, 70, 0.1); color: #E63946; border: 1px solid #E63946; border-radius: 4px; padding: 10px; font-size: 1rem; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; transition: 0.3s; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: #E63946; color: #fff; }
.prev { left: 0; } .next { right: 0; }

#modal-titulo { color: #fff; font-size: 1.3rem; margin-bottom: 5px; text-transform: uppercase; font-family: 'Cinzel', serif; }
#modal-precio { color: #E63946 !important; font-size: 1.6rem !important; margin: 0 0 10px 0 !important; font-weight: 800; }
#modal-descripcion { color: #aaa; border-top: 1px dashed #333; border-bottom: 1px dashed #333; padding: 10px 0 !important; font-size: 0.9rem !important; line-height: 1.5 !important; max-height: 80px; overflow-y: auto;}

/* Scrollbar del modal */
#modal-descripcion::-webkit-scrollbar { width: 4px; }
#modal-descripcion::-webkit-scrollbar-thumb { background: #E63946; border-radius: 2px; }

.privacy-wrapper { margin: 5px 0 !important; color: #888 !important; font-size: 0.8rem !important; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.privacy-wrapper a { color: #E63946 !important; text-decoration: none; font-weight: bold; }
.privacy-wrapper input[type="checkbox"] { accent-color: #E63946; cursor: pointer; }

/* Botón de Whatsapp del Modal basado en tu diseño */
.btn-llamada-doble {
    background: transparent; color: #E63946; border: 2px solid #E63946; 
    border-radius: 4px; padding: 12px !important; margin-top: 15px !important; 
    transition: 0.3s ease; display: flex; flex-direction: column; align-items: center; 
    width: 100%; text-transform: uppercase; font-weight: bold; letter-spacing: 1px;
}
.btn-llamada-doble:hover { background: #E63946; color: #fff; box-shadow: 0 0 15px rgba(230, 57, 70, 0.4); }

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .texto-outlet { font-size: 2.5rem; letter-spacing: 4px; }
    .catalog-controls { flex-direction: column; align-items: stretch; }
    .modal { padding: 20px 0; }
    .modal-content { padding: 2rem 1rem 1rem 1rem; width: 95%; margin: 0 auto; }
}