/* ============ Reset y base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button {
  cursor: pointer;
}

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

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

::selection {
  background: var(--amari-gold);
  color: var(--amari-black);
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--amari-black);
  color: var(--amari-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
  overflow-x: clip; /* evita desbordes horizontales de animaciones o sangrados */
}

/* ============ Tipografía ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.display,
.h2,
.h3 {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.1;
}

/* Énfasis en itálica, como en las piezas del manual ("Cuando *viajas*…") */
.display em,
.h2 em,
.h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amari-terracotta);
}

.on-dark .display em,
.on-dark .h2 em {
  color: var(--amari-gold);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 52ch;
}

.muted {
  color: var(--color-text-muted);
}

.ornament {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--amari-terracotta);
  border-radius: 2px;
}

/* ============ Iconos ============ */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ============ Botones ============ */
.btn {
  --btn-bg: var(--amari-black);
  --btn-fg: var(--amari-white);
  --btn-border: var(--amari-black);
  --btn-bg-hover: var(--amari-gold);
  --btn-fg-hover: var(--amari-black);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
  border-color: var(--btn-bg-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.btn__arrow {
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--amari-black);
  --btn-border: var(--color-line-strong);
  --btn-bg-hover: var(--amari-black);
  --btn-fg-hover: var(--amari-white);
}

.btn--light {
  --btn-bg: var(--amari-white);
  --btn-fg: var(--amari-black);
  --btn-border: var(--amari-white);
  --btn-bg-hover: var(--amari-gold);
  --btn-fg-hover: var(--amari-black);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--amari-white);
  --btn-border: rgba(255, 255, 255, 0.55);
  --btn-bg-hover: var(--amari-white);
  --btn-fg-hover: var(--amari-black);
}

.btn--gold {
  --btn-bg: var(--amari-gold);
  --btn-fg: var(--amari-black);
  --btn-border: var(--amari-gold);
  --btn-bg-hover: var(--amari-white);
  --btn-fg-hover: var(--amari-black);
}

.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* Botón de WhatsApp sin número confirmado: se muestra como pendiente, sin enlace. */
.btn.is-pending,
.btn.is-pending:hover {
  --btn-bg: transparent;
  --btn-fg: var(--color-text-muted);
  --btn-border: var(--color-line-strong);
  background: transparent;
  color: var(--color-text-muted);
  border-style: dashed;
  border-color: var(--color-line-strong);
  cursor: not-allowed;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  min-height: 44px;
}

.text-link .icon {
  transition: transform var(--dur) var(--ease-out);
}

.text-link:hover .icon {
  transform: translateX(4px);
}
