/* =========================================================
   TRAVEL NOW · COMPONENTE DINÁMICO DE BANDERAS
   Usado en pages/visaspais/*.html mediante layout/componente_bandera.js
========================================================= */
.country-switcher {
  padding: clamp(28px, 5vw, 54px) var(--container-pad, 20px) clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at top right, rgba(46,159,145,.10), transparent 34%),
    var(--color-bg-soft, #f5f6f8);
}

.country-switcher .country-switcher-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.country-switcher .section-header {
  margin-bottom: 22px;
}

.country-switcher .paises-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
  margin-top: 0;
}

.country-switcher .pais-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid rgba(7,60,121,.11);
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-text, #0f172a);
  box-shadow: 0 12px 28px rgba(7,60,121,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.country-switcher .pais-row:hover,
.country-switcher .pais-row:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(46,159,145,.42);
  box-shadow: 0 18px 38px rgba(7,60,121,.13);
  outline: none;
}

.country-switcher .pais-flag,
.country-switcher .pais-flag-emoji {
  width: 74px;
  height: 52px;
  flex: 0 0 74px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.country-switcher .pais-flag {
  display: block;
  object-fit: cover;
}

.country-switcher .pais-flag-emoji {
  display: grid;
  place-items: center;
  color: #073c79;
  background: linear-gradient(135deg, rgba(46,159,145,.13), rgba(78,150,200,.14));
  font-size: 1.35rem;
}

.country-switcher .pais-info {
  min-width: 0;
  flex: 1;
}

.country-switcher .pais-name {
  color: #073c79;
  font-size: .95rem;
  line-height: 1.1;
  font-weight: 800;
}

.country-switcher .pais-region {
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
  margin-top: 4px;
}

.country-switcher .pais-arrow {
  margin-left: auto;
  color: #4E96C8;
  font-size: .78rem;
}

.country-switcher .pais-row-back {
  border-color: rgba(46,159,145,.24);
}

@media (max-width: 760px) {
  .country-switcher .paises-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .country-switcher .pais-row {
    min-height: 74px;
    padding: 12px;
    gap: 10px;
    border-radius: 16px;
  }

  .country-switcher .pais-flag,
  .country-switcher .pais-flag-emoji {
    width: 58px;
    height: 40px;
    flex-basis: 58px;
    border-radius: 10px;
  }

  .country-switcher .pais-name {
    font-size: .84rem;
  }

  .country-switcher .pais-region {
    font-size: .68rem;
  }
}

@media (max-width: 430px) {
  .country-switcher .paises-table {
    grid-template-columns: 1fr;
  }
}
