:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --green: #16a34a;
  --green-dark: #15803d;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --warning: #fff7ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, .95);
  color: white;
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-weight: 900; letter-spacing: .04em; }
.brand span { color: #4ade80; }
nav { display: flex; gap: 20px; font-size: 14px; }
nav a { opacity: .86; }
nav a:hover { opacity: 1; }

.hero {
  padding: 72px 0;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 35%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  max-width: 780px;
}
.hero p { font-size: 20px; color: #cbd5e1; max-width: 650px; }
.status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 14px;
}
.primary, .whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
}
.primary { margin-top: 12px; background: #4ade80; color: #052e16; }
.hero-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.hero-card strong { font-size: 26px; }
.hero-card span { margin-top: 8px; color: #cbd5e1; }

.section { padding: 72px 0; }
.section.alt { background: #eef2f7; }
h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.muted { color: var(--muted); margin-top: 0; }

.calculator {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(15,23,42,.07);
}
.field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input, select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 17px;
  background: white;
}
.verified-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px;
}
.verified-row input { width: 20px; min-height: 20px; }
.result-card {
  background: var(--navy);
  color: white;
  padding: 20px;
  border-radius: 16px;
}
.result-card > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
.result-card span { color: #cbd5e1; }
.result-card .total {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 6px;
  padding-top: 18px;
}
.result-card .total strong { color: #4ade80; font-size: 24px; }
.hint {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #f8fafc;
}
.whatsapp {
  width: 100%;
  margin-top: 18px;
  background: var(--green);
  color: white;
}
.whatsapp:hover { background: var(--green-dark); }
.disabled { opacity: .45; pointer-events: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); line-height: 1.6; }

.availability {
  padding: 16px;
  border-radius: 12px;
  background: var(--warning);
  border: 1px solid #fed7aa;
}
.contact { text-align: center; }
footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 28px 0;
  text-align: center;
}

[id] { scroll-margin-top: 88px; }

.quick-access-section {
  padding: 34px 0 20px;
  background: white;
  border-bottom: 1px solid var(--border);
}
.quick-access-section h2 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 34px); }
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick-access-grid a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  opacity: 1;
}
.quick-access-grid a:hover { border-color: #86efac; background: #f0fdf4; }
.quick-access-grid a span { flex: 0 0 auto; font-size: 22px; }
.quick-access-grid a strong { line-height: 1.25; }
.quick-access-grid a:focus-visible,
.mobile-quick-nav a:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .35);
  outline-offset: 3px;
}
.back-to-top-wrap { padding: 20px 0 30px; text-align: right; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #14532d;
  border: 1px solid #86efac;
  border-radius: 12px;
  background: #dcfce7;
  font-weight: 800;
}
.mobile-quick-nav { display: none; }

@media (max-width: 760px) {
  nav { display: none; }
  .hero { padding: 52px 0; }
  .hero-grid, .cards { grid-template-columns: 1fr; }
  .hero-card { min-height: 160px; }
  .section { padding: 52px 0; }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quick-access-section { padding: 26px 0 18px; }
  .quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .quick-access-grid a { min-height: 56px; padding: 10px 12px; font-size: 13px; }
  .quick-access-grid a span { font-size: 20px; }
  .mobile-quick-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #334155;
    background: rgba(15, 23, 42, .97);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .18);
    backdrop-filter: blur(12px);
  }
  .mobile-quick-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px;
    color: #cbd5e1;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    opacity: 1;
  }
  .mobile-quick-nav a > span:first-child { font-size: 18px; }
  .mobile-quick-nav a.is-active { color: #052e16; background: #4ade80; }
  .back-to-top-wrap { padding-bottom: 18px; }
}

@media (max-width: 350px) {
  .quick-access-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== OFERTAS ===== */

.offers-heading{
  margin-bottom:30px;
}

.offers-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}

.offer-card{
  background:#ffffff;
  border-radius:18px;
  padding:24px;
  border:1px solid #e6e6e6;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  transition:.25s;
}

.offer-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.featured-offer{
  border:2px solid #22c55e;
}

.offer-badge{
  display:inline-block;
  background:#22c55e;
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  margin-bottom:16px;
}

.offer-price{
  font-size:28px;
  font-weight:800;
  color:#22c55e;
  margin:18px 0;
}

.bonus-box{
  background:#f6f8fb;
  border-radius:12px;
  padding:14px;
  margin:18px 0;
}

.bonus-box strong{
  display:block;
  margin-bottom:10px;
}

.bonus-box span{
  display:block;
  margin:6px 0;
}

.offer-card .primary{
  width:100%;
  text-align:center;
  display:block;
}

/* ===== NUEVO DISEÑO DE OFERTAS ===== */

.offers-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.offers-heading {
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.daily-offer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  padding: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.35), transparent 35%),
    linear-gradient(135deg, #111827, #172554);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.daily-badge,
.offer-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 15px;
  padding: 7px 13px;
  color: #ffffff;
  background: #16a34a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.exchange-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.exchange-display strong {
  font-size: 30px;
  line-height: 1.15;
}

.exchange-display.compact {
  margin: 18px 0;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.exchange-display.compact strong {
  color: #15803d;
  font-size: 25px;
}

.exchange-label {
  margin: 4px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  opacity: 0.75;
}

.exchange-arrow {
  margin: 6px 0;
  color: #4ade80;
  font-size: 25px;
  font-weight: 900;
}

.offer-bonuses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bonus-line {
  margin: 6px 0;
  font-size: 14px;
}

.offers-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.offer-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.offer-tabs::-webkit-scrollbar,
.offers-track::-webkit-scrollbar {
  display: none;
}

.offer-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.offer-tabs button.is-active {
  color: #ffffff;
  background: #15803d;
  border-color: #15803d;
}

.offer-slide[hidden],
.offer-tabs button[hidden] {
  display: none;
}

.offer-slide {
  min-width: 0;
}

.offers-track .daily-offer {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  margin: 0;
  padding: 25px;
}

.offers-track .daily-offer .offer-action {
  margin-top: auto;
}

.offer-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 5px solid #22c55e;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.card-verified {
  border-top-color: #eab308;
}

.card-verified .offer-badge {
  background: #ca8a04;
}

.card-mlc {
  border-top-color: #0284c7;
}

.card-mlc .offer-badge {
  background: #0284c7;
}

.card-clasica {
  border-top-color: #2563eb;
}

.card-clasica .offer-badge {
  background: #2563eb;
}

.card-prepago {
  border-top-color: #7c3aed;
}

.card-prepago .offer-badge {
  background: #7c3aed;
}

.bonus-box {
  min-height: 105px;
  margin: 4px 0 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 13px;
}

.bonus-box strong {
  display: block;
  margin-bottom: 8px;
}

.offer-action {
  width: 100%;
  margin-top: auto;
  border: 0;
  cursor: pointer;
}

.offers-controls,
.offer-indicators {
  display: none;
}

.offers-controls[hidden],
.offer-indicators[hidden] {
  display: none;
}

.offer-tabs button:focus-visible,
.offer-arrow:focus-visible,
.offer-indicator:focus-visible,
.offer-slide:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .offers-carousel {
    overflow: hidden;
  }

  .offers-track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 4px 7%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 7%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .offer-slide {
    flex: 0 0 86%;
    min-height: 520px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .daily-offer {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
    margin: 0;
    padding: 25px;
  }

  .daily-offer .offer-action {
    margin-top: auto;
  }

  .offers-controls {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }

  .offer-arrow {
    min-width: 48px;
    min-height: 48px;
    color: #ffffff;
    background: #0f172a;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
  }

  .offer-arrow:disabled {
    opacity: .35;
    cursor: default;
  }

  .offer-position {
    color: #475569;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
  }

  .offer-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 32px;
    padding-top: 12px;
  }

  .offer-indicator {
    width: 12px;
    height: 12px;
    padding: 0;
    background: #94a3b8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
  }

  .offer-indicator.is-active {
    width: 30px;
    background: #16a34a;
    border-radius: 999px;
  }
}

@media (max-width: 600px) {
  .offers-heading { margin-bottom: 20px; }
  .offers-track {
    gap: 12px;
    padding-inline: 12px;
    scroll-padding-inline: 12px;
  }
  .offer-slide { flex-basis: calc(100% - 24px); }
}

@media (max-width: 760px) {
  .offers-section {
    overflow-x: clip;
  }

  .offers-carousel {
    display: flex;
    flex-direction: column;
  }

  .offers-track {
    max-width: 100%;
  }

  .offer-slide {
    min-height: 0;
  }

  .offers-track .daily-offer,
  .offer-card {
    padding: 18px;
  }

  .offers-track .daily-offer {
    gap: 10px;
  }

  .offer-slide h3 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.2;
  }

  .daily-badge,
  .offer-badge {
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .offer-card > p,
  .daily-offer > div:first-child > p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .exchange-display,
  .exchange-display.compact {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .exchange-display.compact {
    margin: 7px 0;
  }

  .exchange-display strong {
    font-size: 24px;
  }

  .exchange-display.compact strong {
    font-size: 22px;
  }

  .exchange-label {
    margin: 1px 0;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .exchange-arrow {
    margin: 1px 0;
    font-size: 18px;
    line-height: 1;
  }

  .offer-bonuses {
    gap: 2px;
  }

  .offer-bonuses > strong,
  .bonus-box > strong {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .bonus-box {
    min-height: 0;
    margin: 3px 0 9px;
    padding: 9px 10px;
  }

  .bonus-line {
    margin: 2px 0;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .offer-action {
    min-height: 46px;
    padding-block: 10px;
  }

  .offer-indicators {
    order: 1;
    min-height: 24px;
    padding-top: 8px;
  }

  .offers-controls {
    order: 2;
    margin-top: 3px;
  }
}

@media (max-width: 359px) {
  .offer-tabs button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .offers-track .daily-offer,
  .offer-card {
    padding: 14px;
  }

  .offer-slide h3 {
    font-size: 18px;
  }

  .daily-badge,
  .offer-badge {
    font-size: 10px;
  }

  .offer-card > p,
  .daily-offer > div:first-child > p,
  .bonus-line {
    font-size: 12px;
  }

  .bonus-line {
    white-space: normal;
  }

  .exchange-display strong {
    font-size: 22px;
  }

  .exchange-display.compact strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card,
  .offer-indicator {
    transition: none;
  }
}

/* ===== MEJORAS CALCULADORA DE EFECTIVO ===== */

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.cash-amount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

.cash-form input:disabled {
  color: #94a3b8;
  background: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.78;
}

.cash-form select.is-incomplete {
  color: #991b1b;
  background: #fff1f2;
  border-color: #dc2626;
}

.cash-currency-requirement {
  margin: -4px 0 18px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cash-currency-requirement[hidden] {
  display: none;
}

.cash-form input:focus-visible,
.cash-form select:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.3);
  outline-offset: 2px;
}

.cash-location-search {
  position: relative;
  z-index: 5;
}

.cash-location-suggestions {
  position: absolute;
  top: calc(100% - 12px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.cash-location-option,
.cash-location-empty {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font: inherit;
}

.cash-location-option {
  cursor: pointer;
}

.cash-location-option:hover,
.cash-location-option[aria-selected="true"] {
  background: #dcfce7;
}

.cash-location-option:focus-visible,
.cash-location-search input:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.3);
  outline-offset: 2px;
}

.cash-location-empty {
  color: var(--muted);
  font-weight: 700;
}

.cash-status.is-error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(248, 113, 113, 0.45);
}

.quick-amount {
  padding: 9px 15px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.quick-amount:hover,
.quick-amount.active {
  color: #ffffff;
  background: #16a34a;
  border-color: #16a34a;
}

.cash-result {
  padding: 24px;
  background: #111827;
  color: #ffffff;
  border-radius: 20px;
}

.cash-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  font-weight: 700;
}

.cash-result-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cash-result-row span {
  opacity: 0.75;
}

.cash-result-row strong {
  text-align: right;
}

.cash-total {
  margin-top: 18px;
  padding: 18px;
  text-align: center;
  background: #16a34a;
  border-radius: 15px;
}

.cash-total span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cash-total strong {
  font-size: 30px;
}

.cash-note {
  margin: 16px 0;
  font-size: 13px;
  opacity: 0.75;
}

.cash-whatsapp {
  width: 100%;
}

.cash-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 850px) {
  .cash-calculator {
    grid-template-columns: 1fr;
  }

  .cash-amount-control {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
}
