/* ==========================================================================
   Estilos del sitio. Sin fuentes externas, sin dependencias.
   Mobile-first. Contraste pensado para WCAG AA.
   ========================================================================== */

:root {
  --ink: #1c1a2e;
  --ink-muted: #4a4760;
  --indigo-900: #14102f;
  --indigo-800: #1f1b4d;
  --indigo-700: #2d2766;
  --amber: #ffb347;
  --amber-soft: #ffd27a;
  --coral: #e4572e;
  --green: #0a7a3f;
  --green-dark: #07602f;
  --link: #3f2a8f;
  --surface: #ffffff;
  --surface-alt: #f6f3fa;
  --border: #d9d4e6;
  --field-border: #6b6885;
  --error: #b3261e;
  --focus: #1a4fd6;
  --radius: 1rem;
  --container: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* --- Foco visible ------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.hero__copy {
  --focus: #ffd27a;
}

main:focus {
  outline: none;
}

/* --- Utilidades ---------------------------------------------------------- */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 48rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  border-radius: 0.5rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  background: var(--indigo-800);
  color: #fff;
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  background: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
}

.site-nav a:hover {
  text-decoration: underline;
}

.nav-hide-sm {
  display: none;
}

@media (min-width: 40rem) {
  .nav-hide-sm {
    display: list-item;
  }
}

/* --- Botones ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  cursor: pointer;
}

.btn svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.btn--wa {
  width: 100%;
  background: var(--green);
  color: #fff;
}

.btn--wa:hover {
  background: var(--green-dark);
}

.btn--wa:active {
  transform: translateY(1px);
}

.btn--inline {
  width: auto;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5.5rem 0 9rem;
  overflow: hidden;
  color: #fff;
  background: var(--indigo-900);
}

/* Reserva abajo el espacio donde se ve el colectivo, escalado igual que el SVG (slice). */
.hero {
  padding-bottom: calc(max(100vw / 1200, 100svh / 900) * 186 + 1.5rem);
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 7, 32, 0.74) 0%,
    rgba(10, 7, 32, 0.5) 38%,
    rgba(10, 7, 32, 0) 66%
  );
  pointer-events: none;
}

.hero__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--amber-soft);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  text-shadow: 0 2px 18px rgba(10, 7, 32, 0.65);
}

.hero__lead {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: #f6f3ff;
  text-shadow: 0 1px 10px rgba(10, 7, 32, 0.7);
}

@media (min-width: 62rem) {
  .hero {
    padding-top: 6.5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    gap: 3rem;
  }

  .hero__copy {
    padding-top: 1.5rem;
  }
}

/* --- Tarjeta del buscador ------------------------------------------------ */

.search-card {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: 1.25rem;
  color: var(--ink);
  background: var(--surface);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(10, 7, 32, 0.5);
}

@media (min-width: 40rem) {
  .search-card {
    padding: 1.75rem;
  }
}

@media (min-width: 62rem) {
  .search-card {
    margin-inline: 0 0;
    justify-self: end;
  }
}

.search-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.search-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.required {
  color: var(--error);
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--field-border);
  border-radius: 0.75rem;
}

.field input:focus-visible,
.field select:focus-visible {
  outline-offset: 2px;
  border-color: var(--focus);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin: 0;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

.field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 26rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-status {
  margin: 0;
  font-size: 0.925rem;
  font-weight: 600;
  color: #0a5a2f;
}

/* Se mantiene en el árbol de accesibilidad (región en vivo) pero sin ocupar espacio cuando está vacía. */
.form-status:empty {
  margin-block: -0.5rem;
}

.form-status.is-error {
  color: var(--error);
}

.consent {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* --- Secciones ----------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}

.section__intro {
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.prose {
  max-width: 42rem;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--amber);
  border-radius: 50%;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact__card {
  font-style: normal;
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact__list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.contact__list dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact__list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .contact {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .contact__list {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__cta {
  padding: 1.5rem;
  color: #fff;
  background: var(--indigo-800);
  border-radius: var(--radius);
}

.contact__cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.contact__cta p {
  color: #ece8fb;
}

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

.site-footer {
  padding: 3rem 0 2rem;
  color: #e9e6f5;
  background: var(--indigo-900);
  font-size: 0.925rem;
}

.site-footer a {
  color: var(--amber-soft);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__brand {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.footer__data {
  margin: 0 0 0.5rem;
  font-style: normal;
}

.footer__legajo {
  margin: 0;
}

.footer__links {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-block;
  padding: 0.3rem 0;
}

.footer__title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-weight: 700;
}

.footer__consumer {
  margin: 0;
}

.footer__copy {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: #cfcae6;
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1.4fr;
  }
}

/* --- Páginas legales ----------------------------------------------------- */

.legal {
  padding: 2rem 0 4rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.925rem;
  color: var(--ink-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
}

.legal__meta {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.4rem;
  scroll-margin-top: 1rem;
}

.legal h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal ul,
.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal address {
  font-style: normal;
}

.toc {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.toc ol {
  margin: 0;
  columns: 1;
}

@media (min-width: 40rem) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

.toc li {
  break-inside: avoid;
}

.notice {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: #fff8e6;
  border-left: 4px solid var(--amber);
  border-radius: 0.5rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.legal-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

/* --- Animaciones del hero (muy sutiles) ---------------------------------- */

.cloud {
  animation: drift 80s ease-in-out infinite alternate;
}

.cloud--2 {
  animation-duration: 110s;
  animation-delay: -30s;
}

.cloud--3 {
  animation-duration: 95s;
  animation-delay: -55s;
}

.road-dash {
  animation: road 5s linear infinite;
}

.bus-bob {
  animation: bob 2.4s ease-in-out infinite alternate;
}

.headlight-beam {
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateX(-35px);
  }

  to {
    transform: translateX(35px);
  }
}

@keyframes road {
  to {
    stroke-dashoffset: 80;
  }
}

@keyframes bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-1.5px);
  }
}

@keyframes glow {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .road-dash,
  .bus-bob,
  .headlight-beam {
    animation: none;
  }

  .btn--wa:active {
    transform: none;
  }
}
