/* repostar.app v2 — design system
   Identity: the roadside price totem. Light utilitarian pages; the totem panel is
   the only dark, loud element. Type: Barlow Condensed (signage) + Barlow (body). */

:root {
  --papel: #F6F7F5;
  --blanco: #FFFFFF;
  --asfalto: #171C24;
  --asfalto-2: #232A35;
  --azul: #0A5BC4;
  --azul-oscuro: #084A9E;
  --verde: #178A43;
  --ambar: #D97C06;
  --rojo: #C92A1E;
  --tinta: #1D232C;
  --tinta-2: #5A6472;
  --tinta-3: #6E7783; /* 4.6:1 on --papel — keeps captions WCAG AA legible */
  --linea: #E3E6E1;
  --radio: 14px;
  --ancho: 1020px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --cuerpo: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--tinta);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--tinta-2);
}
.nav-links a:hover { color: var(--tinta); text-decoration: none; }

.nav-cta {
  background: var(--azul);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--azul-oscuro); text-decoration: none; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  font-size: 13px;
  color: var(--tinta-3);
  padding: 14px 0 0;
}
.crumbs a { color: var(--tinta-3); }
.crumbs a:hover { color: var(--azul); }

/* ---------- Page head ---------- */

.page-head { padding: 26px 0 10px; }

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--tinta);
}

.updated {
  margin-top: 8px;
  font-size: 14px;
  color: var(--tinta-2);
}
.updated strong { color: var(--verde); font-weight: 700; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  color: var(--tinta);
}

.section { padding: 34px 0 6px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-note { font-size: 14px; color: var(--tinta-3); white-space: nowrap; }
.section-link { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* ---------- Totem (signature element) ---------- */

.totem {
  /* deep petrol → teal → green: mirrors the CTA gradient's spectrum */
  background: linear-gradient(135deg, #0E2A40 0%, #175A74 55%, #2A7B9B 78%, #57C785 100%);
  border-radius: var(--radio);
  padding: 6px 22px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 42, 64, 0.28);
}

.totem-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
}
.totem-row + .totem-row { border-top: 1px solid rgba(255, 255, 255, 0.09); }

.totem-fuel {
  font-family: var(--display);
  font-weight: 700;
  /* 80% of the price digits — totem-style, fuel name almost as loud as the number */
  font-size: clamp(32px, 5.6vw, 45px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  flex: 1;
  min-width: 0;
}
.totem-fuel small {
  display: block;
  font-family: var(--cuerpo);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
}

.totem-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.totem-price span {
  font-size: 0.42em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 2px;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--cuerpo);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.delta.down { color: #4ADE80; background: rgba(74, 222, 128, 0.13); }
.delta.up { color: #F87171; background: rgba(248, 113, 113, 0.12); }
.delta.flat { color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }

.totem-note {
  padding: 10px 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* Hero layout: totem + savings aside */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px 0 8px;
}
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

.savings-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.savings-card .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1;
  color: var(--verde);
  font-variant-numeric: tabular-nums;
}
.savings-card .big span { font-size: 0.5em; }
.savings-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tinta-2);
}
.savings-sub { font-size: 13.5px; color: var(--tinta-3); }

/* ---------- Finder (search + geo) ---------- */

.finder {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cuerpo);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--azul);
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
}
.geo-btn:hover { background: var(--azul-oscuro); }
.geo-btn:disabled { opacity: 0.6; cursor: wait; }

.finder-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--linea);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--papel);
}
.finder-field input {
  border: 0;
  background: transparent;
  font-family: var(--cuerpo);
  font-size: 15px;
  width: 100%;
  color: var(--tinta);
}
.finder-field input:focus { outline: none; }
.finder-field:focus-within { border-color: var(--azul); }

.finder-search { flex: 1; min-width: 220px; position: relative; }
.finder-search .finder-field { width: 100%; min-width: 0; }

.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  list-style: none;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(23, 28, 36, 0.14);
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.suggest li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}
.suggest li strong { font-weight: 600; color: var(--tinta); }
.suggest li span { font-size: 13px; color: var(--tinta-3); white-space: nowrap; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: rgba(10, 91, 196, 0.08); }
.suggest li[aria-selected="true"] strong { color: var(--azul); }
.suggest .no-results { color: var(--tinta-3); cursor: default; font-size: 14px; }
.suggest .no-results:hover { background: none; }

.geo-status { width: 100%; font-size: 13.5px; color: var(--tinta-2); min-height: 0; }
.geo-status:empty { display: none; }

/* ---------- Municipality grid ---------- */

.muni-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.muni-grid a {
  display: block;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--tinta);
  transition: border-color 0.15s, transform 0.15s;
}
.muni-grid a:hover {
  text-decoration: none;
  border-color: var(--azul);
  transform: translateY(-1px);
}
.muni-name { display: block; font-weight: 700; font-size: 16.5px; }
.muni-meta { display: block; font-size: 13px; color: var(--tinta-3); margin-top: 2px; }
.muni-price { display: block; font-size: 14px; color: var(--tinta-2); margin-top: 6px; }
.muni-price strong { color: var(--verde); font-variant-numeric: tabular-nums; }

/* ---------- Station table ---------- */

.stations { list-style: none; }
.station {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 8px;
}
.station.cheapest { border-color: var(--verde); box-shadow: 0 0 0 1px var(--verde); }

.station-rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--tinta-3);
  min-width: 22px;
  text-align: right;
}

.station-info { flex: 1; min-width: 0; }
.station-brand {
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.station-addr {
  font-size: 13.5px;
  color: var(--tinta-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}
.badge.lowcost { color: var(--azul); background: rgba(10, 91, 196, 0.09); }
.badge.h24 { color: var(--ambar); background: rgba(217, 124, 6, 0.1); }
.badge.cheapest-tag { color: var(--verde); background: rgba(23, 138, 67, 0.1); }

.station-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.station-price span { font-size: 14px; font-weight: 700; color: var(--tinta-3); }
.price-cheap { color: var(--verde); }
.price-mid { color: var(--ambar); }
.price-high { color: var(--rojo); }

/* ---------- Fuel summary cards ---------- */

.fuel-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 18px 0 0;
}
.fuel-cards li {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 14px 16px;
}
.fc-label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.fc-min {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  color: var(--verde);
  margin-top: 3px;
}
.fc-min small { font-size: 13px; font-weight: 700; color: var(--tinta-3); }
.fc-meta { display: block; font-size: 12.5px; color: var(--tinta-3); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Comparison block ---------- */

.compare { list-style: none; }
.compare li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 6px;
}
.compare li span { flex: 1; font-size: 15px; color: var(--tinta-2); }
.compare li strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.compare li strong.cmp-own { color: var(--verde); }
.cmp-delta { font-style: normal; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-delta.down { color: var(--verde); }
.cmp-delta.up { color: var(--rojo); }

.table-note { font-size: 13.5px; color: var(--tinta-3); margin-top: 10px; max-width: 640px; }

/* ---------- Prose / context blocks ---------- */

.prose { max-width: 720px; }
.prose p { margin-bottom: 12px; font-size: 16px; color: var(--tinta); }
.prose p strong { font-variant-numeric: tabular-nums; }
.prose h2 { margin: 26px 0 10px; }
.prose h3 { font-family: var(--display); font-size: 21px; margin: 20px 0 8px; }
.prose ul, .prose ol { margin: 0 0 12px 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 8px;
}
.faq summary {
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 22px;
  color: var(--tinta-3);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; font-size: 15px; color: var(--tinta-2); }

/* ---------- Province list ---------- */

.prov-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.prov-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 10px;
  color: var(--tinta);
  font-weight: 600;
  font-size: 14.5px;
}
.prov-list a:hover { text-decoration: none; border-color: var(--azul); }
.prov-list a span { color: var(--tinta-3); font-size: 13px; font-weight: 400; }

/* ---------- App CTA ---------- */

.app-cta {
  margin: 40px 0 10px;
  background: #2A7B9B;
  background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 64%, rgba(237, 221, 83, 1) 100%);
  border-radius: var(--radio);
  padding: 30px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.app-cta h2 { color: #fff; }
.app-cta p { color: #FFFFFF; font-size: 15px; max-width: 480px; margin-top: 6px; }
.app-cta .grow { flex: 1; min-width: 250px; }

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--asfalto);
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.btn-appstore:hover { text-decoration: none; transform: translateY(-1px); }
.btn-appstore svg { width: 22px; height: 22px; }

/* ---------- App page: HTML iPhone mockups ---------- */

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 26px 0 10px;
}
@media (max-width: 820px) {
  .app-hero { grid-template-columns: 1fr; }
  .app-hero .phone-wrap { order: 2; }
}

.app-hero h1 { margin-bottom: 12px; }
.app-hero .lead { font-size: 17px; color: var(--tinta-2); max-width: 460px; margin-bottom: 18px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.trust-row li {
  font-size: 13px;
  font-weight: 700;
  color: var(--tinta-2);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 99px;
  padding: 6px 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--asfalto);
  color: #fff;
  border-radius: 14px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 17px;
}
.store-btn:hover { text-decoration: none; transform: translateY(-1px); }
.store-btn svg { width: 22px; height: 22px; }

/* the phone */

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 296px;
  background: #101318;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(14, 42, 64, 0.30), 0 4px 14px rgba(14, 42, 64, 0.18);
  flex-shrink: 0;
}
.phone-screen {
  background: #F2F3F7;
  border-radius: 39px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
  position: relative;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #10141A;
}
.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: #101318;
  border-radius: 12px;
}

/* map screen */

.ph-search {
  margin: 8px 12px 6px;
  background: #E4E6EB;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12.5px;
  color: #7A8290;
}
.ph-pills { display: flex; gap: 5px; padding: 0 12px 8px; }
.ph-pill {
  font-size: 11px;
  font-weight: 600;
  color: #3A404A;
  background: #FFFFFF;
  border: 1px solid #E2E4E9;
  border-radius: 99px;
  padding: 4px 9px;
  white-space: nowrap;
}
.ph-pill.on { background: var(--azul); border-color: var(--azul); color: #fff; }

.ph-map { flex: 1; position: relative; overflow: hidden; background: #EFEDE4; }
.ph-map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }

.ph-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translate(-50%, -100%);
}
.ph-pin .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ph-pin.cheap .dot { background: var(--verde); }
.ph-pin.mid .dot { background: var(--ambar); }
.ph-pin.high .dot { background: var(--rojo); }
.ph-pin .tag {
  background: #fff;
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #10141A;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums;
}
.ph-me {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--azul);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(10, 91, 196, 0.18);
  transform: translate(-50%, -50%);
}

.ph-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 8px 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid #E2E4E9;
  font-size: 10px;
  font-weight: 600;
  color: #8A93A0;
}
.ph-tabbar span.on { color: var(--azul); }

/* detail screen */

.ph-sheet { flex: 1; padding: 10px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 9px; }
.ph-station { display: flex; align-items: center; gap: 9px; }
.ph-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.ph-station b { font-size: 15.5px; color: #10141A; display: block; }
.ph-station small { font-size: 11px; color: #7A8290; display: block; line-height: 1.3; }

.ph-chips { display: flex; gap: 6px; }
.ph-chip {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 99px;
  padding: 4px 9px;
}
.ph-chip.blue { color: var(--azul); background: rgba(10, 91, 196, 0.10); }
.ph-chip.orange { color: var(--ambar); background: rgba(217, 124, 6, 0.12); }

.ph-price-card {
  background: rgba(23, 138, 67, 0.10);
  border-radius: 13px;
  text-align: center;
  padding: 10px 8px;
}
.ph-price-card .fuel { font-size: 11.5px; font-weight: 700; color: var(--verde); }
.ph-price-card .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--verde);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ph-price-card .fill { font-size: 11px; color: #5A6472; }
.ph-price-card .save { font-size: 11px; font-weight: 700; color: var(--verde); }

.ph-chart {
  background: #fff;
  border-radius: 13px;
  padding: 10px 12px 6px;
}
.ph-chart .head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #10141A; margin-bottom: 4px; }
.ph-chart .head span:last-child { color: var(--verde); }
.ph-chart svg { width: 100%; height: auto; display: block; }
.ph-chart .legend { display: flex; gap: 12px; font-size: 9.5px; color: #8A93A0; padding: 4px 0 2px; }

.ph-rows { background: #fff; border-radius: 13px; padding: 2px 12px; }
.ph-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid #F0F1F4; color: #3A404A; }
.ph-row:last-child { border-bottom: 0; }
.ph-row b { font-variant-numeric: tabular-nums; }
.ph-row b.g { color: var(--verde); }

.ph-cta {
  background: var(--azul);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
}

/* second phone section */

.app-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 30px 0 8px;
}
@media (max-width: 820px) {
  .app-split { grid-template-columns: 1fr; }
}

/* ---------- Guide cards ---------- */

.post-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.post-grid a {
  display: block;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 18px;
  color: var(--tinta);
}
.post-grid a:hover { text-decoration: none; border-color: var(--azul); }
.post-grid li.plain {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 18px;
}
.post-title { display: block; font-weight: 700; font-size: 17px; line-height: 1.3; }
.post-desc { display: block; font-size: 14px; color: var(--tinta-2); margin-top: 6px; }

/* ---------- Footer ---------- */

footer {
  margin-top: 56px;
  background: var(--asfalto);
  color: rgba(255, 255, 255, 0.55);
  padding: 36px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
footer h5 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 7px; }
footer a { color: rgba(255, 255, 255, 0.55); }
footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* ---------- Sticky mobile app bar ---------- */

.app-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(23, 28, 36, 0.97);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
}
.app-bar p { color: #fff; font-size: 13.5px; font-weight: 600; flex: 1; line-height: 1.3; }
.app-bar a {
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
.app-bar a:hover { text-decoration: none; }
.app-bar button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
@media (max-width: 700px) {
  .app-bar.show { display: flex; }
  body.has-app-bar { padding-bottom: 66px; }
}
