/* ---------------------------------------------------------
   RESET · box-sizing, normalize básico, variables globales
--------------------------------------------------------- */

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

:root {
  /* Paleta — extraída de las referencias (logo en tinta, mantel de lino cálido) */
  --color-bg: #f4ecdd;
  --color-bg-alt: #ece0c9;
  --color-ink: #241d15;
  --color-ink-soft: #59493a;
  --color-ink-faint: #8a7a67;
  --color-surface: rgba(255, 252, 246, 0.72);
  --color-surface-solid: #fffcf6;
  --color-border: rgba(36, 29, 21, 0.14);

  --color-accent: #bd5b28;
  --color-accent-hover: #d97a3f;
  --color-accent-soft: rgba(189, 91, 40, 0.12);
  --color-accent-2: #6f7a3f;
  --color-accent-2-soft: rgba(111, 122, 63, 0.14);

  /* Tipografía */
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-hand: "Caveat", cursive;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Ritmo y forma */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 40px -22px rgba(36, 29, 21, 0.35);
  --shadow-lift: 0 24px 48px -20px rgba(36, 29, 21, 0.45);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --container-w: 1180px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
}

em {
  font-style: normal;
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Utilidades puntuales */
.mt-lg {
  margin-top: 32px;
}

.self-start {
  align-self: flex-start;
}

.text-center {
  text-align: center;
  margin-inline: auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
