/* ============================================================
   4 ROUTE TRANSPORTATION — CALCULATOR STYLES
   ============================================================
   Estilos específicos de la página de la calculadora.
   El sistema responsive (menú hamburguesa, breakpoints)
   es idéntico al del home (styles.css).
   ============================================================ */

/* ============================================================
   1. VARIABLES Y RESET
   ============================================================ */
:root {
  --yellow: #ffc928;
  --black: #0c0c0d;
  --ink: #17181b;
  --muted: #686b70;
  --soft: #f7f7f4;
  --white: #fff;
  --line: #e8e5dc;
  --y: #ffca28;
  --b: #111;
  --cream: #fff9dd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: white;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   2. TIPOGRAFÍA
   ============================================================ */
.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
}


/* ============================================================
   3. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--yellow);
  color: #111;
  padding: 17px 22px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 0;
  cursor: pointer;
  box-shadow: 5px 5px 0 #111;
  transition: 0.2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #111;
}

.btn-small {
  padding: 13px 17px;
  box-shadow: none;
}

.dark-btn {
  background: #111;
  color: white;
  box-shadow: 5px 5px 0 white;
}


/* ============================================================
   4. HEADER / NAVEGACIÓN
   ============================================================ */
.nav {
  height: 94px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  gap: 36px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: 170px;
  height: 57px;
  object-fit: contain;
}

.brand small {
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  margin-top: 3px;
  color: #555;
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 0.84rem;
  font-weight: 600;
}

.nav nav a:hover {
  color: #a57d00;
}

.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

.lang-toggle {
  border: 1px solid #d9d9d2;
  background: #fff;
  padding: 10px 11px;
  font-weight: 800;
  cursor: pointer;
  min-width: 46px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--yellow);
  color: #111;
  border-color: var(--yellow);
}

.lang-toggle:active {
  transform: scale(0.96);
}


/* ============================================================
   5. HERO (calculadora)
   ============================================================ */
.hero {
  background: #050505;
  color: #fff;
  min-height: 235px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 7vw;
  border-bottom: 5px solid var(--y);
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  width: 700px;
  height: 300px;
  border: 5px solid #bd941b;
  border-radius: 50%;
  right: -180px;
  bottom: -260px;
}

.hero img {
  width: 220px;
  background: #000000;
}

.hero small {
  color: var(--y);
  font-weight: 800;
  letter-spacing: 0.23em;
}

.hero h1 {
  font: 800 clamp(3rem, 5.5vw, 5.2rem) / 0.9 "Barlow Condensed";
  margin: 10px 0;
}

.hero h1 em {
  color: var(--y);
}

.hero p {
  color: #ccc;
  margin: 0;
  max-width: 760px;
}


/* ============================================================
   6. MAIN / BASICS
   ============================================================ */
main {
  padding: 25px 5vw 70px;
}

.basics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.basics label {
  background: #111;
  color: #fff;
  padding: 14px;
  border-top: 4px solid var(--y);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.basics span {
  display: flex;
  align-items: center;
  background: white;
  color: #555;
  border-radius: 7px;
  padding-left: 12px;
  margin-top: 9px;
  font-size: 1.1rem;
}

.basics input {
  width: 100%;
  border: 0;
  padding: 12px;
  font: bold 1rem Inter;
  background: transparent;
  outline: none;
}


/* ============================================================
   7. WORKSPACE
   ============================================================ */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.72fr);
  gap: 16px;
  align-items: start;
}


/* ============================================================
   8. EXPENSES (tabla de gastos)
   ============================================================ */
.expenses,
aside {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.section-title,
.aside-title {
  background: var(--y);
  padding: 17px 20px;
}

.section-title h2,
.aside-title h2 {
  margin: 0;
  font: 800 1.6rem "Barlow Condensed";
}

.section-title p,
.aside-title p {
  font-size: 0.68rem;
  margin: 3px 0;
}

.table-head,
.expense-row {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr 0.6fr 0.55fr;
  align-items: center;
}

.table-head {
  background: #111;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.table-head b {
  padding: 12px;
  border-right: 1px solid #333;
}

.category {
  background: #282828;
  color: white;
  padding: 13px 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.expense-row {
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.expense-row > * {
  padding: 8px 12px;
  border-right: 1px solid var(--line);
}

.expense-row label {
  font-weight: 600;
}

.money-input {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid #e6ddb5;
  border-radius: 7px;
  padding: 0 10px !important;
  margin: 5px;
}

.money-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
  padding: 8px;
  font: bold 0.85rem Inter;
  outline: none;
}

.metric {
  text-align: right;
}


/* ============================================================
   9. ASIDE (resultados)
   ============================================================ */
aside {
  position: sticky;
  top: 98px;
  border: 1px solid #eee;
}

aside dl {
  margin: 0;
  padding: 12px 16px;
}

aside dl div,
.target div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.75rem;
}

aside dd {
  font-weight: 800;
}

.cost-box {
  margin: 8px 16px;
  background: #111;
  color: white;
  border: 2px solid var(--y);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.cost-box span {
  display: block;
  color: var(--y);
  font-size: 0.7rem;
  font-weight: 800;
}

.cost-box strong {
  font: 800 3rem "Barlow Condensed";
  color: var(--y);
}

.target,
.breakdown {
  margin: 12px 16px;
  border: 1px solid #e5e2d5;
  border-radius: 10px;
  overflow: hidden;
}

.target h3,
.breakdown h3 {
  margin: 0;
  padding: 11px;
  background: #fff2bd;
  font-size: 0.7rem;
}

.target div {
  padding: 10px;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--y) 0 25%, #111 25% 82%, #777 82%);
  margin: 18px auto;
  display: grid;
  place-items: center;
  position: relative;
}

.donut:before {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
}

.donut span {
  z-index: 1;
  text-align: center;
  font-size: 0.6rem;
}

.donut b {
  display: block;
  font-size: 0.85rem;
}

.breakdown #legend {
  padding: 0 12px 12px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  padding: 5px 0;
}

.buttons {
  display: grid;
  gap: 7px;
  margin: 15px;
}

.buttons button {
  padding: 12px;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.buttons button:first-child {
  background: var(--y);
  color: #111;
}

.buttons button:last-child {
  background: #eee;
  color: #333;
}

.disclaimer {
  font-size: 0.6rem;
  line-height: 1.5;
  color: #777;
  padding: 0 16px 18px;
}


/* ============================================================
   10. CTA
   ============================================================ */
.cta {
  width: 100%;
  padding: 55px 7vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: #fff;
  box-sizing: border-box;
}

.cta > div {
  border-top: 4px solid var(--y);
  background: #f6f6f3;
  padding: 25px;
}

.cta h3 {
  font: 700 1.4rem "Barlow Condensed";
  text-transform: uppercase;
  margin: 0 0 8px;
}

.cta p {
  font-size: 0.75rem;
  color: #666;
  margin: 0 0 14px;
}

.cta a {
  font-size: 0.68rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.05em;
}


/* ============================================================
   11. FOOTER
   ============================================================ */
footer {
  padding: 50px 6vw;
  background: #101113;
  color: white;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 5vw;
}

footer .brand img {
  background: #101113;
  width: 165px;
}

footer .brand small {
  color: #aaa;
}

footer > p {
  color: #aaa;
  font-size: 0.82rem;
}

footer > div {
  display: flex;
  gap: 18px;
  font-size: 0.75rem;
}

footer > small {
  grid-column: 1/-1;
  border-top: 1px solid #2c2d30;
  padding-top: 24px;
  color: #777;
}


/* ============================================================
   12. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: #25D366;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
  transform: translateY(0) scale(0.98);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  display: block;
}


/* ============================================================
   13. RESPONSIVE (idéntico al del home / styles.css)
   ============================================================ */

/* --- 1050px --- */
@media (max-width: 1050px) {
  .nav nav {
    gap: 16px;
  }

  .nav {
    gap: 16px;
  }
}

/* --- 780px --- */
@media (max-width: 780px) {
  .lang-toggle {
    margin-left: auto;
  }

  .nav .menu {
    order: 4;
  }

  .nav .lang-toggle {
    order: 3;
  }

  .nav {
    height: 82px;
    padding: 0 20px;
  }

  .nav nav,
  .nav > .btn {
    display: none;
  }

  .menu {
    display: block;
  }

  .nav.open nav {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 25px;
    border-bottom: 1px solid var(--line);
  }

  .brand img {
    width: 145px;
    height: 46px;
  }

  .hero {
    padding: 45px 24px;
  }

  .hero > img {
    display: none;
  }

  main {
    padding: 20px 24px 55px;
  }

  .basics,
  .workspace,
  .cta {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
  }

  .table-head {
    display: none;
  }

  .expense-row {
    grid-template-columns: 1fr 1fr;
  }

  .expense-row .metric {
    display: none;
  }

  .category {
    margin-top: 8px;
  }

  .cta {
    padding: 45px 24px;
  }

 footer {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    justify-items: center;
  }

  /* El logo y el texto del brand centrados */
  footer .brand {
  align-items: center;
  width: 100%;
  text-align: center;
}

  /* El eslogan "More Miles..." centrado */
  footer > p {
    margin: 0;
  }

  /* Los enlaces en 2 filas (3 columnas cada una) */
  footer > div {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 12px 24px;
    margin-left: 0;
    font-size: 0.8rem;
  }

  /* El copyright abajo, ocupando toda la fila */
  footer > small {
    grid-column: 1;
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}