/* ======================================================
   BASE.CSS
   Fundamentos globales del sitio
   (reset + variables + tipografía + accesibilidad)
====================================================== */

/* =========================
   VARIABLES GLOBALES
========================= */
:root {

  /* Colores de marca (neutros por ahora) */
  --color-black: #0b0f14;
  --color-gold: #c9a45c;
  --color-white: #ffffff;

  /* Colores funcionales */
  --color-bg: #f5f7fa;
  --color-text: #0b0f14;
  --color-muted: #5b6776;
  --color-border: rgba(11, 15, 20, 0.12);

  /* Tipografía */
  --font-base: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, Inter, Arial, sans-serif;

  /* Layout */
  --container-width: 1160px;
  --container-padding: 20px;

  /* Bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-base: 0 14px 40px rgba(11, 15, 20, 0.10);
}

/* =========================
   RESET GLOBAL
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   BODY BASE
========================= */
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =========================
   ELEMENTOS BASE
========================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* =========================
   CONTENEDOR GLOBAL
========================= */
.container {
  width: min(
    var(--container-width),
    calc(100% - (var(--container-padding) * 2))
  );
  margin-inline: auto;
}

/* =========================
   ACCESIBILIDAD
========================= */

/* Texto solo para lectores de pantalla */
.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;
}

/* Focus visible accesible */
:focus-visible {
  outline: 3px solid rgba(201, 164, 92, 0.45);
  outline-offset: 3px;
}
