/* ============================================================
   CUESTA SOLAR — Base / Reset (LIGHT)
   ============================================================ */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--t-mid);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* atmosfera de luz solar / dia */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background:
    radial-gradient(58% 48% at 16% -6%, rgba(255,196,77,.20), transparent 60%),
    radial-gradient(52% 42% at 92% 2%, rgba(0,180,225,.12), transparent 60%),
    var(--c-bg);
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--t-hi);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-head);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: rgba(255,178,0,.30); color: #2a1d00; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* scrollbar clara */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #efe9dd; }
::-webkit-scrollbar-thumb {
  background: #d8cfbd;
  border-radius: 999px;
  border: 3px solid #efe9dd;
}
::-webkit-scrollbar-thumb:hover { background: #c4b89f; }

/* utilidades a11y */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -60px;
  z-index: var(--z-top);
  background: var(--gold); color: #2a1d00;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--d-fast) var(--e-out);
}
.skip-link:focus { top: var(--s-4); }

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