@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- VARIABLES & THEME --- */
:root {
  --primary-color: #c0392b;
  /* Rojo oscuro premium */
  --primary-hover: #e74c3c;
  /* Rojo más brillante para hover */
  --accent-color: #e67e22;
  /* Naranja para detalles/ofertas */
  --bg-dark: #121212;
  /* Fondo oscuro profundo */
  --bg-card: rgba(30, 30, 30, 0.9);
  /* Fondo semitransparente para cartas */
  --text-white: #ffffff;
  --text-gray: #bdc3c7;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --bg-image: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  /* Fondo principal */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../../uploads/bg_main.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
  min-height: 100vh;
}

/* Ensure readability with overlay - BRIGHTER VERSION (0.2 instead of 0.4) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
  pointer-events: none;
}

header {
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
  padding: 15px 20px;
  border-bottom: 1px solid rgba(192, 57, 43, 0.3);
  position: relative;
  z-index: 100;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.topbar nav a {
  margin-right: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.topbar nav a:hover {
  color: var(--primary-hover);
}

.logo-center {
  text-align: center;
  margin-bottom: 15px;
}

.logo-center img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand h1 {
  margin: 0;
  font-size: 32px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.search-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  margin-top: 15px;
}

.cart-container {
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 110;
  pointer-events: auto;
}

.cart {
  background: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-size: 15px;
  color: #fff;
}

.btn-primary {
  background: var(--primary-color);
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auth-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.auth-btn:active {
  transform: scale(0.95);
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- USER PROFILE WIDGET --- */
.user-profile-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 57, 43, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.user-profile-container:hover {
  background: rgba(192, 57, 43, 0.1);
  border-color: var(--primary-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-color);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  /* Pegado casi al borde inferior */
  right: 0;
  padding-top: 10px;
  /* Espacio visual dentro del padding para no perder el hover */
  background: transparent;
  /* El contenedor es transparente para el puente */
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: visible;
  /* Para que el contenido interno se vea */
}

.user-dropdown-inner {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  width: 150px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* El area de hover del contenedor padre (.user-profile-container) mantiene el dropdown abierto */
.user-profile-container:hover .user-dropdown {
  display: flex;
}

.dropdown-item {
  padding: 10px 15px;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(192, 57, 43, 0.2);
  color: var(--primary-hover);
}

/* --- SECTIONS --- */
.section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.section-bg {
  background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(0, 0, 0, 0.8)), url('../../uploads/bg_2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid rgba(192, 57, 43, 0.2);
  border-bottom: 1px solid rgba(192, 57, 43, 0.2);
}

#productos.section {
  background-image: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('../../uploads/bg_1.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.inner {
  width: 100%;
  max-width: 1200px;
  background: rgba(18, 18, 18, 0.3);
  /* Fondo mucho más transparente (antes 0.6) */
  border-radius: 12px;
  padding: 30px;
  margin-left: auto;
  margin-right: auto;
}

/* --- NOSOTROS LAYOUT --- */
.nosotros-grid {
  display: block;
}

.subtitle-style {
  font-size: 0.9rem !important;
  color: #c0392b !important;
  opacity: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 2.5px !important;
  margin-top: 0 !important;
  margin-bottom: 25px !important;
  font-weight: 700 !important;
  text-align: left !important;
  display: block;
}

.nosotros-text {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

/* --- PRODUCT GRID (ADJUSTED FOR 4 COLUMNS) --- */
.products-grid,
.grid {
  display: grid;
  /* Min width 230px allows 4 items on standard ~1200px screens (1200/4 = 300px per col space) */
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

/* --- MOBILE GRID OVERRIDE (Protegido y Específico) --- */
@media (max-width: 480px) {

  /* Solo afecta a la grilla de productos y ofertas */
  #products .products-grid,
  #ofertas .grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2 Columnas Fijas */
    gap: 8px !important;
    padding: 0 5px !important;
  }

  /* Solo afecta a las tarjetas DENTRO de productos/ofertas */
  #products .card,
  #ofertas .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 5px !important;
    min-height: 220px !important;
  }

  /* Arreglo de Imagen: Forzar que se vea entera (contain) */
  #products .card img,
  #ofertas .card img {
    height: 150px !important;
    width: 100% !important;
    object-fit: contain !important;
    /* Muestra TODO el producto */
    background: #fff !important;
    border-radius: 8px !important;
    padding: 2px !important;
    margin-bottom: 5px !important;
  }

  /* Textos más compactos */
  #products .card h3,
  #ofertas .card h3 {
    font-size: 0.8rem !important;
    margin: 4px 0 !important;
    height: auto !important;
    max-height: 2.4em;
    overflow: hidden;
    line-height: 1.2;
  }

  #products .price,
  #ofertas .price {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }

  #products .comprar-btn,
  #ofertas .comprar-btn {
    padding: 6px !important;
    font-size: 0.8rem !important;
    margin-top: 0 !important;
  }
}

.product-card,
.card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.product-card:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

/* --- BADGE RIBBON (Diagonal & Translucent) --- */
.badge-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background: rgba(192, 57, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  width: 150px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  /* Default height for desktop */
  object-fit: contain;
  /* Changed from cover to contain to see full product */
  background: #fff;
  /* White background for clean look */
  border-radius: 6px;
  padding: 5px;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
}

.card p.product-desc {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 10px;
  max-height: 3em;
  overflow: hidden;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #777;
  margin-left: 8px;
}

.comprar-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.comprar-btn:hover {
  background: var(--primary-hover);
}

/* --- SEARCH --- */
.search-container-center {
  max-width: 600px;
  margin: 20px auto;
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.8);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-top: none;
  border-radius: 0 0 15px 15px;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #1a1a1a;
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(192, 57, 43, 0.15);
  padding-left: 20px;
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-info {
  flex: 1;
}

.search-result-info .title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.search-result-info .price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* Shortcuts in Search */
.search-shortcut-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.2), transparent);
  border-bottom: 2px solid rgba(192, 57, 43, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.search-shortcut-item:hover {
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.4), transparent);
}

.shortcut-icon {
  font-size: 24px;
  margin-right: 15px;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.shortcut-text {
  color: #fff;
  font-size: 14px;
}

.shortcut-text b {
  color: var(--primary-hover);
  text-transform: uppercase;
}

/* --- NEW PREMIUM NAVIGATION CARDS --- */
.nav-container-premium {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 35px auto;
  flex-wrap: wrap;
  max-width: 1200px;
  padding: 0 10px;
  width: 100%;
}

.user-profile-container.compact {
  background: rgba(40, 40, 40, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(192, 57, 43, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.user-profile-container.compact .user-avatar {
  width: 24px;
  height: 24px;
}

.nav-box-card {
  position: relative;
  width: 220px;
  height: 150px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 2px solid rgba(192, 57, 43, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.nav-box-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #c0392b;
  box-shadow: 0 12px 40px rgba(192, 57, 43, 0.3);
}

.nav-box-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s, filter 0.4s;
  filter: brightness(0.9);
}

.nav-box-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.nav-box-card span {
  display: none;
  /* Text is now embedded in the image */
}

/* Responsive Table / Mobile Fixes */
@media (max-width: 992px) {
  .nav-box-card {
    width: 180px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  .nav-container-premium {
    gap: 10px;
    padding: 0 5px;
  }

  .nav-box-card {
    width: calc(50% - 10px);
    height: 110px;
  }
}

@media (max-width: 480px) {
  .nav-box-card {
    width: calc(50% - 5px);
    height: 95px;
  }
}

/* --- UNIVERSAL MUSIC PLAYER (Premium V2) --- */
.music-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(192, 57, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.7);
}

.music-player-bar.active {
  transform: translateY(0);
}

.music-player-bar.minimized {
  transform: translateY(calc(100% - 10px));
  /* Shows a tiny peek or handle usually, but logic uses translateY on style */
}

/* Fix for mobile text overlap */
@media (max-width: 600px) {
  .music-player-bar {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
}

.player-info {
  display: flex;
  align-items: center;
  margin-right: 20px;
  flex: 1;
}

.player-logo {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.2);
}

.player-text {
  display: flex;
  flex-direction: column;
}

.player-title {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.player-artist {
  color: #aaa;
  font-size: 11px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.p-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.p-btn:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.play-pause {
  font-size: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.minimize-btn {
  color: #888;
  font-size: 16px;
}

/* Volume Slider */
.vol-slider {
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

/* --- MODALS --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-card {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  border: 1px solid #333;
}

.modal-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.modal-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* --- FOOTER & MISC --- */
.wa-quick {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.wa-quick img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .brand h1 {
    font-size: 24px;
  }

  .logo-center img {
    height: 70px;
  }
}

.center-cta {
  text-align: center;
  margin-top: 25px;
  width: 100%;
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(135deg, #a93226, #c0392b);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

#scrollTopBtn:active {
  transform: translateY(-1px);
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(18, 18, 18, 0.98) 100%);
  border-top: 1px solid rgba(192, 57, 43, 0.3);
  padding: 60px 20px 20px;
  margin-top: 60px;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--primary-hover);
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  border-color: var(--primary-hover);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.creator-attribution {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-attribution a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.creator-attribution a:hover {
  color: var(--primary-hover);
}

.attribution-logo {
  height: 25px;
  width: auto;
  border-radius: 4px;
  filter: grayscale(1) opacity(0.7);
  transition: all 0.3s;
}

.creator-attribution a:hover .attribution-logo {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

/* EL RINCÓN DE THE BEST - SECCIÓN PRINCIPAL */
#el-rincon {
  background: rgba(0, 0, 0, 0.3);
  padding-top: 60px;
  padding-bottom: 60px;
  width: 100%;
  display: none;
  /* Se activa vía JS como 'flex' */
  justify-content: center;
  align-items: flex-start;
}

/* EL RINCÓN DE THE BEST - GRID & CARDS */
.creator-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 30px auto 0;
  width: 100%;
}

.creator-card {
  flex: 0 1 350px;
  /* Ancho base fijo, puede achicarse pero no estirarse infinitamente */
  min-width: 280px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.creator-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(192, 57, 43, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.creator-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}

.creator-media img,
.creator-media video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.creator-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.creator-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.creator-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  /* Empujar el reproductor o link al fondo */
}

/* AUDIO PLAYER PREMIUM */
.audio-player-container {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(0, 0, 0, 0.2));
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(192, 57, 43, 0.2);
  margin-top: auto;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-pause-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.play-pause-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.audio-progress {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.audio-progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  width: 0;
}

/* VIDEO EMBED */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .creator-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .creator-title {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 850px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nosotros-title h3 {
    margin-bottom: 20px;
  }

  .search-header-row {
    flex-direction: column;
    gap: 15px;
  }

  .cart-container {
    position: static;
    margin-top: 10px;
  }
}

@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    margin: 10px auto 0;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- REVIEWS / OPINIONES --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.review-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  border-color: rgba(192, 57, 43, 0.4);
}

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.star-filled {
  color: #ffc107;
}

.star-empty {
  color: rgba(255, 255, 255, 0.2);
}

.review-text {
  color: #eee;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.review-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.8rem;
  color: #888;
}

/* --- PREMIUM MUSIC PLAYER --- */
.music-player-dock {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: 90vw;
  /* Responsive override */
  background: rgba(20, 20, 20, 0.85);
  /* Glass Dark */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 2px solid var(--primary-color);
  box-sizing: border-box;
  /* Ensure padding doesn't increase width */
}

.music-player-dock.hidden {
  transform: translateY(120%);
  opacity: 0;
}

/* Vinyl Animation */
.player-vinyl {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  border: 2px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.player-vinyl::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid #fff;
}

.vinyl-art {
  font-size: 24px;
  animation: vinyl-spin 4s linear infinite;
  animation-play-state: paused;
}

@keyframes vinyl-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.playing .vinyl-art {
  animation-play-state: running;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-title {
  font-size: 0.9em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.player-artist {
  font-size: 0.75em;
  color: var(--text-gray);
}

.player-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 5px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  transition: width 0.1s linear;
}

.player-controls {
  display: flex;
  gap: 10px;
}

.player-controls button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0;
  transition: color 0.2s;
}

.player-controls button:hover {
  color: var(--primary-color);
}

.close-player {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .music-player-dock {
    width: 90%;
    left: 5%;
    right: auto;
    bottom: 70px;
  }
}

/* --- GLOBAL MUSIC PLAYER (PREMIUM) --- */
.global-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 500px;
  background: rgba(20, 20, 20, 0.85);
  /* Dark Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 20px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  display: flex;
  flex-direction: column;
}

.global-player.hidden {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.global-player.minimized {
  transform: translateX(-50%) translateY(70%);
  /* Slide down leaving only top visible */
}

/* Ensure controls are still clickalbe if visible, or hide main controls? */
/* Actually, user might want to pause while minimized? logic says minimize saves space. */
/* Let's just slide it down so only the title/min button area is visible. */

.gp-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-bottom: 8px;
  /* Space for progress bar */
}

.gp-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.gp-icon-anim {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  width: 20px;
}

.gp-icon-anim .bar {
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: bounce 1s infinite ease-in-out;
}

.gp-icon-anim .bar:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}

.gp-icon-anim .bar:nth-child(2) {
  height: 80%;
  animation-delay: 0.2s;
}

.gp-icon-anim .bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.4s;
}

.paused .gp-icon-anim .bar {
  animation-play-state: paused;
  height: 20% !important;
}

@keyframes bounce {

  0%,
  100% {
    height: 40%;
  }

  50% {
    height: 100%;
  }
}

.gp-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gp-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-artist {
  color: #aaa;
  font-size: 0.75rem;
}

.gp-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gp-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: transform 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-btn:hover {
  color: var(--primary-color);
}

.gp-btn.play {
  background: linear-gradient(135deg, var(--primary-color), #c0392b);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(192, 57, 43, 0.4);
}

.gp-progress-container {
  position: absolute;
  bottom: 0px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.gp-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  transition: width 0.1s linear;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
  .global-player {
    bottom: 60px;
    /* Above bottom nav/tabs if any, or just spacing */
    width: 92%;
  }
}