/* YEMANJA — base: reset propio, tipografía y elementos sueltos */

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--texto-fuente);
  font-size: var(--t-m);
  line-height: var(--alto-texto);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl {
  margin: 0;
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: var(--alto-titular);
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }

p { text-wrap: pretty; }

em { font-style: italic; }

strong { font-weight: 600; }

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

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

::selection {
  background: var(--agua);
  color: var(--hueso);
}

/* --- Piezas de texto ----------------------------------------------------- */

.rotulo {
  font-family: var(--texto-fuente);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.entradilla {
  font-size: var(--t-l);
  line-height: 1.45;
  max-width: 34ch;
}

.lectura {
  max-width: var(--ancho-lectura);
}

.lectura p + p { margin-top: var(--e-2); }

.enlace {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s var(--curva), border-color 0.3s var(--curva);
}

.enlace:hover { color: var(--fuego); }

/* --- Botones ------------------------------------------------------------- */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border: 1px solid var(--texto);
  background: var(--texto);
  color: var(--hueso);
  font-family: var(--texto-fuente);
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--curva), color 0.35s var(--curva),
    border-color 0.35s var(--curva);
}

.boton:hover {
  background: var(--fuego);
  border-color: var(--fuego);
  color: var(--hueso);
}

.boton--hueco {
  background: transparent;
  color: inherit;
}

.boton--hueco:hover { color: var(--hueso); }

/* --- Formularios --------------------------------------------------------- */

.campo {
  display: block;
  margin-bottom: var(--e-3);
}

.campo > span {
  display: block;
  margin-bottom: 0.6em;
  transition: color 0.3s var(--curva);
}

.campo:focus-within > span { color: var(--fuego); }

@media (prefers-reduced-motion: reduce) {
  .campo > span { transition: none; }
}

input[type='text'],
input[type='tel'],
select,
textarea {
  width: 100%;
  padding: 0.85em 0;
  border: 0;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--texto-fuente);
  font-size: var(--t-l);
  transition: border-color 0.3s var(--curva);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-bottom-color: var(--fuego);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px center, right 0 center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consentimiento {
  display: flex;
  gap: 0.75em;
  align-items: flex-start;
  font-size: var(--t-s);
  color: var(--texto-suave);
  line-height: 1.5;
}

.consentimiento input {
  margin-top: 0.35em;
  accent-color: var(--agua);
  flex: 0 0 auto;
}

.aviso {
  margin-top: var(--e-3);
  padding: var(--e-2) var(--e-3);
  border-left: 2px solid var(--fuego);
  font-size: var(--t-s);
}

.aviso[hidden] { display: none; }

.aviso--ok { border-left-color: var(--agua); }

/* --- Accesibilidad ------------------------------------------------------- */

.saltar {
  position: absolute;
  left: var(--margen);
  top: -100%;
  z-index: 100;
  padding: 0.8em 1.2em;
  background: var(--noche);
  color: var(--hueso);
  font-size: var(--t-s);
}

.saltar:focus { top: var(--e-2); }

.oculto-visual {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* --- Aparición ----------------------------------------------------------- */

.aparece {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 1s var(--curva), transform 1s var(--curva);
}

.aparece.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aparece { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
