:root{
  --bg: #1E1F23;
  --bg2:#16171A;
  --card:#24262B;
  --text:#F2F4F7;
  --muted:#B8C0CC;
  --accent:#F89039;
  --accent2:#FFB36B;
  --line: rgba(255,255,255,.08);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --hero-image: url('./img/hero.jpg');
  --hero-overlay: rgba(0,0,0,.5);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
}
.wrap{ max-width: var(--max); margin:0 auto; padding: 0 18px; }

.topbar{
  position: sticky; top:0; z-index:50;
  background: rgba(22,23,26,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--text); }
.brand__logo{ height:34px; width:auto; }
.brand__text{ font-weight:800; letter-spacing:.2px; }

.nav{ display:flex; gap:18px; }
.nav__link{ color: var(--muted); text-decoration:none; font-weight:600; font-size:14px; }
.nav__link:hover{ color: var(--text); }
.nav__link.is-active{ color: var(--accent2); }

.actions{ display:flex; gap:10px; align-items:center; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 10px 14px;
  border-radius:10px;
  border: 1px solid var(--line);
  text-decoration:none;
  font-weight:700;
  color: var(--text);
  background: transparent;
}
.btn--primary{ background: var(--accent); border-color: rgba(0,0,0,.15); color:#111; }
.btn--primary:hover{ filter: brightness(1.03); }
.btn--ghost:hover{ border-color: rgba(255,255,255,.18); }
.btn--big{ padding: 11px 18px; }
.btn--xl{ padding: 14px 18px; border-radius:12px; }

.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor:pointer;
}
.hamburger span{
  display:block; height:2px; width:18px;
  background: var(--text);
  margin: 4px auto;
  opacity:.9;
}
.mobile{
  border-top: 1px solid var(--line);
  padding: 10px 18px 16px;
  background: rgba(22,23,26,.92);
}
.mobile__link{
  display:block;
  padding:10px 6px;
  text-decoration:none;
  color: var(--text);
  font-weight:700;
  border-bottom: 1px solid var(--line);
}
.mobile__link--cta{
  margin-top:10px;
  border:0;
  background: var(--accent);
  color:#111;
  border-radius:12px;
  text-align:center;
}

.hero{
  position:relative;
  padding: 74px 0 42px;
  overflow:hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, var(--hero-overlay), rgba(0,0,0,.75)),
    var(--hero-image),
    radial-gradient(1200px 600px at 25% 15%, rgba(248,144,57,.22), transparent 60%),
    radial-gradient(1000px 600px at 70% 20%, rgba(0,115,230,.12), transparent 60%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.hero__content{ position:relative; }
.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--muted);
  font-weight:700;
  font-size:13px;
}
h1{
  margin: 14px 0 10px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing:.6px;
}
.muted{ color: var(--muted); }
.lead{
  margin: 0 0 8px;
  max-width: 56ch;
  color: rgba(242,244,247,.95);
  font-size:18px;
  line-height:1.5;
}
.lead--secondary{ color: rgba(184,192,204,.95); }
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 18px 0 20px; }
.hero__meta{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  max-width:860px;
}
.metaCard{
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}
.metaCard__k{ color: var(--accent2); font-weight:900; margin-bottom:6px; }
.metaCard__v{ color: var(--text); opacity:.92; font-weight:700; }

.section{ padding: 62px 0; }
.section--alt{
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2{ margin:0 0 14px; font-size: clamp(26px, 3vw, 36px); letter-spacing:.3px; }
p{ color: rgba(184,192,204,.95); line-height:1.7; }

.grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items:start;
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card--soft{ background: rgba(255,255,255,.03); }
.bullets{ padding-left:18px; color: rgba(242,244,247,.9); }
.bullets li{ margin: 8px 0; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.chip{
  padding: 8px 10px;
  border-radius:999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  font-weight:800;
  color: rgba(242,244,247,.92);
  font-size:13px;
}
.note{ margin-top:14px; color: rgba(184,192,204,.95); }
.note code{
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 8px;
  color: rgba(242,244,247,.95);
}

.steps{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.step{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.step__n{
  width:34px; height:34px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(248,144,57,.18);
  border: 1px solid rgba(248,144,57,.25);
  color: var(--accent2);
  font-weight:900;
  margin-bottom:10px;
}
.step__t{ font-weight:900; margin-bottom:6px; }
.step__d{ color: rgba(184,192,204,.95); line-height:1.6; }

.ctaRow{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }

.pricing{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.priceCard{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.priceCard--focus{
  border-color: rgba(248,144,57,.28);
  box-shadow: 0 18px 45px rgba(248,144,57,.12);
}
.priceCard__h{ font-weight:900; font-size:18px; margin-bottom:8px; }
.priceCard__p{ color: var(--accent2); font-weight:900; font-size:20px; margin-bottom:12px; }
.priceCard ul{ margin:0 0 14px; padding-left:18px; color: rgba(242,244,247,.9); }

.faq details{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius:12px;
  padding: 12px 14px;
  margin: 10px 0;
}
.faq summary{ cursor:pointer; font-weight:900; }
.faq p{ margin: 10px 0 0; }
.textLink{ color: var(--accent2); font-weight:700; text-underline-offset:3px; word-break:break-word; }
.textLink:hover{ color: var(--accent); }

.footer{
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.3fr 1fr .7fr;
  gap:14px;
  align-items:center;
}
.footer__brand{ display:flex; align-items:center; gap:12px; }
.footer__brand img{ height:34px; width:auto; }
.footer__title{ font-weight:900; }
.footer__muted{ color: rgba(184,192,204,.9); font-size:13px; margin-top:2px; }
.footer__links{ display:flex; flex-wrap:wrap; gap:12px; }
.footer__links a{
  color: rgba(184,192,204,.95);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.footer__links a:hover{ color: var(--text); }
.footer__copy{ text-align:right; color: rgba(184,192,204,.95); font-weight:800; }
.footer__copy .footer__muted{ font-weight:700; }

/* Map block */
.mapBlock{ margin-top: 22px; }
.mapBlock__head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 14px; flex-wrap: wrap; }
.mapBlock__head h3{ margin: 0; font-size: 18px; letter-spacing:.2px; }
.map{ margin-top: 12px; height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow:hidden; box-shadow: var(--shadow); background: rgba(0,0,0,.18); }
.mapLegend{
  display:flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0,0,0,.18);
}
.mapLegend__item{ display:flex; gap: 10px; align-items:center; color: rgba(242,244,247,.92); font-weight: 800; font-size: 12px; }
.mapLegend__note{ width:100%; color: rgba(184,192,204,.95); font-size: 12px; margin-top: 6px; }
.swatch{
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
}
.swatch--light{ background: rgba(251, 156, 48, .5); border-color: rgba(196, 117, 27, .7); }
.swatch--dark{ background: rgba(0, 71, 121, .5); border-color: rgba(12, 45, 69, .7); }

.leaflet-control-zoom a{
  background: rgba(22,23,26,.9);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}
.leaflet-control-attribution{
  background: rgba(22,23,26,.6);
  color: rgba(184,192,204,.9);
}

/* Responsive */
@media (max-width: 980px){
  .nav, .actions{ display:none; }
  .hamburger{ display:block; }
  .grid2{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .pricing{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; text-align:left; }
  .footer__copy{ text-align:left; }
  .hero__meta{ grid-template-columns: 1fr; }
}

/* Access block */
.accessBlock { text-align: center; }

.accessIntro { max-width: 700px; margin: 0 auto 24px; }

.accessFormWrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all .4s ease;
}

.accessFormWrapper.active {
  max-height: 2400px;
  opacity: 1;
  margin-top: 30px;
}

.formGrid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.formField {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.formField label {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.formField input,
.formField select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  color: var(--text);
  font-size: 14px;
}

.formField input:focus,
.formField select:focus {
  outline: none;
  border-color: var(--accent);
}

.formField small {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.formActions {
  margin-top: 20px;
  text-align: center;
}

.accessSuccess {
  display: none;
  margin-top: 30px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}

.successIcon {
  font-size: 28px;
  color: var(--accent2);
  margin-bottom: 10px;
}

.checkboxGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.checkItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}

.checkItem input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* "Otra ubicación" (departamento / municipio) */
.otherLocation { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.otherLocation__text { margin: 0 0 12px; font-weight: 700; }
.otherLocation__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.otherLocation__field { display: flex; flex-direction: column; }
.otherLocation__field select:disabled { opacity: .6; cursor: not-allowed; }
.otherLocation option:disabled { color: #7d8794; }
@media (max-width: 640px) { .otherLocation__row { grid-template-columns: 1fr; } }

/* Map labels */
.leaflet-tooltip.map-label {
  background: rgba(20,21,24,.85);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.leaflet-tooltip.map-label:before { display: none; }

/* FAQ ordered list */
.faq ol { margin: 10px 0 0; padding-left: 22px; }

/* Missing station / location */
.formField.is-invalid { outline: 2px solid #ff6b6b; outline-offset: 6px; border-radius: 8px; }
.formError { margin: 0; color: #ff8a8a; font-weight: 700; text-align: left; }
