/* Hazme el Favor — landing, login y registro (usa los tokens de app/css/styles.css) */

body.site { background: var(--paper); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.site-brand { color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; }

/* Cabecera */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--ink-2); font-weight: 550; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-cta { margin-left: auto; display: flex; gap: 8px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1.02; max-width: 15ch; }
.hero-lede { margin-top: 22px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-gift { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-2); font-weight: 550; }

/* La historia del hero: etiqueta + propuesta + cuenta */
.hero-story { position: relative; padding: 0 0 40px 0; max-width: 480px; justify-self: end; width: 100%; }
.story-tag { transform: rotate(-2.5deg); box-shadow: 0 30px 60px -30px rgba(21, 32, 30, .35); }
.story-tag .tag-code { font-size: 3.2rem; }
.story-tag .tag-body h3 { font-size: 1.3rem; }
.story-tag .tag-body { padding-bottom: 40px; }
.story-offer {
  position: relative; margin: -26px -8px 0 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 16px 18px; box-shadow: 0 24px 50px -24px rgba(21, 32, 30, .4); transform: rotate(1.5deg);
  animation: offer-in .7s cubic-bezier(.2, .9, .3, 1.1) .5s both;
}
.story-offer-head { display: flex; align-items: center; gap: 12px; }
.story-offer-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.story-offer-head span:not(.avatar):not(.coin) { font-size: .85rem; color: var(--ink-2); }
.story-offer p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.story-offer .coin { animation: flip 1s cubic-bezier(.3, .7, .3, 1) 1.1s both; }
.story-math { position: absolute; right: 0; bottom: 0; display: inline-flex; gap: 10px; align-items: baseline; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; animation: offer-in .5s ease-out 1.6s both; }
.story-math s { color: #A9B7B3; font-weight: 500; }
.story-math span { color: var(--coin); font-family: var(--display); }
@keyframes offer-in { from { opacity: 0; transform: translateY(18px) rotate(1.5deg); } }

/* Bandas */
.band { padding: clamp(48px, 7vw, 88px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2, .sides h2, .credits-sec h2, .faq h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 720; letter-spacing: -0.02em; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 800 3rem/1 var(--display); color: var(--sky-ink); margin-bottom: 14px; }
.steps b { font: 650 1.2rem/1.2 var(--display); }
.steps p { margin-top: 8px; color: var(--ink-2); }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.sides p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 550; }
.ticks li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coin); box-shadow: inset 0 0 0 1.5px var(--coin-deep); transform: translateY(-1px); }

.band-ink { background: var(--ink); color: #E9EFEC; border: 0; }
.band-ink h2 { color: #fff; }
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.safety > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-l); padding: 20px; }
.safety b { font: 650 1.1rem var(--display); color: #fff; }
.safety p { margin-top: 8px; color: #B8C5C1; font-size: .95rem; }

.credits-sec { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(32px, 4vw, 48px); }
.credits-sec p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.facts-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.facts-big > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.facts-big dt { min-height: 48px; display: flex; align-items: center; }
.facts-big dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.fact-num { font: 780 2.3rem/1 var(--display); letter-spacing: -0.02em; }

.faq { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.faq > * { max-width: 820px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 650 1.08rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 68ch; }

.closing { background: var(--teal); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.closing-in { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap; }
.closing-in > div { flex: 1; min-width: 240px; }
.closing h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: #fff; }
.closing p { margin-top: 8px; color: #CDE7E1; }

.site-foot { padding: 28px 0 40px; color: var(--ink-2); font-size: .9rem; }
.site-foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { color: var(--ink-2); }

.prose { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin: 28px 0 8px; }
.prose p { color: var(--ink-2); }

/* Login y registro */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 48px; }
.auth-top { margin-bottom: clamp(24px, 6vh, 56px); }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .form { margin-top: 6px; gap: 16px; }
.auth-alt { margin-top: 20px; color: var(--ink-2); }
.auth-gift { display: flex; align-items: center; gap: 14px; background: var(--amber-soft); border-radius: var(--radius-m); padding: 12px 14px; }
.auth-gift p { color: var(--amber-ink); font-size: .95rem; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 550; font-size: .95rem; }
.field-error { color: var(--danger); font-weight: 550; }
.field.has-error input { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-story { justify-self: start; max-width: 440px; }
  .steps, .sides, .credits-sec { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-cta .btn-ghost { display: none; }
  .site-cta .btn { min-height: 40px; padding: 0 14px; }
  .safety, .facts-big { grid-template-columns: 1fr; }
  .story-offer { margin-left: 20px; margin-right: 0; }
  .story-tag .tag-code { font-size: 2.6rem; }
  .hero-actions .btn { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .story-offer, .story-offer .coin, .story-math { animation: none; }
}

.city-field { position: relative; }
.city-field input { width: 100%; }
