/* Fuentes reales de marca, copiadas de jgarcialopez-hubb-main/resources/fonts/camino (identidad de referencia de Mao/Macaco Studio) */
@font-face {
  font-family: Queens;
  src: url("fonts/queens-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Queens;
  src: url("fonts/queens-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  /* Tokens oficiales "Camino del duelo" (jgarcialopez-hubb-main/resources/css/editorial/tokens.css) */
  --navy: #0e1e6a;
  --navy-deep: #22307a;
  --cream: #fbf5ee;
  --cream-deep: #f3ebdb;
  --mustard: #f7be00;
  --kraft: #c8a380;
  --pastel: #ffe17e;
  --text-muted: #4a5278;
  --radius: 16px;
  --font-display: "PT Serif", Georgia, serif;
  --font-italic: "PT Serif", Georgia, serif;
  --font-ui: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--navy);
  background: var(--cream);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--cream);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark { height: 34px; width: auto; display: block; }

.tagline {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--navy);
  font-weight: 600;
}

/* Hero: fondo (piedras/papel) + logo y texto reales en HTML, editables.
   aspect-ratio = proporción real de hero-bg.jpg (3024x1296) para que
   object-fit: cover nunca tenga que recortar la imagen en ancho normal. */
.hero {
  position: relative;
  background: var(--cream);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  /* A partir de aquí fijamos la proporción real de hero-bg.jpg (3024x1296):
     así object-fit: cover nunca necesita recortar la imagen verticalmente. */
  .hero { aspect-ratio: 3024 / 1296; min-height: 0; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Degradado inferior que funde las piedras hacia el crema.
   Solo en móvil (ver media query); en desktop las piedras se ven sólidas. */
.hero::after {
  content: "";
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(251, 245, 238, 0) 0%, rgba(251, 245, 238, 0.7) 55%, var(--cream) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.logo-camino {
  display: block;
  width: clamp(160px, 20vw, 230px);
  height: auto;
  margin: 0 auto 24px;
}

.brand a { display: inline-flex; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 16px;
}

.hero-text {
  font-family: var(--font-display);
  color: var(--text-muted);
  font-size: clamp(12px, 1.3vw, 15px);
  margin: 0 0 16px;
}

.hero-highlight {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(12px, 1.3vw, 15px);
  margin: 0;
}

/* Flechita dentro de un círculo para bajar, visible en todos los tamaños (web y móvil) */
.hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 18px auto 0;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(14, 30, 106, 0.35);
  border-radius: 50%;
  animation: hero-bounce 1.8s ease-in-out infinite;
}
.hero-scroll:hover { background: #fff; border-color: var(--navy); }

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

/* Steps / cards */
.step { max-width: 900px; margin: 0 auto; padding: 32px 24px; }

.cards { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }

.card {
  background: #fefdfa;
  border: 1px solid #f1ede2;
  border-radius: var(--radius);
  padding: 32px;
  flex: 1 1 320px;
}

.card label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 16px;
  line-height: 1.4;
}

textarea, input[type="text"], input[type="tel"] {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  resize: vertical;
}

textarea::placeholder, input::placeholder {
  color: #9a9a9a;
  font-family: var(--font-ui);
  font-style: normal;
}

.card--share { background: #fefdfa; }

.share-note { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }

.share-mode { border: none; padding: 0; margin: 0 0 16px; }
.share-mode legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }

.card label.radio, .card label.checkbox,
.radio, .checkbox {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px; margin-bottom: 8px; cursor: pointer;
}

.radio input, .checkbox input { width: 14px; height: 14px; }

.checkbox a { color: var(--navy); text-decoration: underline; }

.field { margin-bottom: 16px; }
.field-group { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.form-error {
  background: #fdecec;
  color: #a12222;
  border: 1px solid #f3c6c6;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-link {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.card--contact h2 { font-family: var(--font-display); font-weight: 500; margin-top: 0; }
.hint { font-size: 12px; color: var(--text-muted); }
.contact-actions { margin-top: 8px; }

/* Thanks */
.thanks { text-align: center; padding: 48px 24px 72px; }
.divider { display: block; color: var(--mustard); font-size: 18px; margin-bottom: 20px; }
.thanks h2 { font-family: var(--font-display); font-weight: 500; color: var(--navy); font-size: 26px; margin: 0 0 12px; }
.thanks p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

@media (max-width: 640px) {
  .hero h1 { font-size: 19px; }
  .hero-text, .hero-highlight { font-size: 14px; }
  .site-header { padding: 14px 18px; }

  /* Degradado inferior solo en móvil */
  .hero::after { display: block; }

  /* El fondo es muy horizontal (3024x1296): en pantallas angostas el "cover"
     centrado recortaba las piedras. Damos más alto y anclamos abajo-izquierda
     para que las piedras (la figura principal) siempre se vean. */
  .hero {
    min-height: 580px;
    padding: 44px 0 56px;
  }
  .hero-bg { object-position: left bottom; }

  /* Velo crema suave detrás del texto: las figuras quedan como marco y el
     texto siempre se lee limpio, sin encimarse con las piedras ni el óvalo. */
  .hero-content {
    position: relative;
    padding: 24px 24px 28px;
  }
  .hero-content::before {
    content: "";
    position: absolute;
    inset: -4px 0;
    z-index: -1;
    background: radial-gradient(
      ellipse 85% 70% at 50% 45%,
      rgba(251, 245, 238, 0.92) 0%,
      rgba(251, 245, 238, 0.78) 55%,
      rgba(251, 245, 238, 0) 100%
    );
  }

  /* Rompe los saltos de línea forzados del desktop para que no desborden. */
  .hero-text br, .hero-highlight br { display: none; }
}
