/* --- VARIABLES --- */
:root {
    --black: #050505; --dark: #111; --gray: #757575;
    --light: #f5f5f7; --white: #ffffff; --accent: #000;
    --font-heading: 'Anton', sans-serif; --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* RESET TOTAL */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body); background-color: var(--light); color: var(--black);
    overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* --- HEADER --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: 80px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo svg { width: 60px; transition: 0.3s; }
.logo:hover svg { transform: scale(1.1); }
.desktop-nav ul { display: flex; gap: 30px; }
.desktop-nav li { font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; position: relative; }
.desktop-nav li::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--black); transition: 0.3s; }
.desktop-nav li:hover::after { width: 100%; }
.header-right { display: flex; gap: 20px; align-items: center; }
.icon-btn { font-size: 1.2rem; cursor: pointer; position: relative; }
.search-box { display: flex; align-items: center; gap: 5px; }
#search-input { width: 0; opacity: 0; transition: 0.4s; border: none; border-bottom: 1px solid var(--black); background: transparent; outline: none; padding: 5px; }
#search-input.active { width: 150px; opacity: 1; }
#contador-carrito { position: absolute; top: -5px; right: -8px; background: var(--black); color: white; font-size: 10px; padding: 2px 5px; border-radius: 50%; font-weight: bold; }
.menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- EFECTOS --- */
.glass-effect { background: var(--glass-bg); backdrop-filter: blur(12px); border: var(--glass-border); }
.btn-primary { background: var(--black); color: var(--white); padding: 14px 30px; border-radius: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: var(--black); border: 2px solid var(--black); padding: 12px 30px; border-radius: 30px; font-weight: 700; text-transform: uppercase; transition: 0.3s; }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* --- VISTAS --- */
.view { display: none; width: 100%; animation: fadeIn 0.5s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- HOME --- */
.hero { min-height: 85vh; display: flex; align-items: center; justify-content: space-between; padding: 20px 5%; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); position: relative; overflow: hidden; }
.hero-content { z-index: 2; width: 50%; }
.hero-content h1 { font-family: var(--font-heading); font-size: 6rem; line-height: 0.9; text-transform: uppercase; margin-bottom: 20px; opacity: 0; animation: slideUp 0.8s forwards 0.3s; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0; animation: slideUp 0.8s forwards 0.5s; }
.hero-btns { display: flex; gap: 15px; opacity: 0; animation: slideUp 0.8s forwards 0.7s; }
.hero-image-wrapper { width: 50%; display: flex; justify-content: center; z-index: 1; }
.floating-shoe { width: 90%; transform: rotate(-15deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-15deg); } 50% { transform: translateY(-20px) rotate(-10deg); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.benefits-bar { display: flex; justify-content: space-around; padding: 40px 5%; background: var(--white); border-bottom: 1px solid #eee; }
.benefit { display: flex; align-items: center; gap: 15px; }
.benefit h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.benefit p { font-size: 0.9rem; color: var(--gray); }

.section-container { padding: 80px 5%; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.section-header h2, .section-container h2 { font-family: var(--font-heading); font-size: 3rem; text-transform: uppercase; }
.link-btn { background: none; text-decoration: underline; font-weight: 600; font-size: 1rem; }
.trending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* Banner principal con el texto más grande y fuerte */
.big-banner { 
    height: 500px; 
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #000000; 
    font-size: 1.4rem; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.jordan-banner { 
    background-image: url('imagenes/air-jordan-1-mid.jpg');
    
} 

/* Título con negro fuerte y sombra para legibilidad */
.banner-content h2 { 
    font-family: var(--font-heading); 
    font-size: 5rem; 
    margin-bottom: 5px; /* Reducimos este para que el párrafo esté cerca del h2 */
    color: #000; 
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.6);
}

/* ESPACIADO AQUÍ: Agregamos margen al párrafo para separar el botón */
.banner-content p {
    margin-bottom: 40px; /* Ajustá este valor (40px) para separar más o menos el botón */
    font-weight: 600;    /* Un poco más de grosor para que no se pierda */
}

.btn-white { 
    background: white; 
    color: black; 
    padding: 15px 40px; 
    border-radius: 30px; 
    font-weight: 700; 
    transition: 0.3s; 
    display: inline-block; /* Asegura que el margen del párrafo lo afecte correctamente */
    text-decoration: none;
}

.btn-white:hover { 
    background: #ffea00; 
    transform: scale(1.05); /* Un pequeño efecto de escala al pasar el mouse */
}

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.cat-card {
    height: 450px; /* Definí una altura fija para ambas */
    overflow: hidden;
    position: relative;
    border-radius: 15px; /* Para que mantengan los bordes redondeados de tu diseño */
    cursor: pointer;
}
.cat-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esta es la clave: recorta la imagen para que llene el espacio sin deformarse */
    object-position: center; /* Centra la imagen para que no se corten las caras */
    transition: transform 0.5s ease;
}
.cat-card:hover img {
    transform: scale(1.1);
}
.cat-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.cat-overlay h3 { color: white; font-family: var(--font-heading); font-size: 2.5rem; }

.newsletter-section { padding: 80px 5%; display: flex; justify-content: center; background: #111; }
.glass-box { background: rgba(255,255,255,0.1); padding: 50px; border-radius: 20px; text-align: center; color: white; width: 100%; max-width: 700px; border: 1px solid rgba(255,255,255,0.2); }
.glass-box h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 10px; }
.input-group { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.input-group input { padding: 15px; border-radius: 30px; border: none; width: 60%; }
.btn-black { background: white; color: black; padding: 15px 30px; border-radius: 30px; font-weight: 700; }

/* --- SHOP --- */
.shop-header { padding: 60px 5% 40px; text-align: center; }
#shop-title { font-family: var(--font-heading); font-size: 4rem; text-transform: uppercase; }
.filters { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.filter-chip { background: white; border: 1px solid #ddd; padding: 8px 20px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.filter-chip.active, .filter-chip:hover { background: var(--black); color: white; border-color: var(--black); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 0 5% 80px; }
.producto { background: white; border-radius: 20px; padding: 15px; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow-soft); }
.producto:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.img-container { background: #f6f6f6; border-radius: 15px; height: 300px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; overflow: hidden; }
.producto img { width: 90%; mix-blend-mode: multiply; transition: 0.3s; }
.producto:hover img { transform: scale(1.08); }
.info-producto h3 { font-weight: 700; font-size: 1.1rem; }
.info-producto .precio { font-weight: 800; font-size: 1.2rem; margin-top: 5px; display: block; }

/* --- FOOTER --- */
footer { background: var(--black); color: #888; padding: 60px 5% 20px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-brand h2 { color: white; font-family: var(--font-heading); font-size: 3rem; }
.footer-links { display: flex; gap: 60px; }
.footer-links h4 { color: white; margin-bottom: 20px; text-transform: uppercase; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.8rem; }

/* --- VIDEO MODAL FIX (16:9 RESPONSIVE) --- */
.video-container {
    width: 90%;
    max-width: 1000px;
    background: black;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease-out;
}

/* El truco del padding para mantener aspecto 16:9 */
#video-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

#video-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Botón cerrar video arriba */
.close-video-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3000;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    line-height: 1;
}
.close-video-btn:hover { background: white; color: black; transform: rotate(90deg); }

/* --- COMPONENTES --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s; }
.loader-hidden { opacity: 0; visibility: hidden; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-content { width: 90%; max-width: 900px; height: auto; border-radius: 15px; overflow: hidden; position: relative; background: white; animation: slideUp 0.3s; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-layout { display: flex; }
.modal-image-col { 
    width: 50%; 
    background: #f6f6f6; 
    display: flex; 
    flex-direction: column; /* Alinea los elementos uno arriba del otro */
    align-items: center; 
    justify-content: center;
    padding: 30px; 
    gap: 20px;
}.modal-image-col img { width: 90%; mix-blend-mode: multiply; }
.modal-info-col { width: 50%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; z-index: 10; }
.badge { background: #eee; padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: 700; align-self: start; }
.big-price { font-size: 2rem; font-weight: 800; margin: 15px 0; display: block; }
.sizes-grid { display: flex; gap: 10px; margin: 20px 0; }
.sizes-grid span { border: 1px solid #ddd; padding: 10px 15px; border-radius: 8px; cursor: pointer; }
.sizes-grid span:hover { background: black; color: white; border-color: black; }
.btn-block { width: 100%; }

.sidebar { position: fixed; top: 0; right: 0; width: 350px; height: 100%; background: white; z-index: 3000; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transform: translateX(100%); transition: 0.3s; display: flex; flex-direction: column; }
.sidebar.active { transform: translateX(0); }
.sidebar-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); font-size: 1.5rem; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 20px; }
.sidebar-footer { padding: 20px; background: #f9f9f9; border-top: 1px solid #eee; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 15px; font-size: 1.2rem; }
.cart-item { display: flex; gap: 15px; margin-bottom: 20px; }
.cart-item img { width: 70px; border-radius: 8px; background: #eee; }

.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 2000; display: none; flex-direction: column; justify-content: center; align-items: center; }
.mobile-menu.active { display: flex; }
.mobile-links li { font-size: 2rem; margin: 20px 0; font-family: var(--font-heading); text-transform: uppercase; cursor: pointer; }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; }

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-btn { display: block; }
    .hero { flex-direction: column; text-align: center; height: auto; padding-top: 100px; }
    .hero-img-wrapper { width: 100%; margin-top: 20px; }
    .hero-content { width: 100%; }
    .hero-content h1 { font-size: 3rem; }
    .category-grid { grid-template-columns: 1fr; }
    .benefits-bar { flex-direction: column; gap: 20px; text-align: center; }
    .modal-layout { flex-direction: column; }
    .modal-image-col, .modal-info-col { width: 100%; }
    .sidebar { width: 100%; }
    /* Ajuste video móvil */
    .video-container { width: 95%; }
    .close-video-btn { top: -45px; right: 0; }
}


/* Imagen principal */
#modal-img-src { 
    width: 100%;
    max-height: 360px; /* Reducimos un poco para dar espacio a las fotos de abajo */
    object-fit: contain;
    mix-blend-mode: multiply; 
}

/* Contenedor de miniaturas (ABAJO) */
.thumb-container {
    display: flex;
    flex-direction: row; 
    gap: 10px;            /* Menos espacio entre botoncitos */
    justify-content: center;
    width: 100%;
    margin-top: 10px;    /* Un poco de aire respecto a la imagen grande */
}
/* Estilo de las miniaturas ajustado */
.thumb-img {
    width: 45px;          /* Bajamos de 50px a 45px para que sean más discretos */
    height: 45px;
    object-fit: contain;  /* Para que la zapatilla se vea entera siempre */
    background: #fcfbfb;  /* Fondo gris muy clarito */
    border-radius: 4px;   /* Bordes un toque menos redondeados para que parezca más "botón" */
    cursor: pointer;
    border: 1.5px solid transparent; /* Borde un poco más fino */
    transition: 0.2s;
    opacity: 0.8;
    padding: 2px;         /* Espacio interno para que la zapatilla no toque los bordes */
}

/* Estado activo o cuando pasás el mouse */
.thumb-img:hover, .thumb-img.active {
    opacity: 1;
    border-color: #000;
    background: #fff;     /* Fondo blanco para que resalte la que elegiste */
    transform: scale(1.05); /* Un mini efecto de aumento */
}