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

:root {
  --bg: #0f0f0f;
  --bg2: #13131a;
  --border: #2e2e2e;
  --accent: #fa3d11;
  --accent2: #ff6b3d;
  --text: #e8e8e8;
  --text-muted: #888;
  --card-bg: #171515;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
}

ul, ol { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  height: var(--nav-h);
  padding: 0;
  background: #13131a;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.6rem;
}

.navbar-brand img.logo { height: 40px; width: auto; flex-shrink: 0; }

/* Buscador — pegado a la derecha, ancho fijo */
.nav-search {
  display: flex;
  align-items: center;
  background: #13131a;
  border: 1px solid #2e2e3e;
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  width: 240px;
  flex-shrink: 0;
  gap: 6px;
  transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--accent); }

.nav-search-icon { color: var(--text-muted); font-size: 1.4rem; flex-shrink: 0; }

.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.4rem;
  font-family: 'Inter', sans-serif;
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input::-webkit-search-cancel-button { display: none; }
.nav-search-input::-ms-clear { display: none; }

/* Iconos derecha */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #13131a;
  border: 1px solid #2e2e3e;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.6rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.nav-icon-btn:hover { background: #2a2a38; color: var(--text); border-color: #3e3e52; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

.nav-catalog-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #13131a;
  border: 1px solid #2e2e3e;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.3rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0 14px;
  height: 38px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-catalog-btn:hover { background: #2a2a38; color: var(--text); border-color: #3e3e52; }

/* Barra de categorías — dropdown flotante */
.nav-categories {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  align-items: center;
  background: #13131a;
  border-bottom: 1px solid #1e1e2a;
  padding: 0 2.4rem;
  z-index: 997;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-categories.open { display: flex; justify-content: center; }
.nav-categories::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .nav-categories.open { justify-content: flex-start; }
}

.nav-cat-link {
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  padding: 1.2rem 1.2rem;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-cat-link:hover { color: var(--text); border-bottom-color: var(--accent); }

/* Catálogo btn activo */
.nav-catalog-btn.active {
  background: #2a2a38;
  color: var(--text);
  border-color: #3e3e52;
}

/* ── SIDEBAR MÓVIL ── */
.nav-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #13131a;
  border-right: 1px solid #2e2e3e;
  z-index: 2000;
  flex-direction: column;
  padding: 0;
  transition: left 0.28s ease;
  overflow-y: auto;
}
.nav-sidebar.open { left: 0; }

.nav-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid #2e2e3e;
}
.nav-sidebar-header img { height: 36px; }
.nav-sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-sidebar-close:hover { color: var(--text); }

.nav-sidebar-section {
  padding: 1rem 0;
  border-bottom: 1px solid #2e2e3e;
}
.nav-sidebar-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem 0.4rem;
}
.nav-sidebar .nav-cat-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  font-size: 1.4rem;
  border-bottom: none;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.nav-sidebar .nav-cat-link:hover {
  background: #1e1e2a;
  color: var(--text);
  border-bottom: none;
}

.nav-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  backdrop-filter: blur(2px);
}
.nav-sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .nav-sidebar { display: flex; }
}
.nav-mobile-toggle {
  display: none;
  background: var(--bg2);
  border: 1px solid #2e2e3e;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.8rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Dropdown login */
.aparecer-login {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #1e1e2a;
  border: 1px solid #2e2e3e;
  border-radius: 8px;
  padding: 4px 0;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.aparecer-login.open { display: block; }
.aparecer-login .dropdown-item {
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 8px 16px;
  background: transparent;
  font-family: 'Inter', sans-serif;
}
.aparecer-login .dropdown-item:hover { color: var(--text); background: #2a2a38; }
.dropdown-divider { border-color: #2e2e3e; }

/* Botón lupa móvil — oculto en desktop */
.nav-search-toggle { display: none; }

/* Barra búsqueda flotante móvil */
.nav-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: #13131a;
  z-index: 1100;
  align-items: center;
  padding: 0 1.2rem;
  gap: 8px;
  border-bottom: 1px solid #2e2e3e;
}
.nav-search-overlay.open { display: flex; }

.nav-search-overlay-form {
  display: flex;
  align-items: center;
  background: #13131a;
  border: 1px solid #2e2e3e;
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  flex: 1;
  gap: 8px;
  position: relative;
}
.nav-search-overlay-form i.fa-search { color: var(--text-muted); font-size: 1.4rem; }
.nav-search-overlay-form .nav-search-input { flex: 1; }

.nav-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 1.6rem;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-search-close:hover { background: rgba(250,61,17,0.1); }

/* ── RESPONSIVE NAVBAR ── */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1.6rem; gap: 1rem; }
  .nav-search { display: none; }
  .nav-catalog-btn { display: none; }
  .nav-hide-mobile { display: none !important; }
  .nav-mobile-toggle { display: flex; }
  .nav-search-toggle { display: flex; }
  .nav-right { gap: 4px; }
  .nav-mobile-extra { display: flex; }
}

@media (max-width: 480px) {
  .navbar-inner { padding: 0 1.2rem; gap: 0.8rem; }
  .navbar-brand img.logo { height: 32px; }
}

/* ocultar extras en desktop */
.nav-mobile-extra { display: none; }

@media (max-width: 768px) {
  a.nav-mobile-extra, button.nav-mobile-extra { display: flex; }
}

/* ── HERO SLIDER (vanilla) ── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider .carousel-inner {
  background: var(--bg);
  position: relative;
  height: 55vh;
}

.hero-slider .carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.hero-slider .carousel-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slider .carousel-item.prev {
  opacity: 0;
  z-index: 0;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 3rem 2rem;
  background: none;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-overlay a, .hero-overlay button { pointer-events: auto; }

.hero-overlay h2 {
  font-size: 3.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.7);
}

.hero-overlay p {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.hero-btn:hover { background: var(--accent2); }
.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}
.carousel-controls button { pointer-events: auto; }

.carousel-control-prev,
.carousel-control-next {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: static;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { background: var(--accent2); }

/* Flechas con CSS puro */
.carousel-control-prev span,
.carousel-control-next span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.carousel-control-prev span { transform: rotate(135deg); margin-left: 3px; }
.carousel-control-next span { transform: rotate(-45deg); margin-right: 3px; }

/* ── SEARCH RESULTS DROPDOWN ── */
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 320px;
  background: #1e1e2a;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-height: 360px;
  overflow-y: auto;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #2a2a38; }
.search-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}
.search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.search-item-meta {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.search-no-results {
  padding: 1.4rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── MAIN ── */
main { background-color: var(--bg); padding-bottom: 4rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem 2rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1.6rem; }
}

/* ── SECTION TITLES ── */
.card-title-principal {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Autour One', cursive;
  color: var(--accent);
  padding: 2.5rem 0 0rem;
  letter-spacing: 0.1em;
}

.destacados {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: left;
}
.destacados span {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* ── PRODUCT GRID ── */
.compras {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

/* ── PRODUCT CARD ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  --bs-card-border-color: transparent;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(250,61,17,0.15);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f2f2f2;
  border: none;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.card-body {
  background: var(--card-bg);
  padding: 1.2rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  min-height: 3.6rem;
}

.card-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0;
}

/* ── BUY BUTTON ── */
.pago {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  border-radius: 0;
}

.btn.pago-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  justify-content: center;
}
.btn.pago-icon:hover { background: #1ebe5a; transform: translateY(-1px); color: #fff; }
.btn.pago-icon .bi-whatsapp { font-size: 1.5rem; }

/* ── LOGOS PAGO Y MARCAS ── */
.logos-grid { padding: 0; }
.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

/* ── FOOTER COLS ── */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}
.footer-col { padding: 1rem 0; }

@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .logos-row { gap: 1.5rem; }
  .footer-list-item,
  .footer-list-item-a,
  .footer-col .footer-link { text-align: center; }
  .map-iframe { display: block; margin: 10px auto 0; width: 100%; }
}

/* ── PAYMENT & BRANDS SECTION ── */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

@media (max-width: 768px) {
  .footer-content { padding: 2rem 1.6rem; }
}

.footer-list-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Autour One', cursive;
}

.footer-column { padding: 1rem; }

/* logos de pago — mantener colores originales */
.logo-img, .logo-pago {
  max-height: 50px;
  width: auto;
  filter: brightness(0.9);
  transition: filter 0.2s;
}
.logo-img:hover, .logo-pago:hover { filter: brightness(1.15); }

/* logos de marcas — invertir a blanco sobre fondo oscuro */
.logo-img-1, .logo-marca {
  max-height: 50px;
  width: auto;
  filter: invert(1) brightness(0.8) grayscale(0.1);
  transition: filter 0.2s;
}
.logo-img-1:hover, .logo-marca:hover { filter: invert(1) brightness(1) grayscale(0); }

/* ── FOOTER ── */
.footer-container {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 0;
}
.footer-container .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

@media (max-width: 768px) {
  .card-title-principal {
    font-size: 2.2rem;
  }

  .footer-container .container { padding: 2rem 1.6rem 1rem; }
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Autour One', cursive;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
  margin-bottom: 4px;
}
.footer-link:hover { color: var(--accent); }

.footer-list-heading1 { margin: 1rem 0; }

.footer-list-heading2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 1.5rem 2rem;
}

.footer-container .container + .footer-list-heading2 {
  border-top: 1px solid var(--border);
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.8rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--bg2); }

.footer-list-item { margin-bottom: 10px; }
.footer-list-item-a { font-weight: 700; color: var(--text); margin-bottom: 4px; }

.footer-icon { margin-right: 8px; color: var(--accent); }

.footer-map-text {
  font-size: 1.4rem;
  font-weight: 500;
}

.map-iframe { border-radius: 12px; margin-top: 10px; }

/* ── WHATSAPP FLOAT ── */
.contac {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}
.contac .btn {
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.contac .btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.contac .btn i { font-size: 2.6rem; }

.tooltip-text {
  display: none;
  position: absolute;
  top: 14px;
  left: 66px;
  background: #25d366;
  color: #fff;
  font-size: 1.3rem;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.contac:hover .tooltip-text { display: block; }

/* ── IR ARRIBA ── */
#irArribaBtn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  transition: background 0.2s, transform 0.2s;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#irArribaBtn:hover { background: var(--accent2); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .hero-overlay { padding: 2rem; }
  .hero-overlay h2 { font-size: 2.4rem; }
  .hero-slider .carousel-inner { height: 40vh; }
  .hero-slider .carousel-item img { height: 40vh; }
  .compras { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 1rem 1rem; }
  .navbar-nav { align-items: center; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg2); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .compras { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .compras { grid-template-columns: repeat(4, 1fr); }
}
