:root {
  --dark: #1E1D1B;
  --dark-deep: #141312;
  --stone: #E7E5E0;
  --paper: #F4F3F0;
  --ink: #1A1918;
  --muted: #62605B;
  --brass: #A8843F;
  --brass-soft: #D9C79E;
  --line: rgba(26, 25, 24, 0.16);
  --line-light: rgba(244, 243, 240, 0.22);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Barra superior */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--dark-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { font-family: var(--serif); font-size: 1.2rem; text-decoration: none; letter-spacing: 0.01em; }
.top nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); font-size: 0.95rem; }
.top nav a { text-decoration: none; opacity: 0.8; }
.top nav a:hover { opacity: 1; }
.top nav a.nav-cta {
  opacity: 1; border: 1px solid var(--brass-soft); color: var(--brass-soft);
  padding: 0.4rem 1rem; border-radius: 2px;
}
.top nav a.nav-cta:hover { background: var(--brass-soft); color: var(--dark-deep); }
@media (max-width: 860px) { .top nav a:not(.nav-cta) { display: none; } }

/* Hero: la primera pregunta de la aplicación */
.hero { background: var(--dark); color: var(--paper); padding: clamp(3.5rem, 11vh, 7rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .rule { width: 3.5rem; height: 1px; background: var(--brass-soft); margin-bottom: 1.75rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -0.012em;
  max-width: 14ch;
}
.hero-intro { font-size: clamp(1.05rem, 1.6vw, 1.2rem); opacity: 0.8; max-width: 34ch; margin-top: 1.5rem; }
.answer { border: 1px solid var(--line-light); background: rgba(244, 243, 240, 0.04); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 2px; }
.answer label { display: block; font-size: clamp(1.25rem, 2vw, 1.4rem); line-height: 1.3; font-weight: 500; color: var(--brass-soft); margin-bottom: 0.9rem; }
.answer textarea {
  width: 100%; resize: none; overflow: hidden;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--sans); font-size: 1.15rem; line-height: 1.5;
  padding: 0.5rem 0 0.8rem; min-height: 2.9rem;
}
.answer textarea::placeholder { color: rgba(244, 243, 240, 0.42); }
.answer textarea:focus { outline: none; border-bottom-color: var(--brass-soft); }
.answer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.answer-note { font-size: 0.9rem; opacity: 0.65; max-width: 30ch; }

.btn {
  display: inline-block; font: inherit; font-weight: 500; font-size: 1rem;
  padding: 0.9rem 1.6rem; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-brass { background: var(--brass-soft); color: var(--dark-deep); }
.btn-brass:hover { background: var(--paper); }
.btn-dark { background: var(--dark); color: var(--paper); }
.btn-dark:hover { background: var(--dark-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Entrada del hero: único movimiento automático de la página */
.hero .rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero .rise:nth-child(2) { animation-delay: 0.35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Secciones */
.block { padding: clamp(4rem, 10vh, 7rem) 0; }
.block + .block { border-top: 1px solid var(--line); }
.block-stone { background: var(--stone); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.45; max-width: 36ch; }
.muted { color: var(--muted); }

/* Para quién es */
.who { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); }
#para-quien h2 { text-align: center; }
.who li { position: relative; padding-top: 3rem; text-align: center; }
/* Cuatro rombos chicos formando un rombo */
.who li::before {
  content: ""; position: absolute; left: 50%; top: 0.35rem; width: 1.15rem; height: 1.15rem;
  transform: translateX(-50%) rotate(45deg);
  background:
    linear-gradient(var(--brass), var(--brass)) 0 0 / 43% 43% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 0 / 43% 43% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 0 100% / 43% 43% no-repeat,
    linear-gradient(var(--brass), var(--brass)) 100% 100% / 43% 43% no-repeat;
}
@media (max-width: 800px) { .who { grid-template-columns: 1fr; gap: 2rem; } }

/* Metodología */
.method { background: var(--dark-deep); color: var(--paper); padding: clamp(4rem, 12vh, 7.5rem) 0; }
.method .rule { width: 3.5rem; height: 1px; background: var(--brass-soft); margin-bottom: 2rem; }
.method h2 { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--brass-soft); margin-bottom: 1.5rem; }
.method .big { font-family: var(--serif); font-size: clamp(1.5rem, 3.3vw, 2.6rem); line-height: 1.25; max-width: 30ch; letter-spacing: -0.01em; }

/* Cómo trabajo: es una secuencia real, por eso va numerado */
.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: paso; }
.steps li { counter-increment: paso; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(paso); font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--brass); display: block; margin-bottom: 1rem; }
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.steps p { font-size: 1rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Sobre mí */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.photo { position: relative; min-height: 24rem; background: var(--dark); border-radius: 2px; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.about-text { margin-top: 1.5rem; }
.about-text p { max-width: 60ch; }
.about-text p + p { margin-top: 1.1rem; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .photo { min-height: 0; max-width: 18rem; }
  .photo img { position: static; height: auto; aspect-ratio: 3 / 4; }
}

/* Aplicación */
.form-shell { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2px; }
.progress { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }
.bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.bar span { position: absolute; inset: 0 auto 0 0; width: 33.33%; background: var(--dark); transition: width 0.4s ease; }
.step { display: none; }
.step.is-on { display: block; animation: stepin 0.35s ease; }
@keyframes stepin { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.25; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.5rem; }
.field label, .legend { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 0.4rem; }
.hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0.55rem 0;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--dark); padding-bottom: calc(0.55rem - 1px); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #9B2C1F; }
.error { display: none; font-size: 0.88rem; color: #9B2C1F; margin-top: 0.35rem; }
.field.has-error .error { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.three { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 0 2rem; }
@media (max-width: 600px) { .two, .three { grid-template-columns: 1fr; } }
.choices { border: 0; padding: 0; margin: 0 0 0.5rem; }
.choices .row { display: flex; gap: 2rem; margin-top: 0.3rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.choices input { accent-color: var(--dark); width: 1.05rem; height: 1.05rem; }
.actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.actions .spacer { flex: 1; }
.hp { position: absolute; left: -9999px; }
.done p { max-width: 50ch; color: var(--muted); }

footer { background: var(--dark-deep); color: var(--paper); padding: 2.5rem 0; font-size: 0.92rem; }
footer span { opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .rise, .step.is-on { animation: none; opacity: 1; transform: none; }
  .bar span { transition: none; }
}

