/* ═══════════════════════════════════════════════════════════════════════════
   Tasas del día — shortcode [tasas_giros_aleyn]
   ═══════════════════════════════════════════════════════════════════════════ */

.ag-tasas-wrapper {
  font-family: 'Outfit', sans-serif;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.ag-tasas-tabs-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ag-tasas-tabs-wrap.ag-hidden { display: none !important; }

.ag-tasas-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid #163E3F;
  background: transparent;
  color: #163E3F;
  line-height: 1;
}
.ag-tasas-tab:hover {
  background: rgba(22, 62, 63, 0.06);
}
.ag-tasas-tab.ag-tasas-tab-active {
  background: linear-gradient(120deg, #163E3F 14.657%, #47A599 128.32%);
  border-color: transparent;
  color: #ffffff;
}
.ag-tasas-tab .ag-tasas-tab-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7e7e7;
  flex-shrink: 0;
}
.ag-tasas-tab .ag-tasas-tab-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.ag-tasas-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ag-tasa-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(169.7deg, #FFFFFF, #DAEDEB);
  box-shadow: 0px 4px 20px rgba(22, 62, 63, 0.1);
  border-radius: 14px;
  transition: box-shadow 0.18s;
}
.ag-tasa-card:hover {
  box-shadow: 0px 6px 28px rgba(22, 62, 63, 0.16);
}

.ag-tasa-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ag-tasa-flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7e7e7;
  flex-shrink: 0;
}
.ag-tasa-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.ag-tasa-pais {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ag-tasa-nombre {
  font-size: 16px;
  font-weight: 600;
  color: #020606;
  line-height: 1.25;
}
.ag-tasa-moneda {
  font-size: 13px;
  font-weight: 500;
  color: #5a6a6a;
}

.ag-tasa-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.ag-tasa-label {
  font-size: 11px;
  font-weight: 600;
  color: #5a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.ag-tasa-valor {
  font-size: 24px;
  font-weight: 700;
  color: #163E3F;
  line-height: 1.15;
  white-space: nowrap;
}
.ag-tasa-valor small {
  font-size: 16px;
  font-weight: 500;
  color: #163E3F;
  margin-left: 2px;
}

/* Contenedor de los dos botones apilados en columna */
.ag-tasa-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.ag-tasa-btn {
  width: 100%;
  padding: 14px 26px;
  background: linear-gradient(125deg, #163E3F 14.657%, #47A599 128.32%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
  white-space: nowrap;
  line-height: 1;
}
.ag-tasa-btn:hover {
  opacity: 0.92;
}
.ag-tasa-btn:active {
  transform: scale(0.97);
}

/* Botón "Compartir" — ancho completo, borde verde, transparente.
   El tema trae un reset con `[type="button"] { border:1px solid #cc3366; ... }`
   cuya especificidad (0,1,0) empata la de una clase y gana por orden de carga.
   Por eso: (1) se prefija con .ag-tasas-wrapper para subir especificidad a
   (0,2,0), y (2) se marcan !important las propiedades que el reset disputa,
   para blindar el componente ante ese reset y ante el reordenado de LiteSpeed. */
.ag-tasas-wrapper .ag-tasa-btn-share {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px !important;
  background: transparent !important;
  border: 2px solid #163E3F !important;
  border-radius: 6px !important;
  color: #163E3F !important;
  font-family: 'Outfit', sans-serif;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.ag-tasas-wrapper .ag-tasa-btn-share:hover,
.ag-tasas-wrapper .ag-tasa-btn-share:focus,
.ag-tasas-wrapper .ag-tasa-btn-share:active {
  background: transparent !important;
  border: 2px solid #163E3F !important;
  color: #163E3F !important;
}
/* Focus con color de marca (no el azul por defecto), accesible por teclado */
.ag-tasas-wrapper .ag-tasa-btn-share:focus,
.ag-tasas-wrapper .ag-tasa-btn-share:focus-visible {
  outline: 2px solid #163E3F !important;
  outline-offset: 2px !important;
}
.ag-tasas-wrapper .ag-tasa-btn-share .ag-tasa-share-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Botón "Compartir todas las tasas" — al final del listado, SÓLIDO con
   gradiente (distinto a los botones con borde de las cards). Figma 293:2. */
.ag-tasas-wrapper .ag-tasas-share-all-wrap {
  margin-top: 18px;
  display: flex;
}
.ag-tasas-wrapper .ag-tasas-share-all-btn {
  width: 100%;
  display: block;
  padding: 10px 18px !important;
  background: linear-gradient(132.88deg, #163E3F 14.657%, #47A599 128.32%) !important;
  border: none !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  text-align: center;
  cursor: pointer;
}
/* Sin efecto hover: idéntico en reposo y hover */
.ag-tasas-wrapper .ag-tasas-share-all-btn:hover,
.ag-tasas-wrapper .ag-tasas-share-all-btn:active {
  background: linear-gradient(132.88deg, #163E3F 14.657%, #47A599 128.32%) !important;
  color: #ffffff !important;
}
/* Focus con color de marca (no el azul del navegador), accesible por teclado */
.ag-tasas-wrapper .ag-tasas-share-all-btn:focus,
.ag-tasas-wrapper .ag-tasas-share-all-btn:focus-visible {
  outline: 2px solid #163E3F !important;
  outline-offset: 2px !important;
}

/* ── Responsive (≤ 1024px) ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ag-tasas-wrapper { max-width: 100%; }

  .ag-tasas-tabs-wrap {
    justify-content: center;
  }
  .ag-tasas-tab {
    font-size: 14px;
    padding: 10px 18px;
  }

  .ag-tasa-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }
  .ag-tasa-info { flex: none; }
  .ag-tasa-rate { align-items: flex-start; }
  .ag-tasa-btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 15px;
  }
}
