/* Mas Transport landing. Mobile-first, system fonts, no external dependencies. */

:root {
  --navy: #0f2742;
  --navy-soft: #173759;
  --amber: #f5a100;
  --amber-hover: #ffb52e;
  --ink: #14202e;
  --muted: #475a6e;
  --bg: #ffffff;
  --soft: #f3f6fa;
  --line: #d9e1ea;
  --link: #0b5cad;
  --error: #b42318;
  --error-bg: #fef3f2;
  --ok: #05603a;
  --ok-bg: #ecfdf3;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 39, 66, 0.06), 0 8px 24px rgba(15, 39, 66, 0.08);
  --gutter: 20px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

ul,
ol { margin: 0 0 1em; padding-left: 1.3em; }

li + li { margin-top: 0.35em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li { margin-top: 0; }

.site-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover { background: var(--navy-soft); }

.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }

.site-nav a.nav-cta {
  background: var(--amber);
  color: var(--navy);
}

.site-nav a.nav-cta:hover { background: var(--amber-hover); }

.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}

.btn-primary:hover { background: var(--amber-hover); }

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-badges li + li { margin-top: 0; }

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  min-height: 56px;
  padding: 8px 20px;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.store-badge:hover { background: #1b1b1b; }
.store-badge small { font-size: 0.72rem; opacity: 0.85; }
.store-badge strong { font-size: 1.1rem; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding-block: 48px 56px;
}

.hero .container {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero h1 { color: #fff; }

.hero .lead {
  font-size: 1.15rem;
  color: #dbe5f0;
  max-width: 38em;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 161, 0, 0.18);
  color: #ffc861;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-art {
  max-width: 420px;
  margin-inline: auto;
}

/* ---------- Sections ---------- */

.section { padding-block: 56px; }
.section-soft { background: var(--soft); }

.section-head {
  max-width: 40em;
  margin-bottom: 32px;
}

.section-head p { color: var(--muted); font-size: 1.08rem; }

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li + li { margin-top: 0; }

.steps li {
  position: relative;
  counter-increment: step;
  padding: 24px 24px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.steps p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h2 { font-size: 1.5rem; }

.tick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 30px;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--ok);
  border-bottom: 3px solid var(--ok);
  transform: rotate(-45deg);
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p { margin: 0; color: var(--muted); }

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding-block: 56px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe5f0; max-width: 36em; margin-inline: auto; }
.cta-band .store-badges { justify-content: center; margin-top: 24px; }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding-block: 40px;
}

.page-head h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 0.3em; }
.page-head p { color: var(--muted); margin: 0; max-width: 42em; }

.page-body { padding-block: 40px 64px; }

/* ---------- Legal / prose ---------- */

.prose { max-width: 48rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }

.notice {
  margin-bottom: 28px;
  padding: 14px 18px;
  border-left: 5px solid var(--amber);
  background: #fff8e6;
  border-radius: var(--radius-sm);
  color: #5a3d00;
}

.toc {
  margin-bottom: 32px;
  padding: 18px 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 { font-size: 1rem; margin: 0 0 0.5em; }
.toc ol { margin: 0; columns: 1; }

.table-wrap { overflow-x: auto; margin-bottom: 1.2em; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: var(--soft); color: var(--navy); }

/* ---------- Forms ---------- */

.contact-layout {
  display: grid;
  gap: 40px;
}

.form { max-width: 38rem; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
}

.field .optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #8a99ab;
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 1px;
  border-color: var(--link);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--error); }

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
}

.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Honeypot: moved off-screen instead of display:none so naive bots still fill it. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status[hidden] { display: none; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #a6e4c3; }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 1px solid #f4b8b2; }

.channels {
  align-self: start;
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channels h2 { font-size: 1.3rem; }
.channels dl { margin: 0; }
.channels dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.channels dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- Eliminar cuenta ---------- */

.steps-plain {
  padding-left: 1.4em;
}

.steps-plain li + li { margin-top: 0.7em; }

/* ---------- 404 ---------- */

.not-found {
  padding-block: 80px;
  text-align: center;
}

.not-found .code {
  margin: 0;
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}

.not-found p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cfdae7;
  padding-block: 36px;
  font-size: 0.95rem;
}

.site-footer .container {
  display: grid;
  gap: 20px;
}

.site-footer a { color: #fff; }

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li { margin-top: 0; }
.site-footer p { margin: 0; }

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 32px; }

  .hero { padding-block: 72px 80px; }
  .hero .container { grid-template-columns: 1.15fr 0.85fr; }
  .section { padding-block: 80px; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 2; }
  .site-footer .container { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
