:root {
  --tierra-profunda: #1a1410;
  --tierra-media: #2a1f18;
  --tierra-tostada: #b08850;
  --arena: #f0e6d6;
  --arena-tenue: #d9cdb8;
  --terracota: #e6b048;
  --terracota-claro: #f5c869;
  --musgo: #5c6b4a;

  --superficie: rgba(30, 22, 16, 0.55);
  --superficie-fuerte: rgba(30, 22, 16, 0.78);
  --borde: rgba(230, 176, 72, 0.22);
  --borde-fuerte: rgba(230, 176, 72, 0.42);

  --sombra-suave: 0 10px 40px rgba(0, 0, 0, 0.35);
  --sombra-glow: 0 0 32px rgba(230, 176, 72, 0.22);

  --fuente-titular: 'Cormorant Garamond', 'Times New Roman', serif;
  --fuente-cuerpo: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fuente-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --easing: cubic-bezier(0.2, 0.9, 0.3, 1);
  --transicion: 0.4s var(--easing);

  --max-ancho: 1240px;
  --pad-seccion: clamp(4rem, 9vw, 8rem);

  --fallback-gradient: radial-gradient(ellipse at center, #2a1f18 0%, #1a1410 70%);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

body {
  font-family: var(--fuente-cuerpo);
  font-size: 16px;
  line-height: 1.65;
  color: var(--arena);
  background-color: var(--tierra-profunda);
  background-image: var(--fallback-gradient);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuente-titular);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transicion);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--terracota);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

em {
  font-style: italic;
  color: var(--terracota);
}

.hp-field {
  display: none;
}

::selection {
  background: var(--terracota);
  color: var(--tierra-profunda);
}
