/* =====================================================
   AUTOPO Marketplace v2.3.2-fix
   Estilos generales y paleta de colores
   ===================================================== */

/* ---------- Variables globales ---------- */
:root {
  --dark-blue: #05053c;
  --teal: #0EA5A5;
  --teal-2: #0C8E8E;
  --teal-3: #086A6A;
  --celeste: #2fb8ec;
  --rojo: #d91016;
  --gris: #f6f8f9;
  --texto: #222;
  --sombra: rgba(0,0,0,0.08);
  --borde-radius: 5px;
}

/* ---------- Fuente base ---------- */
body {
  font-family: 'ABeeZee', sans-serif;
  background-color: var(--gris);
  color: var(--texto);
  margin: 0;
  padding: 0;
}

/* ---------- Header ---------- */
.main-header { 

  background: linear-gradient(90deg, var(--dark-blue) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 2px 6px var(--sombra);
}
.main-header a {
  color: #05053c !important;
  text-decoration: none;
}
.main-header .navbar-brand {
  font-weight: bold;
  letter-spacing: 0.5px;
}
.main-header .nav-link:hover {
  color: var(--celeste) !important;
}

/* ---------- Buscador hero ---------- */
.hero-search {
  background: url('../img/bg-hero.jpg') center/cover no-repeat;
  padding: 60px 20px;
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.4);
}
.hero-search .search-box {
  background-color: rgba(255,255,255,0.95);
  border-radius: var(--borde-radius);
  box-shadow: 0 3px 8px var(--sombra);
  padding: 15px;
}
.hero-search select,
.hero-search input {
  border-radius: var(--borde-radius);
}

/* ---------- Cards y listas ---------- */
.card,
.list-group-item {
  border-radius: var(--borde-radius);
  box-shadow: 0 2px 6px var(--sombra);
  border: none;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.list-group-item-action:hover {
  background-color: #f0fafa;
}

/* ---------- Botones ---------- */
.btn-primary {
  background-color: var(--teal);
  border-color: var(--teal);
}
.btn-primary:hover {
  background-color: var(--teal-2);
  border-color: var(--teal-2);
}
.btn-outline-primary {
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-primary:hover {
  background-color: var(--teal);
  color: #fff;
}

/* ---------- Badges ---------- */
.badge-dest {
  background-color: var(--rojo);
  color: #fff;
}
.badge {
  border-radius: var(--borde-radius);
}

/* ---------- Footer ---------- */
footer {
  background-color: #fff;
  border-top: 3px solid var(--teal);
  font-size: 0.9rem;
}

/* ---------- Carruseles ---------- */
.carousel-inner img {
  border-radius: var(--borde-radius);
  transition: transform 0.3s ease;
}
.carousel-inner img:hover {
  transform: scale(1.02);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* ---------- Modales ---------- */
.modal-content {
    z-index: 1900;
  border-radius: var(--borde-radius);
  box-shadow: 0 4px 12px var(--sombra);
}
.modal-header {
    z-index: 1900;
  background-color: teal;
  color: #fff;
  border-radius: 1px;
}

/* ---------- Formulario de login / registro ---------- */
.form-control {
  border-radius: var(--borde-radius);
  border: 1px solid #ccc;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(14,165,165,0.25);
}

/* ---------- Chips de filtro ---------- */
.filter-chip {
  background-color: var(--teal-2);
  color: #fff;
  border-radius: var(--borde-radius);
  padding: 5px 10px;
  margin: 3px;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-chip:hover {
  background-color: var(--teal-3);
}

/* ---------- Enlaces y destacados ---------- */
a.text-teal {
  color: var(--teal) !important;
}
a.text-teal:hover {
  color: var(--teal-2) !important;
}
.destacado {
  border: 2px solid var(--rojo);
  box-shadow: 0 0 10px rgba(217,16,22,0.3);
}

/* ---------- Media Queries ---------- */
@media (max-width: 768px) {
  .hero-search {
    padding: 40px 15px;
  }
  .search-box {
    flex-direction: column;
  }
  .card img {
    max-height: 200px;
    object-fit: cover;
  }
  .main-header .navbar-brand {
    font-size: 1.1rem;
  }
}

.text-teal { color: #0EA5A5; }
.list-group-item {
  border: 1px solid #ddd;
  transition: all 0.2s ease-in-out;
}
.list-group-item:hover {
  background-color: #f8f9fa;
  transform: scale(1.01);
}

.dropdown-menu {
  border-radius: 5px;
  border: 1px solid #eee;
}

.dropdown-item:hover {
  background-color: #2fb8ec15;
  color: #05053c;
}


/* HEADER */
.main-header {
  background: linear-gradient(90deg, #05053c 0%, #0C8E8E 50%, #2fb8ec 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  padding: .5rem 0;
}

/* OFFCANVAS (solo visible en mÃ³vil) */
.offcanvas-lg {
  background: linear-gradient(180deg, #0C8E8E 0%, #0C8E8E 100%);
}

.offcanvas-lg .nav-link {
  color: #f5f5f5;
  padding: .5rem 0;
  font-size: 1rem;
  transition: 0.2s;
}

.offcanvas-lg .nav-link:hover {
  color: #2fb8ec;
  background-color: rgba(255,255,255,0.05);
  border-radius: 6px;
}

/* Dropdown en desktop */
.navbar-dark .dropdown-menu {
     z-index: 1100; 
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.navbar-dark .dropdown-item {
     z-index: 1100; 
  color: #05053c;
}
.navbar-dark .dropdown-item:hover {
     z-index: 1100; 
  background-color: #2fb8ec15;
  color: #0C8E8E;
}

/* Oculta botÃ³n hamburguesa en escritorio */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
  .offcanvas-lg {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    height: auto !important;
    background: none !important;
    color: inherit;
    box-shadow: none !important;
  }
  .offcanvas-lg .offcanvas-body {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
  }
}

/* Carrusel publicitario responsivo */
#carouselPublicidad img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: contain;
  background-color: #fff;
}

/* Desactiva zoom t¨¢ctil y selecci¨®n */
.no-zoom {
  touch-action: none;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Indicadores */
#carouselPublicidad .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.4);
}
#carouselPublicidad .carousel-indicators .active {
  background-color: #2fb8ec;
}

/* Flechas */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}
#carouselPublicidad .carousel-control-prev,
#carouselPublicidad .carousel-control-next {
  width: 5%;
}
#carouselPublicidad .carousel-inner {
  border-radius: 2px;
}

