/* =========================================================
   CHIKASS - ESTILOS PRINCIPALES (Mobile First, Cross-Browser)
   ---------------------------------------------------------
   1) Variables + base
   2) Navbar + menú móvil
   3) Títulos y estructura
   4) Filtros + buscador
   5) Carril “Destacados” (centrado iOS Safari) + flechas
   6) Cards (destacadas y normales)
   7) Modal de producto
   8) Botón “Volver arriba”
   9) Formularios (Publícate)
   10) Footer
   11) Age Gate (overlay)
   ========================================================= */

/* ========== 1) VARIABLES + BASE ========== */
:root {
  --bg: #0e0e12;
  --panel: #11131b;
  --ink: #fff;
  --muted: #aab0c0;
  --violet: #6a00ff;
  --cyan: #00e0ff;
  --ok: #25D366;

  --radius: 14px;
  --radius-sm: 10px;

  --b1: 1px solid rgba(0, 224, 255, .22);
  --glow: 0 0 18px rgba(0, 224, 255, .15);
  --ring: 0 0 25px rgba(0, 224, 255, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-top: 78px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
}

/* Utilidades */
.hide {
  display: none !important
}

/* ========== 2) NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(90deg, rgba(106, 0, 255, .92), rgba(0, 224, 255, .92));
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.logo-img {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 224, 255, .35))
}

.menu {
  list-style: none;
  display: none;
  gap: 26px;
  margin: 0;
  padding: 0
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 8px 14px;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: .25s;
}

.menu a:hover::after,
.menu a.active::after {
  transform: translateX(-50%) scaleX(1)
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  z-index: 1100;
  background: rgba(15, 15, 20, .92);
  backdrop-filter: blur(10px);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  padding: 18px 0;
}

.mobile-menu a {
  display: block;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600
}

.mobile-menu a:hover {
  color: var(--cyan)
}

/* Botones especiales del navbar */
.menu li {
  display: flex;
  align-items: center;
}

.menu .btn-publicate,
.menu .btn-login {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 16px !important;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  line-height: 1.4;
}

.menu .btn-publicate:hover,
.menu .btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.menu .btn-publicate::after,
.menu .btn-login::after {
  display: none;
  /* Ocultar la línea inferior en botones */
}

@media (min-width:900px) {
  .menu {
    display: flex;
    align-items: center;
  }

  .hamburger,
  .mobile-menu {
    display: none !important
  }
}

/* ========== 3) TÍTULOS Y ESTRUCTURA ========== */
.section-title {
  text-align: center;
  font-size: 1.45rem;
  margin: 42px 0 22px;
  position: relative;
  font-weight: 700;
  letter-spacing: .3px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

/* ========== 4) FILTROS + BUSCADOR ========== */
.filtros {
  text-align: center
}

.selects {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.selects select,
.selects button {
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #1b1b22;
  color: var(--cyan);
  font-weight: 600;
}

.selects button {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: #fff;
  cursor: pointer
}

.selects button:hover {
  opacity: .9
}

.buscador-container {
  position: relative;
  min-width: 240px;
  width: 280px
}

#buscador {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #1b1b22;
  color: var(--cyan);
  font-size: .98rem;
  box-shadow: inset 0 0 8px rgba(0, 224, 255, .2);
}

#buscador:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 224, 255, .35)
}

.x-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: #fff;
  display: none;
}

/* Sugerencias */
#sugerencias {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #11131b;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 224, 255, .35);
  display: none;
  z-index: 1300;
  max-height: 220px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#sugerencias li {
  padding: 10px 12px;
  cursor: pointer
}

#sugerencias li:hover {
  background: rgba(0, 224, 255, .12)
}

/* ========== 5) CARRIL DESTACADOS (centrado Safari) + FLECHAS ========== */
.row-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .row-wrapper {
    padding: 0 2%;
  }
}

@media (min-width: 1200px) {
  .row-wrapper {
    padding: 0 3%;
  }
}

@media (min-width: 1600px) {
  .row-wrapper {
    padding: 0 5%;
  }
}

.row-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  /* iOS Safari centrado */
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 14px;
  user-select: none;
}

.row-scroll::-webkit-scrollbar {
  display: none
}

/* ocultar scrollbar webkit */
.row-scroll>.card {
  flex: 0 0 auto;
  scroll-snap-align: center
}

/* Flechas del carril */
.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.row-prev {
  left: -6px
}

.row-next {
  right: -6px
}

@media (min-width:980px) {
  .row-arrow {
    opacity: 0;
    pointer-events: none;
    transition: .25s
  }

  .row-wrapper:hover .row-arrow {
    opacity: 1;
    pointer-events: auto
  }
}

/* ========== MAIN CONTENT LAYOUT ========== */
.main-content {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 1rem;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .main-content {
    padding: 1.5rem 2%;
  }
}

@media (min-width: 1200px) {
  .main-content {
    padding: 2rem 3%;
  }
}

@media (min-width: 1600px) {
  .main-content {
    padding: 2rem 5%;
  }
}

/* ========== 6) CARDS ========== */
.cards,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  /* Center when fewer items */
  justify-items: center;
  /* Center items in grid */
}

/* Para destacados (más grandes) */
#destacados-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  width: 100%;
  justify-content: center;
  /* Center when fewer items */
  justify-items: center;
  /* Center items in grid */
}

.card {
  background: var(--panel);
  border: var(--b1);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: 14px;
  text-align: center;
  color: var(--ink);
  transition: .25s transform, .25s box-shadow;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 22px rgba(0, 224, 255, .28)
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 6px;
  line-height: 1.3
}

.card .precio {
  color: var(--cyan);
  font-weight: 700;
  margin: 0 0 4px
}

.card .ubicacion {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 8px
}

/* Carrusel interno de la card */
.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0d12;
  margin-bottom: 10px;
  aspect-ratio: 4/3;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s ease
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 100%;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: .95;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.arrow.prev {
  left: 10px
}

.arrow.next {
  right: 10px
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d7280;
  opacity: .9
}

.carousel-dots span.active {
  background: var(--cyan)
}

/* Tamaños */
.card--dest {
  width: 300px;
  max-width: 86vw
}

.card--small {
  width: 250px;
  max-width: 82vw
}

/* Botones de contacto */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center
}

.contact-buttons a {
  width: 85%;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 7px 0;
  display: block;
  transition: .25s transform, .25s opacity;
  font-size: 0.85rem;
}

.contact-buttons a.whatsapp {
  background: linear-gradient(90deg, #25D366, #128C7E);
  box-shadow: 0 0 10px rgba(37, 211, 102, .35)
}

.contact-buttons a.call {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 224, 255, .25)
}

.contact-buttons a:hover {
  transform: translateY(-2px);
  opacity: .92
}

/* ========== 7) MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  background: rgba(0, 0, 0, .7);
  overflow: auto;
  -webkit-overflow-scrolling: touch
}

.modal-servicio {
  max-width: 1000px;
  margin: 48px auto;
  background: var(--panel);
  border: var(--b1);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 0 28px rgba(0, 224, 255, .35);
  padding: 16px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: var(--ring);
  font-size: 1.2rem;
}

.modal-body {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.modal-gallery {
  position: relative;
  flex: 1 1 420px;
  min-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0d12
}

.modal-gallery img {
  width: 100%;
  height: 440px;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform .3s ease
}

.modal-gallery .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  transition: .25s;
}

.modal-gallery .nav.prev {
  left: 10px
}

.modal-gallery .nav.next {
  right: 10px
}

.modal-gallery .nav:hover {
  opacity: .9;
  transform: translateY(-50%) scale(1.05)
}

/* Zoom de imagen */
.modal-gallery img.zoomed {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  z-index: 3000;
  cursor: zoom-out;
  background: rgba(0, 0, 0, .95);
  padding: 20px;
}

.modal-info {
  flex: 1 1 300px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.btn-whatsapp,
.btn-call {
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s
}

.btn-whatsapp {
  background: linear-gradient(90deg, #25D366, #128C7E)
}

.btn-call {
  background: linear-gradient(90deg, var(--violet), var(--cyan))
}

/* ========== HORIZONTAL FILTER BAR ========== */
.filters-bar {
  background: var(--panel);
  border-bottom: var(--b1);
  padding: 1rem;
  position: fixed;
  top: 66px;
  /* Eliminate subpixel gap */
  left: 0;
  right: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.filters-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0.5rem;
}

.filters-container label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

.filters-container label span {
  white-space: nowrap;
}

.filters-container .filter-select {
  min-width: 150px;
  padding: 0.5rem 0.75rem;
  background: #1b1b22;
  border: 1px solid rgba(0, 224, 255, .2);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
}

.filters-container .filter-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 224, 255, .3);
}

.filters-container .btn-clear {
  margin-left: auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.filters-container .btn-clear:hover {
  background: rgba(0, 224, 255, .1);
  box-shadow: 0 0 10px rgba(0, 224, 255, .2);
}

@media (max-width: 768px) {
  .filters-bar {
    padding: 1rem;
  }

  .filters-container {
    gap: 1rem;
  }

  .filters-container label {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }

  .filters-container .filter-select {
    min-width: 100px;
    flex: 1;
  }

  .filters-container .btn-clear {
    flex: 1 1 100%;
    margin-left: 0;
  }
}

/* Hide old sidebar */
.sidebar {
  display: none !important;
}

.sidebar-close,
.filter-header,
.filter-title,
.toggle-icon,
.results-counter {
  color: var(--cyan)
}

/* ========== MAIN CONTENT ========== */
.main-content {
  margin-left: 0;
  /* No sidebar */
  padding: 20px;
  padding-top: 140px;
  /* Navbar + Filters */
  min-height: calc(100vh - 78px);
  width: 100%;
}

/* ========== TOOLBAR ========== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--panel);
  border: var(--b1);
  border-radius: var(--radius);
  box-shadow: var(--glow);
}

.btn-filter-mobile {
  display: none
}

.view-toggle {
  display: flex;
  gap: 8px
}

.view-btn {
  padding: 8px 16px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .25s;
  font-weight: 600;
  font-size: .9rem;
}

.view-btn.active {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: #fff;
  border-color: transparent
}

.view-btn:hover:not(.active) {
  background: rgba(0, 224, 255, .1)
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid rgba(0, 224, 255, .3);
  border-radius: 8px;
  background: #1b1b22;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.results-info {
  margin-left: auto;
  color: var(--muted);
  font-size: .9rem
}

/* ========== VISTA LISTA ========== */
.grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.grid.list-view .card {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.grid.list-view .card .carousel {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  margin-bottom: 0
}

.grid.list-view .card .card-body {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.grid.list-view .card h3 {
  margin-top: 0;
  text-align: left
}

.grid.list-view .card .contact-buttons {
  flex-direction: row;
  margin-top: 12px
}

/* ========== RESPONSIVE ========== */
@media (max-width:1024px) {
  .sidebar {
    width: 260px
  }

  .main-content {
    margin-left: 0;
    /* No sidebar on tablet */
  }
}

@media (max-width:768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: .3s;
    z-index: 1500;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(0, 224, 255, .2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
  }

  .main-content {
    margin-left: 0;
    padding: 12px;
    padding-top: 230px;
  }

  .btn-filter-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .view-toggle {
    width: 100%;
    justify-content: center;
  }

  .results-info {
    margin-left: 0;
    text-align: center;
  }

  .grid.list-view .card {
    flex-direction: column;
  }

  .grid.list-view .card .carousel {
    width: 100%;
    max-width: 100%;
  }
}
/* ========== BADGES ========== */
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.badge {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  line-height: 1;
}

.badge.nuevo {
  background: linear-gradient(135deg, #ff006e, #ff3378);
  color: #fff
}

.badge.oferta {
  background: linear-gradient(135deg, #ffd60a, #ffc300);
  color: #000
}

.badge.exclusivo {
  background: linear-gradient(135deg, #7209b7, #560bad);
  color: #fff
}

.badge.verificado {
  background: linear-gradient(135deg, #06ffa5, #00d4aa);
  color: #000
}

/* ========== QUICK FILTERS ========== */
.quick-filters {
  margin-left: 300px;
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, .3);
  border-bottom: 1px solid rgba(0, 224, 255, .15);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-filter-btn {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: var(--muted);
  border-radius: 20px;
  cursor: pointer;
  transition: .25s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
}

.quick-filter-btn.active {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-color: transparent;
  color: #fff
}

.quick-filter-btn:hover:not(.active) {
  border-color: var(--cyan);
  color: var(--cyan)
}

/* ========== PRICE FILTER TOP ========== */
.price-filter-top {
  padding: 12px 20px;
  margin-left: 300px;
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid rgba(0, 224, 255, .1);
}

.price-filter-container {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
}

.price-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
}

.price-inputs-horizontal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-inputs-horizontal input {
  width: 110px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  background: rgba(0, 0, 0, .3);
  color: var(--ink);
  font-size: 0.9rem;
  transition: .25s;
}

.price-inputs-horizontal input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 224, 255, .15);
}

.price-inputs-horizontal input::placeholder {
  color: var(--muted);
}

.price-separator {
  color: var(--muted);
  font-weight: 600;
}

/* ========== NAVBAR IMPROVEMENTS ========== */
.btn-publicate {
  background: linear-gradient(90deg, var(--violet), var(--cyan)) !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0, 224, 255, .3) !important;
}

.btn-publicate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 224, 255, .5) !important
}

/* ========== CARD OVERLAY INFO ========== */
.card-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .7) 50%, transparent 100%);
  color: #fff;
  opacity: 0;
  transition: .3s;
}

.card:hover .card-overlay-info {
  opacity: 1
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  opacity: 0.9
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px
}

/* Mobile adjustments for quick filters and price filter */
@media (max-width: 768px) {
  .quick-filters {
    margin-left: 0;
    padding: 12px;
  }

  .price-filter-top {
    margin-left: 0;
    padding: 12px;
  }

  .price-filter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-inputs-horizontal input {
    width: calc(50% - 25px);
  }
}

/* ========== LOCATION LOADING ========== */
.location-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.loading-spinner {
  animation: spin 2s linear infinite;
  font-size: 1.2rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ========== 8) BOTÓN VOLVER ========== */
#btnVolver {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1300;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--ring);
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: .28s;
}

#btnVolver.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

/* ========== 9) FORMULARIOS (Publícate) ========== */
.form-section {
  max-width: 980px;
  margin: 120px auto 70px;
  padding: 0 16px
}

.form-publicar {
  background: rgba(17, 19, 27, .95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 224, 255, .18);
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(0, 224, 255, .18);
  padding: 26px 22px 34px;
}

.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px
}

.form-publicar input,
.form-publicar select,
.form-publicar textarea {
  flex: 1 1 280px;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0;
  background: #1b1b22;
  color: #fff;
  font-size: .98rem;
  box-shadow: inset 0 0 8px rgba(0, 224, 255, .2);
  transition: box-shadow .25s;
}

.form-publicar input:focus,
.form-publicar select:focus,
.form-publicar textarea:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 224, 255, .45)
}

.btn-enviar {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  color: #fff;
  border: 0;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 0 14px rgba(0, 224, 255, .25);
}

.btn-enviar:hover {
  opacity: .9;
  transform: translateY(-2px)
}

.form-status {
  margin-top: 12px;
  font-size: .95rem;
  color: #aaa
}

/* ========== 10) FOOTER ========== */
footer {
  text-align: center;
  padding: 26px 10px;
  border-top: 2px solid rgba(0, 224, 255, .25);
  margin-top: 60px;
  color: #aaa;
  font-size: .9rem
}

/* ========== 11) AGE GATE ========== */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-card {
  width: min(560px, 92vw);
  background: var(--panel);
  border: var(--b1);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 0 28px rgba(0, 224, 255, .35);
}

.age-card h2 {
  margin: 0 0 6px
}

.age-card p {
  margin: 0 0 16px;
  color: var(--muted)
}

.age-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center
}

.age-actions button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.age-actions button.alt {
  background: linear-gradient(90deg, #303545, #1f2330)
}

/* ===== LOADER ===== */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: #0e0e12;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  animation: fadeIn 0.4s ease;
}

.loader-logo {
  width: 180px;
  height: auto;
  opacity: 0;
  animation: logoFade 2s ease forwards;
}

@keyframes logoFade {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ========== USER MENU IN NAVBAR ========== */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.user-menu-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  display: none;
  z-index: 2000;
  overflow: hidden;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.user-menu-dropdown a:hover {
  background: #f3f4f6;
}

.user-menu-dropdown a.logout {
  color: #dc2626;
  border-top: 1px solid #e5e7eb;
}

.btn-login {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 8px 18px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ========== PASSWORD STRENGTH INDICATOR ========== */
.password-strength {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 33%;
  background: #ef4444;
}

.password-strength-bar.medium {
  width: 66%;
  background: #f59e0b;
}

.password-strength-bar.strong {
  width: 100%;
  background: #10b981;
}

.password-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.password-requirements {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  text-align: left;
}

.password-requirements ul {
  margin: 4px 0;
  padding-left: 20px;
}

.password-requirements li {
  margin: 2px 0;
}

.password-requirements li.valid {
  color: #10b981;
}

.password-requirements li.invalid {
  color: #6b7280;
}
/* Heroicons / Global SVG styling */
.heroicon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-right:4px; }

/* Home Policies Section */
.home-policies {
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 30px;
  background-color: var(--panel);
  border: var(--b1);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-policies p {
  color: var(--t2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.home-policies p:last-child {
  margin-bottom: 0;
}

.home-policies .no-support {
  color: #ef4444; /* Rojo suave para destacar la advertencia técnica */
  font-weight: 600;
  margin-top: 20px;
}

/* Admin Contact Pills */
.admin-contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.footer-contact {
  margin-bottom: 24px;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.pills-wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pill-btn.telegram {
  background: linear-gradient(135deg, #0088cc, #005580);
}

.pill-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

/* =========================================================
   HOME PROMO BANNER
   ========================================================= */

.home-promo-link {
  display: block;
  text-decoration: none;
  margin: 16px 12px 10px;
}

.home-promo-banner {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.88) 0%, rgba(8, 8, 12, 0.58) 42%, rgba(8, 8, 12, 0.12) 100%),
    url('/public/img/banner-promocionate.jpg') center right / cover no-repeat;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 224, 255, 0.08),
    0 0 24px rgba(106, 0, 255, 0.18);
  isolation: isolate;
}

.home-promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 50%, rgba(255, 45, 141, 0.24) 0%, rgba(255, 45, 141, 0) 42%),
    radial-gradient(circle at 70% 20%, rgba(0, 224, 255, 0.18) 0%, rgba(0, 224, 255, 0) 30%);
  z-index: 0;
  pointer-events: none;
}

.home-promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  z-index: 0;
  pointer-events: none;
}

.home-promo-banner__content {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 18px 18px 20px;
}

.home-promo-banner__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.home-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.home-promo-badge--verified {
  background: linear-gradient(135deg, #1ed760, #0ea64b);
  color: #fff;
}

.home-promo-badge--premium {
  background: linear-gradient(135deg, #ffd54a, #ffb300);
  color: #181818;
}

.home-promo-banner__eyebrow {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.home-promo-banner__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(255, 45, 141, 0.2);
}

.home-promo-banner__title span {
  display: block;
  color: #ffffff;
}

.home-promo-banner__text {
  margin: 12px 0 0;
  max-width: 250px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  line-height: 1.45;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.home-promo-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a00ff 0%, #ff2d8d 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 10px 20px rgba(106, 0, 255, 0.25),
    0 0 20px rgba(255, 45, 141, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-promo-link:hover .home-promo-banner__cta,
.home-promo-link:focus-visible .home-promo-banner__cta {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 24px rgba(106, 0, 255, 0.32),
    0 0 24px rgba(255, 45, 141, 0.24);
}

.home-promo-link:hover .home-promo-banner,
.home-promo-link:focus-visible .home-promo-banner {
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 224, 255, 0.12),
    0 0 28px rgba(106, 0, 255, 0.22);
}

@media (min-width: 768px) {
  .home-promo-link {
    margin: 18px auto 8px;
    max-width: 1180px;
    padding: 0 12px;
  }

  .home-promo-banner {
    min-height: 300px;
    border-radius: 22px;
    background:
      linear-gradient(90deg, rgba(8, 8, 12, 0.9) 0%, rgba(8, 8, 12, 0.58) 42%, rgba(8, 8, 12, 0.06) 100%),
      url('/public/img/banner-promocionate.jpg') center left / cover no-repeat;
  }

  .home-promo-banner__content {
    width: min(100%, 560px);
    padding: 26px 28px 28px;
  }

  .home-promo-banner__eyebrow {
    font-size: 15px;
  }

  .home-promo-banner__text {
    max-width: 320px;
    font-size: 14px;
  }

  .home-promo-banner__cta {
    min-height: 46px;
    padding: 0 22px;
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .home-promo-banner {
    min-height: 340px;
  }

  .home-promo-banner__content {
    padding: 30px 32px 32px;
  }

  .home-promo-banner__text {
    max-width: 360px;
  }
}

@media (max-width: 420px) {
  .home-promo-link {
    margin: 16px 10px 10px;
  }

  .home-promo-banner {
    min-height: 205px;
    background:
      linear-gradient(90deg, rgba(8, 8, 12, 0.68) 0%, rgba(8, 8, 12, 0.34) 38%, rgba(8, 8, 12, 0.05) 100%),
      url('/public/img/banner-promocionate.jpg') 90% center / cover no-repeat;
  }

@media (max-width: 420px) {
  .home-promo-link {
    margin: 16px 10px 10px;
  }

  .home-promo-banner {
    min-height: 240px;
    background-image:
      linear-gradient(90deg, rgba(8, 8, 12, 0.62) 0%, rgba(8, 8, 12, 0.28) 36%, rgba(8, 8, 12, 0.02) 100%),
      url('/public/img/banner-promocionate.jpg');
    background-position: left top, 88% top;
    background-size: auto, contain;
    background-repeat: no-repeat, no-repeat;
    background-color: #0e0e12;
  }

  .home-promo-banner__content {
    width: 64%;
    padding: 16px 15px 18px;
  }

  .home-promo-banner__eyebrow {
    font-size: 12px;
  }

  .home-promo-banner__text {
    max-width: 180px;
    font-size: 11.5px;
  }

  .home-promo-banner__cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 11px;
  }
}