/* ==========================================================
   Skyfleeter — Tarifario 2026
   ========================================================== */

/* ----------------------------------------------------------
   Navbar scrolled — ajustes para botones sobre fondo blanco
   ---------------------------------------------------------- */
.navbar.scrolled .btn-ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
}
.navbar.scrolled .btn-ghost:hover {
  background: var(--surface-3) !important;
  border-color: var(--ink-4) !important;
}

/* ----------------------------------------------------------
   Page header (reemplaza el hero)
   ---------------------------------------------------------- */
.tariff-page-header {
  background: linear-gradient(135deg, #0b1120 0%, #0d2340 100%);
  padding: 6.5rem 2rem 2rem;
  border-bottom: 1px solid rgba(41,171,226,.15);
}

.tariff-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tariff-page-header h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: .3rem 0 0;
  letter-spacing: -.01em;
}

.tariff-page-header h1 span { color: var(--blue); }

.tariff-page-header .section-eyebrow { color: rgba(41,171,226,.8); margin-bottom: .2rem; }

/* ----------------------------------------------------------
   Section commons
   ---------------------------------------------------------- */
.tariff-section {
  padding: 5rem 2rem;
}

.tariff-section--dark {
  background: var(--dark-bg);
  color: #fff;
}

.tariff-section--light {
  background: var(--surface-2);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.tariff-section--dark .section-title { color: #fff; }
.tariff-section--light .section-title { color: var(--ink); }

.section-sub {
  font-size: .97rem;
  margin-bottom: 2.5rem;
}

.tariff-section--dark .section-sub { color: rgba(255,255,255,.6); }
.tariff-section--light .section-sub { color: var(--ink-3); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   Reference Price Table
   ---------------------------------------------------------- */
.table-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.table-controls label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.table-controls select {
  padding: .5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s;
}

.table-controls select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}

.fx-badge {
  font-size: .75rem;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.fx-badge i { font-size: .8rem; }
.fx-badge.fx-ok   { color: #059669; background: rgba(5,150,105,.07); border-color: rgba(5,150,105,.25); }
.fx-badge.fx-warn { color: #d97706; background: rgba(217,119,6,.07);  border-color: rgba(217,119,6,.25); }

.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--s-md);
}

.price-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .9rem;
}

.price-table thead tr {
  background: var(--ink);
  color: #fff;
}

.price-table thead th {
  width: 20%;
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}

.price-table thead th:first-child { text-align: left; border-radius: var(--r-sm) 0 0 0; }
.price-table thead th:last-child  { border-radius: 0 var(--r-sm) 0 0; }

.price-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: var(--blue-faint); }

.price-table td {
  padding: .9rem 1.25rem;
  text-align: center;
  color: var(--ink-2);
}

.col-range {
  text-align: left !important;
  font-weight: 600;
  color: var(--ink) !important;
  white-space: nowrap;
}

.col-best {
  background: rgba(41,171,226,.07);
  font-weight: 600;
  color: var(--blue-dark) !important;
}

.badge-logis {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #059669;
  margin-top: 3px;
}

.row-negotiable td { color: var(--ink-3); font-style: italic; }
.negotiable-cell a { color: var(--blue); text-decoration: none; font-weight: 600; }
.negotiable-cell a:hover { text-decoration: underline; }

.table-notes {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.table-notes p {
  font-size: .82rem;
  color: var(--ink-3);
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* ----------------------------------------------------------
   Calculator Section
   ---------------------------------------------------------- */
.calc-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Form */
.calc-form-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.calc-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}

.calc-field select,
.calc-field input[type="number"] {
  width: 100%;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s, background .2s;
}

.calc-field select:focus,
.calc-field input[type="number"]:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(41,171,226,.08);
  box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}

.calc-field select option { background: #1e293b; color: #fff; }

/* Module checkboxes */
.module-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.mod-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  transition: all .2s var(--ease);
  user-select: none;
}

.mod-label:hover { border-color: rgba(41,171,226,.4); background: rgba(41,171,226,.06); }

.mod-label input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; }
.mod-label input:checked ~ * { color: #fff; }
.mod-label:has(input:checked) {
  border-color: var(--blue);
  background: rgba(41,171,226,.12);
}

.badge-logis-calc {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  background: rgba(5,150,105,.15);
  border: 1.5px solid rgba(5,150,105,.4);
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 600;
  color: #34d399;
}

.badge-logis-calc.hidden { display: none; }

.logis-bonus-badge {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .6rem;
  padding: .55rem .9rem;
  background: rgba(5,150,105,.15);
  border: 1.5px solid rgba(5,150,105,.4);
  border-radius: var(--r-sm);
  font-size: .83rem;
  font-weight: 600;
  color: #34d399;
  animation: fadeInUp .3s ease both;
}
.logis-bonus-badge.hidden { display: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Input with currency prefix */
.input-currency {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .2s;
}

.input-currency:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}

.currency-prefix {
  padding: 0 .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  border-right: 1px solid rgba(255,255,255,.10);
  white-space: nowrap;
}

.input-currency input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: .65rem .9rem !important;
}

.field-hint {
  margin: .4rem 0 0;
  font-size: .77rem;
  color: rgba(255,255,255,.4);
  line-height: 1.4;
}

/* Adm checkbox */
.adm-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.adm-label:hover { border-color: rgba(41,171,226,.3); }
.adm-label:has(input:checked) { border-color: var(--blue); background: rgba(41,171,226,.08); }

.adm-label input[type="checkbox"] { margin-top: 2px; accent-color: var(--blue); width: 15px; height: 15px; flex-shrink: 0; }

.adm-label-text strong {
  display: block;
  font-size: .9rem;
  color: #fff;
  margin-bottom: .2rem;
}

.adm-label-text span {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

/* Results frame */
.results-frame {
  min-height: 200px;
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  border: 1.5px dashed rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  text-align: center;
  color: rgba(255,255,255,.3);
}

.results-placeholder i { font-size: 3rem; color: rgba(41,171,226,.3); }
.results-placeholder p { font-size: .9rem; margin: 0; }

/* Result cards grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.result-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: transform .2s var(--ease);
}

.result-card:hover { transform: translateY(-2px); }

.result-card--main {
  grid-column: 1 / 3;
  background: linear-gradient(135deg, rgba(41,171,226,.18) 0%, rgba(41,171,226,.06) 100%);
  border-color: rgba(41,171,226,.35);
}

.result-card--impl { border-color: rgba(251,191,36,.2); background: rgba(251,191,36,.05); }
.result-card--savings { border-color: rgba(5,150,105,.25); background: rgba(5,150,105,.07); }
.result-card--adm { border-color: rgba(139,92,246,.25); background: rgba(139,92,246,.07); }
.result-card--total {
  grid-column: 1 / -1;
  background: rgba(41,171,226,.08);
  border-color: rgba(41,171,226,.3);
}

.rc-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.5);
}

.rc-label small { text-transform: none; letter-spacing: 0; font-size: .72rem; }

.rc-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.rc-value .rc-sub {
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  margin-left: 3px;
}

.rc-note {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: .15rem;
}

.note-ok   { color: #34d399 !important; }
.note-warn { color: #fbbf24 !important; }

/* Context bar */
.result-context {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-sm);
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

.result-context span {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.result-context i { color: var(--blue); }

/* Negotiable banner */
.negotiable-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: rgba(41,171,226,.08);
  border: 1.5px solid rgba(41,171,226,.25);
  border-radius: var(--r-lg);
  color: #fff;
}

.negotiable-banner > i { font-size: 2rem; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.negotiable-banner strong { display: block; font-size: 1.1rem; margin-bottom: .35rem; }
.negotiable-banner p { font-size: .88rem; color: rgba(255,255,255,.6); margin: 0 0 .75rem; }

/* ----------------------------------------------------------
   Cashflow Section
   ---------------------------------------------------------- */
.cashflow-section { padding: 4rem 2rem 5rem; }
.cashflow-section.hidden { display: none; }

.cashflow-chart-wrap {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--s-md);
  margin-bottom: 2rem;
}

.cashflow-chart-wrap canvas { max-height: 380px; }

.cashflow-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--s-sm);
}

#cashflowTable {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  background: var(--surface);
  min-width: 1100px;
}

#cashflowTable thead tr { background: var(--ink); color: #fff; }
#cashflowTable thead th { padding: .6rem .75rem; text-align: center; font-weight: 600; white-space: nowrap; }
#cashflowTable thead th:first-child { text-align: left; min-width: 200px; }

#cashflowTable tbody td {
  padding: .55rem .75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#cashflowTable tbody td:first-child { text-align: left; font-weight: 600; color: var(--ink); }

.row-pago       td { background: rgba(241,245,249,.6); }
.row-ahorro     td { }
.row-ahorro-real td { background: rgba(5,150,105,.04); }
.row-flow       td { font-weight: 600; }
.row-flow-real  td { font-weight: 600; background: rgba(5,150,105,.04); }

.positive { color: #059669 !important; }
.negative { color: #dc2626 !important; }

.cashflow-note {
  font-size: .78rem;
  color: var(--ink-4);
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

/* ----------------------------------------------------------
   Tariff CTA
   ---------------------------------------------------------- */
.tariff-cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-darker) 100%);
  padding: 4.5rem 2rem;
  text-align: center;
}

.tariff-cta-section h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.tariff-cta-section p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.tariff-cta-section .btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff !important;
}

.tariff-cta-section .btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .calc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .result-card--main { grid-column: 1 / -1; }
  .result-card--total { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .tariff-hero { padding: 7rem 1.5rem 4rem; }
  .tariff-section { padding: 3.5rem 1.25rem; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card--main { grid-column: auto; }
  .module-checks { grid-template-columns: 1fr; }
  .tariff-cta-section h2 { font-size: 1.6rem; }
  .cashflow-section { padding: 3rem 1.25rem; }
}

@media (max-width: 480px) {
  .tariff-hero h1 { font-size: 2.8rem; }
  .section-title { font-size: 1.7rem; }
}
