/* ==========================================================================
   tokens.css — Variables, reset y tipografías
   Multiparking la Jabega
   ========================================================================== */

@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Prompt Medium"), local("Prompt-Medium");
}

@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Prompt SemiBold"), local("Prompt-SemiBold");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Roboto Regular"), local("Roboto-Regular");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Roboto Medium"), local("Roboto-Medium");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Roboto Bold"), local("Roboto-Bold");
}

:root {
  /* === Color === */
  --color-brand-900: #2f4438;
  --color-brand-700: #405447;
  --color-brand: #496858;
  --color-brand-500: #668876;
  --color-brand-300: #7bdcb5;
  --color-brand-100: #e3e8e5;
  --color-brand-50: #f6f8f7;
  --color-accent: #d86813;
  --color-accent-hover: #f76a0c;
  --color-text: #262626;
  --color-text-soft: #484848;
  --color-text-muted: #878787;
  --color-border: #e3e8e5;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f7;
  --color-success: #67a671;
  --color-error: #cf2e2e;
  --color-overlay: rgba(0, 0, 0, 0.6);

  /* === Tipografía === */
  --font-heading: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala fluida (clamp) */
  --font-size-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8rem);
  --font-size-sm: clamp(0.8rem, 0.73rem + 0.217vw, 0.9rem);
  --font-size-base: 1rem;
  --font-size-md: clamp(1.1rem, 0.995rem + 0.326vw, 1.25rem);
  --font-size-lg: clamp(1.4rem, 1.25rem + 0.5vw, 1.75rem);
  --font-size-xl: clamp(1.75rem, 1.576rem + 0.543vw, 2rem);
  --font-size-2xl: clamp(2.25rem, 1.728rem + 1.63vw, 3rem);
  --font-size-3xl: clamp(2.5rem, 1.456rem + 3.26vw, 4rem);
  --font-size-display: clamp(2.75rem, 0.489rem + 7.065vw, 6rem);

  /* === Espaciado (escala 4 px) === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* === Radios === */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-pill: 9999px;

  /* === Sombras === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-floating: 0 8px 24px rgba(73, 104, 88, 0.4);

  /* === Layout === */
  --container-max: 1280px;
  --container-padding: var(--space-5);
  --header-height: 80px;

  /* === Transiciones === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ==========================================================================
   Reset moderno
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4) 0;
  color: var(--color-brand-900);
}

h1 { font-size: var(--font-size-3xl); font-weight: 700; }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); text-transform: uppercase; letter-spacing: 0.05em; }

p { margin: 0 0 var(--space-4) 0; }

a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-brand-500); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-brand-300);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0 0 var(--space-4) 0;
  padding-left: var(--space-5);
}

li { margin-bottom: var(--space-2); }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--color-brand-300);
  color: var(--color-brand-900);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
