* { box-sizing: border-box; }

/* ===========================
   BASE LAYOUT
=========================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b3870; /* corporate blue backdrop */
  color: #222;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  background: #002f6c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.logo-img { height: 32px; width: auto; }
.logo-text { font-weight: 600; letter-spacing: 0.5px; font-size: 17px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}

.nav-links a.active { border-bottom: 2px solid #2fb0ff; }
.nav-links a:hover { color: #2fb0ff; }

.lang-toggle {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #2fb0ff;
  background: transparent;
  color: #2fb0ff;
  font-size: 11px;
  cursor: pointer;
}

/* Hamburger */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
}

/* ===========================
   LAYOUT
=========================== */
.content {
  max-width: 1080px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* ===========================
   HERO (Home)
=========================== */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}
.home-hero h1 {
  font-size: 28px;
  color: #002f6c;
  margin-bottom: 10px;
}
.home-hero p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.hero-actions { display: flex; gap: 10px; margin-bottom: 10px; }

.btn {
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.btn.primary { background: #002f6c; color: #fff; }
.btn.outline { border: 1px solid #002f6c; color: #002f6c; background: transparent; }

.hero-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* ===========================
   PAGE CONTENT
=========================== */
.page-title {
  font-size: 24px;
  color: #002f6c;
  margin-bottom: 8px;
}
.page-text { font-size: 15px; line-height: 1.7; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #001b3a;
  color: #fff;
  padding: 20px 16px 14px;
  margin-top: 40px;
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  font-size: 13px;
}
.footer-grid h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #2fb0ff;
}
.footer-grid a {
  color: #d5e4ff;
  text-decoration: none;
  font-size: 13px;
}
.footer-grid a:hover { color: #2fb0ff; }
.footer-copy { text-align: center; font-size: 11px; color: #9fb4d1; }

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 1100;
}

/* ===========================
   TASA PAGE STYLES
=========================== */
:root {
  --card:#111a2b; --text:#e8f0ff; --muted:#9fb4d1; --accent:#2fb0ff;
  --good:#1ecb6b; --bad:#ff5a5a; --border:#1e2a42;
}
.content .tasa-wrap {
  max-width:980px;
  margin:0 auto;
  text-align:center;
}
.tasa-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 6px 8px 14px;
}
.tasa-title {
  margin:0;
  font-size:28px;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
  transform:scale(1.12);
}
.timestamp { color: var(--muted); font-size: 13px; }

.table-card {
  display:inline-block;
  background:linear-gradient(180deg, rgba(14,22,38,.9), rgba(14,22,38,.85));
  border:1px solid var(--border);
  border-radius:18px;
  padding:10px 16px 14px;
  color:var(--text);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}
.table-head {
  display:grid;
  grid-template-columns: auto auto 32px;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-size:13px;
  padding:10px 0;
  border-bottom:1px solid var(--border);
}
.table-body .table-row {
  display:grid;
  grid-template-columns: auto 32px;
  gap:8px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px dashed rgba(255,255,255,.08);
  transition: transform 240ms ease, background 240ms ease, opacity 240ms ease;
  opacity:0; transform:translateY(6px);
}
.table-body .table-row.show { opacity:1; transform:translateY(0); }
.pair { display:block; perspective:900px; }
.pair-inner {
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 520ms cubic-bezier(.2,.6,.2,1);
  padding: 0 2px;
  will-change: transform;
}
.table-row.flip .pair-inner { transform: rotateX(-180deg); }
.pair-inner, .pair-inner * { backface-visibility: hidden; }
.rate { font-variant-numeric: tabular-nums; }
.right { text-align:right; }
.delta.up{ color:var(--good); }
.delta.down{ color:var(--bad); }
.delta.flat{ color:var(--muted); }
.spinner{ display:grid; place-items:center; padding:8px; height:36px; }
@keyframes fillSpinner{ from{stroke-dasharray:0 120;} to{stroke-dasharray:120 120;} }
.spinner svg{ opacity:.9; animation: fillSpinner 4.2s linear forwards; }
.disclaimer{ color:var(--muted); font-size:12px; padding:10px 0 0; text-align:left; }

/* ===========================
   RESPONSIVE ADJUSTMENTS
=========================== */
@media (max-width: 900px) { .home-hero { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 52px;
    right: 0;
    background: #002f6c;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    gap: 10px;
    min-width: 200px;
    display: none;
  }
  .nav-links.active { display: flex; }
  .menu-icon { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tasa-title { font-size:24px; }
  .timestamp { font-size:12px; }
}

/* ===========================
   WHITE CARD OVERLAY (ALL EXCEPT TASA)
=========================== */
.bg-card-page:not(.tasa-page) {
  background: #0b3870 url("img/_old/background.png") no-repeat center / cover;
}
.bg-card-page:not(.tasa-page) .content {
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  border-radius: 10px;
  padding: 24px 18px 26px;
  margin: 20px auto 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.bg-card-page:not(.tasa-page) .page-title { color: #002f6c; margin-top: 0; }
.bg-card-page:not(.tasa-page) .page-text { color: #222; }

/* ===========================
   CARGA PAGE (LOGO NORMALIZATION)
=========================== */
.shipping-logos img {
  max-height: 45px;
  width: auto;
  margin: 8px 12px;
  vertical-align: middle;
  object-fit: contain;
}
@media (max-width: 600px) {
  .shipping-logos img { max-height: 38px; margin: 6px; }
}

/* ===========================
   HEADER APP ICON (FINAL)
=========================== */
.navbar .app-icon,
.nav-links .app-icon,
.lang-toggle .app-icon {
  height: 28px;
  width: auto;
  max-width: 32px;
  vertical-align: middle;
  border-radius: 6px;
}
@media (max-width:600px){
  .navbar .app-icon,
  .nav-links .app-icon,
  .lang-toggle .app-icon {
    height: 24px;
    max-width: 28px;
  }
}

/* ===========================
   BOUNCE HAMBURGER
=========================== */

@keyframes nav-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.menu-bounce {
  animation: nav-bounce 0.55s ease-out;
}