/* ==========================================================================
   BASE
   Variables generales, fuentes y estilos que comparte todo el sitio.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Variables generales  ✏️ EDITABLE
   -------------------------------------------------------------------------- */

:root {
  /* Colores */
  --color-background: #EEE8D8;
  --color-ink: #232220;
  --color-gold: #C79C57;
  --color-text: #000000;
  --color-divider: #A2A2A2;
  --color-field-text: #B9B1A3;   /* texto de los campos del formulario */
  --color-error: #A8432B;        /* borde de un campo con error */

  /* Tipografías */
  --font-display: 'PP Neue World', Georgia, serif;
  --font-display-weight: 200;    /* 200 = Ultralight (único peso del archivo de PP Neue World) */
  --font-body: 'Telegraf', Arial, sans-serif;

  /* Contenedor central */
  --container-max-width: 1280px;
  --page-gutter: 10px;
}


/* --------------------------------------------------------------------------
   Fuentes
   -------------------------------------------------------------------------- */

/* PP Neue World Semi Extended Ultralight: la usan los títulos a través de
   --font-display y --font-display-weight.
   (Los archivos anteriores, ppneueworld4-thin y ppneueworld, siguen en
   assets/fonts pero ya no se cargan.) */
@font-face {
  font-family: 'PP Neue World';
  src: url('../assets/fonts/PPNeueWorld-SemiExtendedUltralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Telegraf';
  src: url('../assets/fonts/Telegraf.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* --------------------------------------------------------------------------
   Reset mínimo
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;   /* enlaces internos (#portfolio, #contacto) con desplazamiento suave */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

img,
video {
  display: block;
}


/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

/* Contenedor centrado de 1280px (ancho fluido por debajo de ese tamaño) */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* Texto solo para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
