/* ===========================
   BUSCADOR + FILTROS (COMPLETO) — AJUSTADO AL MOCKUP
   =========================== */

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(80, 80, 80, 0.06);
    padding: 1% 1% 1% 1%;
    border-radius: 14px;
    background-image: repeating-linear-gradient(135deg, rgba(189, 189, 189, 0.1) 0px, rgba(189, 189, 189, 0.1) 2px, transparent 2px, transparent 4px), linear-gradient(90deg, rgb(255, 255, 255), rgb(255, 255, 255));
}

/* ------ Tabs ------ */
.tabs {
  display: flex;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 24px;
  justify-content: center;
}
.tab {
  font-weight: 600;
  color: #23294a;
  padding: 12px 28px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  outline: none;
  transition: color .2s, border-color .2s;
  font-family: 'Tajawal';
  font-size: 19px;
  text-transform: uppercase;
}
.tab.active {
  color: #23294a;
  border-bottom: 3px solid #d4182b;
  background: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 20px;
}

/* ------ Barra de búsqueda (texto + icon lupa + mic + botón) ------ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.search-icon {
  font-size: 18px;
  color: #7b8899;
}

.search-bar input {
  border: none;
  background: transparent;
  flex: 1 1 auto;
  min-width: 160px;
  font-size: 16px;
  outline: none;
  color: #1e2430;
}

/* Botón Buscar compacto */
.search-bar .btn-buscar {
  background: #023c65;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Tajawal', sans-serif;
  text-transform: uppercase;
  flex: 0 0 auto;
  letter-spacing: .3px;
}
.search-bar .btn-buscar:hover { background: #0b578a; }

/* Buttons “icon-only” dentro de la barra */
.search-bar button {
  border: none;
  cursor: pointer;
  color: #cb1c2c;
  font-size: 18px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #e7e9ef;
}

/* Texto auxiliar */
.or-search {
  text-align: right;
  margin-bottom: 11px;
  color: #50505a;
  font-weight: 600;
  font-size: 17px;
}



/* Inputs base: namespaced para no romper otros formularios */
.search-container input[type="text"],
.search-container input[type="search"] {
  border: 2px solid #e2e2ea42;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 18px;
  background: #fafbfc;
  color: #023c65;
  outline: none;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  font-family: system-ui;
  font-weight: 400;
  height: auto;
  letter-spacing: 0.31px;
}

.search-container select:focus,
.search-container input[type="text"]:focus,
.search-container input[type="search"]:focus {
  border-color: #b39ddb;
  box-shadow: 0 0 0 3px rgba(179,157,219,.18);
}

/* Botón "TODOS" */
.show-matches-btn {
  flex: 1.5;
  background: #023c65;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  margin-left: 13px;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Tajawal', sans-serif;
  text-transform: uppercase;
}
.show-matches-btn:hover { background: #0b578a; }

/* ------ Meta: pill de resultados + botón Filtros ------ */
.search-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:10px 2px 0;
  gap:10px;
}
.pill-count {
  display:inline-block;
  padding:10px 16px;
  background:#0e3a57;
  color:#fff;
  border-radius:16px;
  font-weight:800;
  font-size:16px;
  letter-spacing:.2px;
  white-space:nowrap;
}
.avanzado {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: #13945f;
  text-align: center;
  line-height: 15px;
  border-radius: 10px;
  height: 42px;
  color: #fff;
  font-family: 'Share Tech';
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}
.avanzado i{ font-size:14px; }

/* ------ Responsive ------ */
@media (max-width: 900px) {
  .search-bar {
    flex-wrap: nowrap;
    display: flex;
    flex-direction: row;
    height: auto;
    background-image: none;
  }
  .search-bar .btn-buscar {
    width: auto;
    font-family: 'Share Tech';
    font-weight: 700;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 700px) {
  .filters-row {
    flex-direction: row;
    gap: 13px;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 8px;
    margin: 0px;
}
  .show-matches-btn {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    padding-top: 14px;
  }
  .filter-group { min-width: 100px; }

  .search-container select,
  .search-container select, .search-container select, .search-container select, .search-container select, .search-container select, .search-container input[type="text"] {
    padding: 2% 6%;
    text-transform: uppercase;
    font-family: 'Share Tech';
    font-weight: 500;
    color: #1e1c1f;
    font-size: 15px;
    border: unset;
    background: #ffffff;
    border-radius: 4px;
    height: 21px;
}
  .search-container input[type="search"] {
    font-weight: 500;
    font-size: 15px;
  }

  .search-container {
    padding: 0%;
    margin-top: 10px;
}
  .destacados-card {
    padding: 20px 26px !important;
    border: 18px solid #f9f9f9 !important;
  }

  .p-destacados {
    font-size: 16px;
    padding: 0px 8px;
    line-height: 18px;
  }

  .destacados-title { font-size: 22px; padding-bottom:10px }

  .search-bar button { background: #ffffff; font-size: 17px; }

  .mic-btn { margin-right: 0px !important; }

  .search-bar input {
    min-width: 140px;
    font-size: 13px;
}

  .search-bar {
    padding: 10px 8px !important;
    border-radius: 0px;
}

  .avanzado {
    font-size: 15px;
    line-height: 14px !important;
    margin: 0;
    padding: 0 12px;
    height: 38px;
  }
}

/* ------ Micrófono ------ */
.mic-btn {
  background: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 18px;
  margin-right: 0;
  color: #4c5a6a;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #e7e9ef;
}
.mic-btn:hover { color: #2d3947; }

/* Estado grabando */
.mic-btn.listening {
  color: #e24444;
  box-shadow: inset 0 0 0 2px #ffd3d3;
  animation: none;
}
.mic-btn .mic-anim {
  display: none;
  font-size: 18px;
}
.mic-btn.listening .fa-microphone { display: none; }
.mic-btn.listening .mic-anim {
  display: inline-block;
  animation: micBlink .9s linear infinite;
}
@keyframes micBlink {
  0%,100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .4; transform: translateY(-1px); }
}

/* Feedback input en grabación */
input.listening {
  border-color: #e24444 !important;
  background: #fff7f7 !important;
}

/* ------ Frase dinámica debajo de la barra ------ */
.buscador-tipeo {
  min-height: 32px;
  font-size: 15.75px;
  font-family: 'Tajawal';
  color: #222;
  border-radius: 6px;
  background: none;
  border: none;
  letter-spacing: .3px;
  white-space: pre-line;
  outline: none;
  transition: color .13s;
  display: flex;
  align-items: center;
  font-weight: 500;
  flex-direction: column;
}
.buscador-tipeo .typewriter-cursor {
  display: inline-block;
  width: 1ch;
  background: none;
  animation: blink .7s steps(1) infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ------ Card de destacados / features ------ */
.destacados-card {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 53px 70px;
  max-width: 1200px;
  border: 30px solid #f9f9f9;
  background: linear-gradient(rgba(255, 255, 255, 0.76), rgba(249, 249, 249, 1)), url(/inicio/img/fondo%20concesionaria%20virtual.webp) center bottom / cover no-repeat;
}

/* Título */
.destacados-title{
  margin:0 0 12px;
  font-size:28px;
  line-height:1.2;
  font-weight:800;
  color:#0f2742;
  font-family: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Grid 2 columnas */
.destacados-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 36px;
}

/* Ítem */
.feature{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:22px;
  color:#0f2742;
}

/* Iconos */
.feature i{
  font-size:24px;
  line-height:1;
  color:#0f2742;
  margin-top:3px;
}

/* Responsive */
@media (max-width: 800px){
  .destacados-grid{ grid-template-columns:1fr; }
  .feature{ padding: 6px 10px; }
}
.feature:nth-child(1) i{ color:#19a974; }
.feature:nth-child(3) i{ color:#0f2742; }
.feature:nth-child(2) i{ color:#0f2742; }
.feature:nth-child(4) i{ color:#0f2742; }
