/* ================= VARIABLES Y RESET ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Oswald:wght@500;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
body { 
  font-family:'Inter', sans-serif; 
  background: radial-gradient(circle at top, #14141a 0%, #050505 100%); 
  color:#e0e0e0; 
  line-height:1.6; 
  min-height: 100vh;
  /* [NUEVO] Evita que la página haga scroll horizontal si algo se sale de su caja */
  overflow-x: hidden; 
}

/* [NUEVO] Regla de oro para imágenes responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, .logo { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* [MODIFICADO] Aseguramos que el contenedor sea fluido */
.container { width: 100%; max-width:1200px; margin:0 auto; padding:0 20px; }

header { 
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(12px); 
  position:fixed; 
  width:100%; 
  top:0; 
  z-index:1000; 
  padding:15px 0; 
  border-bottom:1px solid rgba(255, 255, 255, 0.05); 
}
header .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; }

.logo { font-size:2.2rem; font-weight:700; color: white; text-decoration: none; }
.logo span { color:#ff3366; text-shadow: 0 0 10px rgba(255, 51, 102, 0.4); }

nav ul { display:flex; list-style:none; }
nav a { color:#aaa; text-decoration:none; margin-left:25px; font-weight:600; font-size: 0.95rem; text-transform: uppercase; transition:color .3s; }
nav a:hover, nav a.active { color:#ff3366; text-shadow: 0 0 8px rgba(255, 51, 102, 0.5); }

.dropdown { position:relative; }
.dropdown-menu { display:none; position:absolute; background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(10px); min-width:180px; top:100%; left:0; border:1px solid rgba(255, 255, 255, 0.1); border-radius:12px; padding:10px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.dropdown:hover .dropdown-menu { display:block; animation: fadeIn 0.3s ease; }
.dropdown-menu li a { display:block; padding:12px 20px; margin:0; border-bottom: 1px solid rgba(255,255,255,0.05); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* [MODIFICADO] Gap ajustado para evitar amontonamiento */
.header-right { display:flex; align-items:center; gap:15px; }
.search-bar { position:relative; }
/* [MODIFICADO] Cambiado width estricto a max-width para que se reduzca si es necesario */
.search-bar input { padding:12px 40px 12px 20px; border-radius:50px; border:1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color:white; width: 100%; max-width:240px; font-size:1rem; font-family: 'Inter', sans-serif; transition: all 0.3s ease; }
.search-bar input:focus { background: rgba(255, 255, 255, 0.08); border-color: #ff3366; outline: none; box-shadow: 0 0 10px rgba(255, 51, 102, 0.2); }
.search-bar i { position:absolute; right:15px; top:50%; transform:translateY(-50%); color:#888; }

.cart-icon { font-size:1.5rem; cursor:pointer; position:relative; transition: transform 0.3s; }
.cart-icon:hover { transform: scale(1.1); color: #ff3366; }
.cart-count { position:absolute; top:-8px; right:-10px; background:#ff3366; color:white; font-size:0.75rem; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow: 0 0 10px rgba(255, 51, 102, 0.5); font-weight: bold; }

/* ================= INICIO (HERO A DOS COLUMNAS) ================= */
.hero { 
  height:90vh; 
  background:linear-gradient(rgba(5,5,5,0.7), rgba(5,5,5,0.9)), url('images/hero-bg.jpg') center/cover; 
  display:flex; 
  align-items:center; 
  position: relative;
  padding-top: 100px;
}

.hero-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero h1 { font-size:5.5rem; margin-bottom:15px; color:#fff; line-height: 1.1; text-shadow: 0 0 20px rgba(255, 51, 102, 0.3); }
.hero h1 span { color:#ff3366; }
.hero p { font-size:1.3rem; margin-bottom:25px; color:#bbb; font-weight: 300; }

.promo-highlight {
  font-size: 1.1rem !important;
  color: #fff;
  background: rgba(255, 51, 102, 0.15);
  padding: 8px 20px;
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 25px !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero .btn { display: inline-block; }

.hero-image-discount {
  flex: 1;
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

.hero-image-discount img {
  max-width: 90%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(255,51,102,0.2);
  animation: heartBeat 4s infinite;
}

@keyframes heartBeat {
  0% { transform: scale(1) translateY(0); box-shadow: 0 15px 50px rgba(255,51,102,0.2); }
  50% { transform: scale(1.02) translateY(-10px); box-shadow: 0 20px 60px rgba(255,51,102,0.4); }
  100% { transform: scale(1) translateY(0); box-shadow: 0 15px 50px rgba(255,51,102,0.2); }
}

/* ================= SECCIONES ================= */
.new-drop { background: transparent; padding:100px 0; text-align:center; }
.new-drop h2 { font-size:3.5rem; color:#fff; margin-bottom:15px; }
.drop-content p { font-size:1.2rem; margin-bottom:40px; color: #aaa; }

.genres { padding:100px 0; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.genres h2 { text-align:center; font-size:3.5rem; margin-bottom:60px; color:#fff; }
.genres-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:30px; }
.genre-card { height:320px; background-size:cover; background-position:center; border-radius:20px; position:relative; text-decoration:none; overflow: hidden; transition:transform .4s; }
.genre-card::after { content:''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); transition: opacity 0.4s; }
.genre-card:hover { transform:scale(1.04); box-shadow: 0 15px 40px rgba(255, 51, 102, 0.3); }
.genre-overlay { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; padding-bottom: 30px; font-size:2.2rem; font-weight:700; font-family: 'Oswald', sans-serif; color:white; text-transform: uppercase; letter-spacing: 2px; z-index: 2; transition:all .4s; }
.genre-card:hover .genre-overlay { padding-bottom: 45px; color:#ff3366; }

/* ================= PRODUCTOS ================= */
.products { padding:100px 0; }
.products h2 { text-align:center; font-size:3.5rem; margin-bottom:40px; color:#fff; }
.filters { margin-bottom:60px; text-align:center; }
/* [MODIFICADO] min-width causa desbordamiento en móviles, mejor max-width */
.filters select { padding:14px 30px; font-size:1rem; background: rgba(255, 255, 255, 0.03); color:white; border:1px solid rgba(255, 255, 255, 0.1); border-radius:50px; width: 100%; max-width:280px; backdrop-filter: blur(10px); outline: none; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s; }
.filters select:focus, .filters select:hover { border-color: #ff3366; background: rgba(255, 255, 255, 0.08); }
.filters select option { background: #111; color: #fff; }

.products-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:30px; } /* [MODIFICADO] Minmax más tolerante y gap reducido */

.product-card { background: rgba(255, 255, 255, 0.02); border-radius:20px; overflow:hidden; transition:transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .4s; border:1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); }
.product-card:hover { transform:translateY(-15px); border-color: rgba(255, 51, 102, 0.4); box-shadow:0 20px 40px rgba(255,51,102,0.15); }
.product-card img { width:100%; height:350px; object-fit:cover; border-bottom: 1px solid rgba(255,255,255,0.05); transition: transform 0.5s; }
.product-card:hover img { transform: scale(1.05); }
.product-info { padding:25px; text-align:center; position: relative; z-index: 2; background: inherit; }
.product-info h3 { font-size:1.4rem; margin-bottom:5px; color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: none; letter-spacing: 0; }
.product-info .artist { color:#888; font-size:0.9rem; margin-bottom:15px; text-transform: uppercase; letter-spacing: 1px; }
.product-info .price { font-size:1.6rem; color:#ff3366; font-weight:700; margin-bottom:20px; font-family: 'Oswald', sans-serif; }

/* Botones */
.add-to-cart { width: 100%; background:transparent; color:white; border:2px solid #ff3366; padding:12px 28px; border-radius:50px; cursor:pointer; font-weight:600; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px; transition:all .4s ease; position: relative; overflow: hidden; z-index: 1; }
.add-to-cart::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #ff3366; transition: all 0.4s ease; z-index: -1; }
.add-to-cart:hover::before { left: 0; }
.add-to-cart:hover { box-shadow: 0 0 25px rgba(255, 51, 102, 0.6); transform: translateY(-3px); color: #fff; }

.btn { background:transparent; color:white; padding:14px 35px; text-decoration:none; border: 2px solid #ff3366; border-radius:50px; font-weight:600; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px; transition:all .4s ease; display:inline-block; position: relative; overflow: hidden; z-index: 1; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #ff3366; transition: all 0.4s ease; z-index: -1; }
.btn:hover::before { left: 0; }
.btn:hover { box-shadow: 0 0 25px rgba(255, 51, 102, 0.6); transform:translateY(-3px); color: #fff; }

/* ================= CARRITO LATERAL ================= */
.cart-sidebar { position:fixed; top:0; right:-450px; width:450px; max-width: 100%; /* [NUEVO] Max-width para móviles */ height:100%; background: rgba(10, 10, 12, 0.98); backdrop-filter: blur(20px); border-left:1px solid rgba(255, 51, 102, 0.2); transition:right .4s cubic-bezier(0.4, 0, 0.2, 1); z-index:2000; padding:30px; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.8); }
.cart-sidebar.open { right:0; }
.overlay { position:fixed; inset:0; background:rgba(0,0,0,0.8); backdrop-filter: blur(4px); opacity:0; pointer-events:none; transition:opacity .4s; z-index:1500; }
.overlay.show { opacity:1; pointer-events:all; }

.cart-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cart-header h2 { font-size: 2rem; color: #fff; margin: 0; }
#close-cart { background:none; border:none; color:#aaa; font-size:2.5rem; cursor:pointer; transition: color 0.3s, transform 0.3s; line-height: 1; }
#close-cart:hover { color: #ff3366; transform: rotate(90deg); }

.cart-items { flex-grow: 1; overflow-y:auto; padding-right: 10px; }
.cart-item { display:flex; align-items: center; margin-bottom:25px; background: rgba(255,255,255,0.02); padding: 15px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); }
.cart-item img { width:80px; height:80px; object-fit:cover; border-radius:10px; margin-right:15px; }

.cart-total { margin-top:auto; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); text-align:right; }
.cart-total h3 { display: flex; justify-content: space-between; font-family: 'Inter', sans-serif; font-size: 1.2rem; color: #ccc; }
.cart-total h3 span { color: #ff3366; font-size: 1.8rem; font-family: 'Oswald', sans-serif; }

.checkout-btn { width:100%; padding:18px; font-size:1.15rem; margin-top:20px; background:transparent; color:white; border:2px solid #ff3366; border-radius:50px; font-weight:600; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor:pointer; transition:all .4s ease; position: relative; overflow: hidden; z-index: 1; }

/* ================= CONTACTO ================= */
main { padding-top: 120px; } 

.contact { padding: 60px 0; text-align: center; }
.contact h2 { font-size: 4rem; margin-bottom: 10px; color: #fff; text-shadow: 0 0 15px rgba(255,51,102,0.3); }
.contact-subtitle { color: #aaa; margin-bottom: 60px; font-size: 1.2rem; font-weight: 300; }

.contact-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; text-align: left; }

.contact-form { background: rgba(255, 255, 255, 0.02); padding: 50px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; color: #ccc; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea { width: 100%; padding: 18px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: white; font-size: 1rem; outline: none; transition: all 0.3s; font-family: 'Inter', sans-serif; }
.form-group input:focus, .form-group textarea:focus { border-color: #ff3366; box-shadow: 0 0 15px rgba(255, 51, 102, 0.1); background: rgba(0, 0, 0, 0.6); }

.btn-enviar { width: 100%; background:transparent; color:white; border:2px solid #ff3366; padding: 15px; font-size: 1.1rem; border-radius: 50px; cursor: pointer; font-weight:600; font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 1px; transition:all .4s ease; position: relative; overflow: hidden; z-index: 1; }

.contact-info { background: rgba(255, 51, 102, 0.05); padding: 50px; border-radius: 20px; border: 1px solid rgba(255, 51, 102, 0.2); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.contact-info::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,51,102,0.1) 0%, transparent 70%); z-index: -1; }
.contact-info h3 { font-size: 2.2rem; margin-bottom: 30px; color: #fff; }
.contact-info p { margin-bottom: 25px; font-size: 1.1rem; display: flex; align-items: center; gap: 20px; color: #ddd; font-weight: 300; }
.contact-info i { color: #ff3366; font-size: 1.5rem; width: 25px; text-align: center; }

.socials { margin-top: 40px; display: flex; gap: 20px; }
.socials a { color: #fff; font-size: 1.4rem; background: rgba(255, 255, 255, 0.05); width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.socials a:hover { background: #ff3366; border-color: #ff3366; transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(255,51,102,0.4); }

/* ================= TIRA DE PRODUCTOS (MARQUEE) ================= */
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; padding: 30px 0; background: rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.02); }
.marquee-track { display: inline-block; animation: scroll-marquee 25s linear infinite; }
.marquee-container:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; flex-direction: column; align-items: center; width: 240px; margin: 0 20px; vertical-align: top; }
.marquee-item img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transition: transform 0.4s ease, border 0.4s ease; border: 1px solid transparent; }
.marquee-item img:hover { transform: translateY(-10px); border: 1px solid rgba(255,51,102,0.5); box-shadow: 0 15px 30px rgba(255,51,102,0.2); }
.marquee-item p { margin-top: 15px; font-weight: bold; font-size: 1.1rem; color: #ffffff !important; background-color: rgba(0, 0, 0, 0.6); padding: 6px 12px; border-radius: 6px; text-align: center; width: 100%; white-space: normal; }

@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================= MODALES ================= */
.modal-contenido { max-height: 90vh; overflow-y: auto; background: rgba(15, 15, 15, 0.98) !important; backdrop-filter: blur(15px); border: 1px solid rgba(255, 51, 102, 0.3) !important; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,51,102,0.1); }
.modal-contenido::-webkit-scrollbar { width: 8px; }
.modal-contenido::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.modal-contenido::-webkit-scrollbar-thumb:hover { background: #ff3366; }
.modal-contenido::-webkit-scrollbar-track { background: #0a0a0c; }

.modal-product-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; padding: 20px; }
.modal-product-overlay.show { opacity: 1; pointer-events: all; }
.modal-product-content { background: rgba(15, 15, 15, 0.95); border: 1px solid rgba(255, 51, 102, 0.3); border-radius: 20px; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,51,102,0.15); transform: scale(0.95) translateY(20px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-product-overlay.show .modal-product-content { transform: scale(1) translateY(0); }
.close-modal-btn { position: absolute; top: 20px; right: 25px; background: none; border: none; color: #aaa; font-size: 2rem; cursor: pointer; z-index: 10; transition: all 0.3s; }
.close-modal-btn:hover { color: #ff3366; transform: rotate(90deg); }
.modal-product-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; }
.modal-product-image img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-product-info h2 { font-size: 2.5rem; color: #fff; margin-bottom: 5px; }
.artist-name { color: #888; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 20px; }
.product-price { color: #ff3366; font-size: 2.2rem; font-weight: bold; font-family: 'Oswald', sans-serif; margin-bottom: 25px; }
.product-description h3 { font-size: 1.2rem; color: #fff; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.product-description p { color: #ccc; font-size: 1rem; line-height: 1.6; margin-bottom: 25px; }
.product-options label { display: block; color: #aaa; margin-bottom: 10px; font-size: 0.9rem; text-transform: uppercase; }
.product-options select { width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: white; font-size: 1rem; outline: none; cursor: pointer; transition: 0.3s; }
.product-options select:focus { border-color: #ff3366; }
.modal-product-content::-webkit-scrollbar { width: 8px; }
.modal-product-content::-webkit-scrollbar-thumb { background: #ff3366; border-radius: 10px; }
.modal-product-content::-webkit-scrollbar-track { background: #111; }


/* =========================================================================
   NUEVOS AJUSTES RESPONSIVOS (MEDIA QUERIES MEJORADAS)
   ========================================================================= */

/* --- TABLETS Y PANTALLAS MEDIANAS --- */
@media (max-width: 992px) {
  .hero { height: auto; padding: 150px 0 80px 0; }
  .hero-wrapper { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero h1 { font-size: 4rem; }
  .hero-image-discount { justify-content: center; width: 100%; }
  .hero-image-discount img { max-width: 80%; }
}

/* --- CELULARES ESTÁNDAR --- */
@media (max-width: 768px) {
  /* Ocultas el menú normal (aquí necesitarás un botón hamburguesa en tu HTML/JS) */
  nav ul { display:none; } 
  
  /* Se achica el input del buscador para que no se empalme con el logo */
  .search-bar input { max-width: 160px; padding: 10px 35px 10px 15px; font-size: 0.9rem; }
  .logo { font-size: 1.8rem; }
  
  .hero h1 { font-size:3.2rem; }
  .new-drop h2, .genres h2, .products h2, .contact h2 { font-size: 2.8rem; }
  
  .cart-sidebar { width:100%; right:-100%; }
  
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-form, .contact-info { padding: 30px 20px; }
  
  .modal-product-body { grid-template-columns: 1fr; padding: 25px; gap: 20px; }
  .modal-product-info h2 { font-size: 2rem; }
  .modal-product-image img { max-height: 350px; }
}

/* --- CELULARES PEQUEÑOS (Micro pantallas tipo iPhone SE) --- */
@media (max-width: 480px) {
  /* Si la pantalla es muy chica, el buscador baja a una nueva línea automáticamente */
  header .container { flex-direction: column; gap: 15px; padding-bottom: 10px; }
  .search-bar input { max-width: 100%; width: 250px; }
  
  /* Ajuste de margen superior para compensar que el header ahora es más alto */
  main { padding-top: 160px; }
  .hero { padding-top: 180px; }
  
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.1rem; }
  .new-drop h2, .genres h2, .products h2, .contact h2 { font-size: 2.2rem; }
  
  .product-card img { height: 280px; } /* Imagen del producto un poco más chica */
  
  .cart-header h2 { font-size: 1.5rem; }
  .cart-item { flex-direction: column; text-align: center; position: relative; }
  .cart-item img { margin: 0 0 10px 0; width: 100px; height: 100px; }
}