/* ==========================================================================
   Widget Maestro — Aeropuertos del Mundo
   Estilos. Ancho fluido: ocupa el 100% del contenedor donde se inserte,
   sin límite máximo propio (si querés limitarlo en una página puntual,
   ponele un max-width al contenedor #widget-maestro-aeropuertos desde el
   CSS del sitio, no hace falta tocar este archivo).
   ========================================================================== */

.wm-widget {
  --wm-navy: #0b2f4c;
  --wm-navy-dark: #082238;
  --wm-accent: #0e7c86;
  --wm-text: #1a2733;
  --wm-muted: #5c6b78;
  --wm-border: #dde3e8;
  --wm-bg: #ffffff;
  --wm-bg-soft: #f4f7f9;
  --wm-radius: 12px;
  --wm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  width: 100%;
  box-sizing: border-box;
  font-family: var(--wm-font);
  color: var(--wm-text);
  background: var(--wm-bg);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius);
  overflow: hidden;
  line-height: 1.4;
}
.wm-widget, .wm-widget *, .wm-widget *::before, .wm-widget *::after {
  box-sizing: border-box;
}

/* ---- Header ---- */
.wm-header {
  background: linear-gradient(135deg, var(--wm-navy), var(--wm-navy-dark));
  color: #fff;
  padding: 20px 24px 16px;
  text-align: center;
}
.wm-header__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.wm-header__title svg { flex: none; width: 24px; height: 24px; }
.wm-header__tagline {
  margin: 8px auto 0;
  max-width: 560px;
  font-size: 13.5px;
  color: #cfe0ea;
  font-weight: 400;
}

/* ---- Buscador ---- */
.wm-search {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid var(--wm-border);
}
.wm-search__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid var(--wm-border);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  color: var(--wm-text);
}
.wm-search__input:focus {
  border-color: var(--wm-accent);
}
.wm-search__dropdown {
  position: absolute;
  left: 20px;
  right: 20px;
  top: calc(100% - 2px);
  background: var(--wm-bg);
  border: 1px solid var(--wm-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(11,47,76,0.12);
  display: none;
}
.wm-search__dropdown.is-open { display: block; }
.wm-search__item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--wm-bg-soft);
}
.wm-search__item:last-child { border-bottom: none; }
.wm-search__item:hover,
.wm-search__item.is-active {
  background: var(--wm-bg-soft);
}
.wm-search__item-nombre { font-size: 14px; font-weight: 600; }
.wm-search__item-meta { font-size: 12.5px; color: var(--wm-muted); }
.wm-search__empty {
  padding: 14px;
  font-size: 13.5px;
  color: var(--wm-muted);
  text-align: center;
}

/* ---- Guías dedicadas ---- */
.wm-guias {
  padding: 14px 20px 18px;
  border-bottom: 1px solid var(--wm-border);
}
.wm-guias__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wm-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.wm-guias__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--wm-border);
  background: var(--wm-bg-soft);
  color: var(--wm-navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.wm-chip:hover {
  background: #e9eff2;
  border-color: var(--wm-accent);
}

/* ---- Aeropuerto seleccionado ---- */
.wm-detalle { padding: 18px 20px 20px; }
.wm-breadcrumb {
  font-size: 12.5px;
  color: var(--wm-muted);
  margin: 0 0 4px;
}
.wm-detalle__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.wm-detalle__nombre {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--wm-navy);
}
.wm-btn-cambiar {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wm-accent);
  background: none;
  border: 1.5px solid var(--wm-accent);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.wm-btn-cambiar:hover { background: rgba(14,124,134,0.08); }

.wm-quick {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.wm-quick a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--wm-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.wm-quick a:hover { background: var(--wm-navy-dark); }

/* ---- Acordeón de temas ---- */
.wm-temas { border-top: 1px solid var(--wm-border); }
.wm-tema { border-bottom: 1px solid var(--wm-border); }
.wm-tema__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--wm-text);
}
.wm-tema__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--wm-accent);
}
.wm-tema__label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
}
.wm-tema__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--wm-muted);
  transition: transform 0.15s;
}
.wm-tema.is-open .wm-tema__chevron { transform: rotate(180deg); }
.wm-tema__body {
  display: none;
  padding: 0 4px 14px 34px;
}
.wm-tema.is-open .wm-tema__body { display: block; }
.wm-tema__resumen {
  font-size: 13.5px;
  color: var(--wm-muted);
  margin: 0 0 8px;
}
.wm-tema__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-accent);
  text-decoration: none;
}
.wm-tema__link:hover { text-decoration: underline; }

/* ---- Estados ---- */
.wm-estado {
  padding: 30px 20px;
  text-align: center;
  color: var(--wm-muted);
  font-size: 13.5px;
}

/* ---- Footer / CTA ---- */
.wm-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--wm-border);
  background: var(--wm-bg-soft);
  text-align: center;
}
.wm-footer a {
  font-size: 11.5px;
  color: var(--wm-muted);
  text-decoration: none;
}
.wm-footer a:hover { color: var(--wm-accent); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 420px) {
  .wm-header { padding: 16px 16px 14px; }
  .wm-search, .wm-guias, .wm-detalle { padding-left: 14px; padding-right: 14px; }
  .wm-quick { flex-direction: column; }
}
