:root {
  --blue: #3366cc;
  --teal: #2e9caa;
  --teal-dark: #1f8d9b;
  --teal-deep: #1b7e8c;
  --teal-soft: #cdeaef;
  --navy: #16386b;
  --navy-2: #1b3b73;
  --orange: #ea6a1e;
  --amber: #ef9e3b;
  --ink: #3a4658;
  --muted: #6b7688;
  --line: #e4e9f0;
  --bg: #ffffff;
  --font-scale: 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ===== GOV.CO bar ===== */
.govco-bar { background: var(--blue); }
.govco-inner {
  max-width: 1180px; margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.govco-brand { display: flex; align-items: center; gap: 8px; }
.govco-shield {
  width: 16px; height: 18px; display: inline-block;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.5 9.5 8 11 4.5-1.5 8-6 8-11V5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.5 9.5 8 11 4.5-1.5 8-6 8-11V5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.govco-logo { height: 19px; display: block; }
.lang-toggle { display: flex; gap: 6px; }
.lang {
  border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff;
  font-family: inherit; font-weight: 700; font-size: .8rem; cursor: pointer;
  padding: 4px 12px; border-radius: 4px;
}
.lang.active { background: #fff; color: var(--blue); border-color: #fff; }

/* ===== Sub header ===== */
.subheader { background: #fff; border-bottom: 1px solid var(--line); }
.subheader-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.gob-logos { height: 46px; width: auto; }
.subheader-text {
  margin: 0; color: var(--navy); font-weight: 600; font-size: .82rem; line-height: 1.3;
}

/* ===== Main nav ===== */
.mainnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  color: var(--navy); font-weight: 600; font-size: .9rem;
}
.nav-links a:hover { background: #eef2f8; }
.nav-links a.active { background: var(--navy); color: #fff; }
.btn-citas {
  background: var(--orange); color: #fff; font-weight: 700; font-size: .86rem;
  padding: 11px 18px; border-radius: 6px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(234,106,30,.35); letter-spacing: .2px;
}
.btn-citas:hover { background: #d65d16; }
.btn-citas .caret { font-size: .7rem; }

/* ===== Accessibility toolbar ===== */
.a11y-bar {
  position: fixed; right: 0; top: 42%; z-index: 60;
  display: flex; flex-direction: column; gap: 6px;
}
.a11y-bar button {
  width: 40px; height: 40px; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-family: inherit; font-weight: 800;
  font-size: .9rem; border-radius: 8px 0 0 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.a11y-bar button:hover { background: var(--navy-2); }

/* ===== Hero ===== */
.hero { max-width: 1180px; margin: 26px auto 0; padding: 0 24px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(100deg, var(--teal) 0 42%, #eef6f8 42% 100%);
  display: grid; grid-template-columns: 42% 58%; min-height: 360px;
}
.hero-left { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero-woman {
  position: relative; z-index: 2; max-height: 380px; width: auto;
  margin-bottom: -2px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.12));
}
.hero-right { display: flex; flex-direction: column; justify-content: center; padding: 36px 48px; z-index: 2; }
.hero-title {
  margin: 0 0 8px; color: var(--teal-deep); font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: .5px;
}
.hero-sub { margin: 4px 0; color: #41506a; font-weight: 500; font-size: clamp(1rem, 1.8vw, 1.45rem); }
.hero-sub strong { color: var(--teal-deep); font-weight: 800; }
.hero-big {
  margin: 2px 0 14px; color: var(--teal-deep); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.05;
}
.blob { position: absolute; background: rgba(255,255,255,.35); border-radius: 50%; z-index: 1; }
.blob-tr { width: 150px; height: 150px; top: -60px; right: 8%; background: rgba(46,156,170,.18); }
.blob-br { width: 240px; height: 120px; bottom: -50px; right: -30px; background: rgba(46,156,170,.16); border-radius: 50% 50% 0 0; }

/* ===== Section titles ===== */
.section-title {
  text-align: center; color: var(--navy); font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 54px 16px 26px;
}

/* ===== Availability ===== */
.availability { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.avail-card {
  border: 1.5px solid var(--teal-soft); border-radius: 16px; background: #f7fcfd;
  padding: 28px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.avail-text h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.2rem; }
.avail-text p { margin: 0; color: var(--muted); max-width: 640px; }
.avail-btn {
  background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem;
  padding: 13px 28px; border-radius: 8px; white-space: nowrap;
}
.avail-btn:hover { background: var(--navy-2); }

/* ===== Steps carousel ===== */
.steps { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.carousel { display: flex; align-items: center; gap: 8px; }
.car-viewport { overflow: hidden; flex: 1; }
.car-track {
  display: flex; gap: 20px; transition: transform .4s ease;
}
.step-card {
  flex: 0 0 calc((100% - 60px) / 4); min-width: 0;
  border: 1.5px solid var(--teal-soft); border-radius: 14px; background: #fff;
  padding: 0 18px 22px; display: flex; flex-direction: column; position: relative;
}
.step-tab {
  align-self: center; margin-top: -14px; margin-bottom: 14px;
  background: #6cc0cc; color: #fff; font-weight: 800; letter-spacing: 1px;
  padding: 6px 22px; border-radius: 8px; font-size: .82rem;
}
.step-tab.tab-done { background: var(--teal); }
.step-illus {
  background: var(--teal-soft); border-radius: 12px; overflow: hidden;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-illus img { width: 100%; height: 100%; object-fit: cover; }
.step-title { margin: 0 0 12px; text-align: center; color: var(--navy); font-size: 1.05rem; font-weight: 800; }
.step-rule { width: 64px; border: none; border-top: 2px solid var(--teal); margin: 0 auto 14px; }
.step-desc { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.step-desc[style] { text-align: left; }
.step-actions { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.step-btn {
  background: var(--navy); color: #fff; font-weight: 700; font-size: .82rem;
  padding: 9px 18px; border-radius: 7px; text-align: center; min-width: 150px;
}
.step-btn:hover { background: var(--navy-2); }
.car-arrow {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--teal-soft); background: #fff; color: var(--navy);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.car-arrow:hover { background: #f0fafb; border-color: var(--teal); }
.car-arrow:disabled { opacity: .35; cursor: default; }
.car-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.car-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none;
  background: #c7d2e0; cursor: pointer;
}
.car-dots button.active { background: var(--blue); }

/* ===== Important message ===== */
.important { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; }
.important-box { background: var(--amber); color: #fff; border-radius: 14px; padding: 26px 32px; margin-top: 44px; }
.important-title { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; border-bottom: 2px solid rgba(255,255,255,.45); padding-bottom: 10px; }
.important-box p { margin: 0 0 12px; font-weight: 500; font-size: .92rem; line-height: 1.55; }
.important-box p:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cdd7e6; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 32px 24px; text-align: center; }
.footer-logo { height: 22px; margin-bottom: 14px; }
.footer-inner p { margin: 6px auto; max-width: 720px; font-size: .85rem; }
.footer-note { color: #9fb2cc; }

/* ===== Chat FAB ===== */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
}
.chat-fab:hover { background: var(--navy-2); }

/* ===== High contrast mode ===== */
body.contrast { background: #000; color: #fff; }
body.contrast .subheader, body.contrast .mainnav, body.contrast .step-card,
body.contrast .avail-card { background: #111; border-color: #444; }
body.contrast .section-title, body.contrast .step-title, body.contrast .nav-links a,
body.contrast .subheader-text, body.contrast .avail-text h3 { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .step-card { flex: 0 0 calc((100% - 20px) / 2); }
  .hero-card { grid-template-columns: 38% 62%; }
}
@media (max-width: 720px) {
  .subheader-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: .82rem; }
  .hero-card { grid-template-columns: 1fr; background: #eef6f8; }
  .hero-left { background: linear-gradient(180deg, var(--teal), var(--teal-dark)); border-radius: 22px 22px 0 0; padding-top: 18px; }
  .hero-woman { max-height: 300px; }
  .hero-right { padding: 24px; text-align: center; }
  .step-card { flex: 0 0 100%; }
  .avail-card { flex-direction: column; align-items: flex-start; }
}
