/* Shared shell for the content/landing pages (404, parking-por-horas,
 * alquilar-mi-plaza-garaje, generated city pages).
 *
 * index.html keeps its own inlined copy of the palette: it is the page most
 * likely to be a visitor's first paint, so it must not wait on a stylesheet.
 * Everything else links this file and gets it from cache after the first hop.
 */

:root {
  --navy: #0A0E1A;
  --navy-2: #11162a;
  --blue: #4266E8;
  --blue-soft: #6f8cff;
  --gray: #B4BDD0;
  --gray-dim: #8a93ab;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 14px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; }

body {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Keyboard users need to see where they are; the dark palette hides the
   default outline almost completely. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark {
  width: 30px; height: 30px;
  background: linear-gradient(155deg, #131a30 0%, #0A0E1A 60%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.brand .mark svg { width: 80%; height: 80%; }
.brand .name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.2px; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; list-style: none; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  text-decoration: none; color: var(--gray);
  font-size: 0.9rem; font-weight: 500;
  padding: 7px 11px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: #fff; }

.nav-collapse { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle {
  display: none; margin-left: auto;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 38px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 9px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- GENERIC LAYOUT ---------- */
main { flex: 1; }

.section { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 72px 24px; }
.section.narrow { max-width: 820px; }
.section.tight { padding-top: 0; }

.eyebrow {
  color: var(--blue-soft); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}

.page-hero {
  position: relative; overflow: hidden;
  padding: 86px 24px 72px;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(40, 55, 110, 0.55) 0%, transparent 60%),
    radial-gradient(120% 90% at -10% 110%, rgba(66, 102, 232, 0.20) 0%, transparent 55%),
    linear-gradient(160deg, #0d1326 0%, var(--navy) 55%, #070a14 100%);
}
.page-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.page-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  font-weight: 700; letter-spacing: -1.2px; line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero .lead {
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  color: var(--gray); max-width: 680px; margin: 0 auto 32px;
}

h2 {
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 10px;
}
h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 6px; }
.accent { color: var(--blue-soft); }

.section > p,
.section > ul,
.section > ol { color: var(--gray); }
.section > p { margin-bottom: 16px; max-width: 760px; }
.sub { color: var(--gray); margin-bottom: 44px; max-width: 760px; }
.section.narrow .sub,
.section.narrow > p { max-width: none; }

.prose ul, .prose ol { margin: 0 0 18px 20px; color: var(--gray); }
.prose li { margin-bottom: 8px; }
.prose strong { color: #fff; }
.prose a { color: var(--blue-soft); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 12px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: #3457d6; }
.btn-primary svg {
  width: 18px; height: 18px; stroke: #fff; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 13px 20px; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-row.left { justify-content: flex-start; }

/* ---------- CARDS / STEPS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-width: 0;
}
.card p { color: var(--gray); font-size: 0.94rem; margin: 0; }
.card .fico {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(150deg, rgba(66, 102, 232, 0.30), rgba(66, 102, 232, 0.10));
  border: 1px solid rgba(111, 140, 255, 0.45);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .fico svg {
  width: 23px; height: 23px; stroke: var(--blue-soft); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.steps { list-style: none; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: flex; gap: 16px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; justify-content: center;
}
.steps .stxt { min-width: 0; }
.steps p { color: var(--gray); font-size: 0.94rem; margin: 0; }

.checklist { list-style: none; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.96rem; color: var(--gray); }
.checklist li::before {
  content: ""; flex: none;
  width: 20px; height: 20px; margin-top: 2px;
  background: no-repeat center/100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8cff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.checklist strong { color: #fff; font-weight: 600; }

/* ---------- CALLOUT ---------- */
.callout {
  border-radius: 20px; border: 1px solid rgba(111, 140, 255, 0.30);
  padding: 44px 40px; text-align: center;
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(66, 102, 232, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, #131b35 0%, #0b1020 100%);
}
.callout h2 { margin-bottom: 10px; }
.callout p { color: var(--gray); margin: 0 auto 26px; max-width: 560px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: no-repeat center/100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 0 20px; color: var(--gray); font-size: 0.95rem; }
.faq-item .faq-body p + p { margin-top: 12px; }
.faq-item .faq-body a { color: var(--blue-soft); }

/* ---------- BREADCRUMBS ---------- */
.crumbs {
  max-width: var(--wrap); margin: 0 auto;
  padding: 18px 24px 0; font-size: 0.84rem; color: var(--gray-dim);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--gray-dim); }

/* ---------- RELATED LINKS ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.linkgrid a {
  display: block; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .15s ease, background .15s ease;
}
.linkgrid a:hover { border-color: rgba(111, 140, 255, 0.45); background: rgba(255, 255, 255, 0.03); }
.linkgrid .lt { font-weight: 600; margin-bottom: 4px; }
.linkgrid .ld { color: var(--gray); font-size: 0.9rem; }

/* ---------- STORE BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 11px 18px; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.badge .ico { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; }
.badge .ico svg { width: 100%; height: 100%; }
.badge .txt { text-align: left; line-height: 1.1; }
.badge .txt .top { font-size: 0.62rem; color: #d7d7d7; letter-spacing: 0.3px; text-transform: uppercase; }
.badge .txt .bot { font-size: 1.05rem; font-weight: 600; color: #fff; letter-spacing: 0.2px; }

/* ---------- FOOTER ---------- */
footer { margin-top: auto; border-top: 1px solid var(--line); background: #070a14; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 32px 24px;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 22px 28px;
  font-size: 0.85rem; color: var(--gray-dim);
}
.footer-inner a { color: var(--gray); text-decoration: none; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-col { display: grid; gap: 7px; align-content: start; }
.footer-col .ft {
  color: #fff; font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px;
}
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 24px 28px; font-size: 0.82rem; color: var(--gray-dim);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .nav-inner { flex-wrap: wrap; gap: 12px 0; }
  .nav-toggle { display: flex; }
  .nav-collapse {
    order: 3; width: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    overflow: hidden; max-height: 0; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .nav.open .nav-collapse { max-height: 520px; opacity: 1; pointer-events: auto; padding-top: 8px; }
  .nav-links { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; margin-left: 0; }
  .nav-links a { padding: 13px 12px; border-radius: 8px; font-size: 1rem; }
  .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); color: #fff; }

  .page-hero { padding: 60px 20px 52px; }
  .section { padding: 56px 24px; }
  .cards, .cards.two, .linkgrid { grid-template-columns: 1fr; }
  .callout { padding: 34px 24px; }
  .footer-inner { gap: 26px; }
}

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