/* ==========================================================================
   Reset & Base — Pasaporte.cl
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text-body);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--color-green-link);
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover, a:focus-visible { color: var(--color-green-link-hover); }

button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-body);
}

.display-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: var(--lh-body);
}

.text-accent { color: var(--color-accent); }
.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-text-muted); }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}
.container--wide { max-width: var(--container-wide); }

.section      { padding-block: var(--space-4xl); }
.section--alt { background-color: var(--color-off-white); }
.section--dark {
  background-color: var(--color-hero-dark);
  color: var(--color-white);
}
.section--dark .section-title    { color: var(--color-white); }
.section--dark .section-subtitle { color: rgba(255,255,255,0.7); }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--grid-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--grid-gap); }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}
