/* ALZA — alzacreate.com — hoja de estilos principal */

:root {
  --bg-dark: #111111;
  --bg-light: #fafaf7;
  --text-on-dark: #fafaf7;
  --text-on-dark-muted: #c9c9c4;
  --text-on-light: #111111;
  --text-on-light-muted: #4a4a4a;
  --accent: #00c48c;
  --accent-text: #111111;
  --accent-on-light: #007a52;
  --border-on-light: #e2e2dd;
  --border-on-dark: #2a2a2a;
  --border-dashed: #cfcfc9;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-on-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-on-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}

.logo svg { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 13px;
  padding: 10px 18px;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-dark {
  background: var(--text-on-light);
  color: var(--bg-light);
}

.btn-dark:hover { opacity: 0.85; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-light { background: var(--bg-light); color: var(--text-on-light); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-light .eyebrow { color: var(--text-on-light-muted); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4rem); line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }

.lede {
  font-size: 19px;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 0 36px;
}

.section-light .lede { color: var(--text-on-light-muted); }

/* ---------- Hero ---------- */

.hero { padding: 110px 0 96px; }
.hero .wrap { max-width: 840px; }

/* ---------- Stat / 70-30 ---------- */

.stat-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0 56px;
  padding: 32px 0;
  border-top: 1px solid var(--border-on-light);
  border-bottom: 1px solid var(--border-on-light);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--accent-on-light);
  white-space: nowrap;
}

.stat-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-on-light-muted);
  margin-top: 6px;
}

.stat-text { font-size: 17px; max-width: 620px; }

.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-on-light);
  border-radius: 2px;
  overflow: hidden;
}

.numbered-grid > div {
  padding: 32px 28px;
  border-left: 1px solid var(--border-on-light);
}

.numbered-grid > div:first-child { border-left: none; }

.numbered-grid .num {
  font-family: var(--font-mono);
  color: var(--accent-on-light);
  font-size: 13px;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Cómo trabajamos ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.process-step { padding-top: 4px; }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.process-step p { color: var(--text-on-dark-muted); font-size: 15px; }

/* ---------- Por qué ALZA ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-on-light);
  border: 1px solid var(--border-on-light);
  margin-top: 48px;
}

.feature-card { background: var(--bg-light); padding: 36px 32px; }

.feature-card .icon-circle {
  border-color: var(--text-on-light);
  color: var(--text-on-light);
}

.feature-card p { font-size: 15px; color: var(--text-on-light-muted); }

.dev-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6f6f69;
  margin-top: 14px;
  line-height: 1.5;
}

.section-dark .dev-note { color: #8a8a84; }

/* ---------- Resultados ---------- */

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.case-card {
  border: 1px dashed var(--border-dashed);
  border-radius: 2px;
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-dark .case-card { border-color: #333; }

.case-card .case-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8a8a84;
  letter-spacing: 0.05em;
}

.case-card p {
  color: #8a8a84;
  font-size: 15px;
  margin: 0;
}

/* ---------- Quiénes somos ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-photo {
  aspect-ratio: 4 / 5;
  background: #eeeeea;
  border: 1px dashed var(--border-dashed);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-photo .placeholder-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6f6f69;
  text-align: center;
  padding: 24px;
  max-width: 220px;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-top: 18px;
}

.team-role { color: var(--text-on-light-muted); font-size: 14px; margin-top: 2px; }

.team-bio { max-width: 720px; margin-top: 40px; font-size: 16px; color: var(--text-on-light-muted); }

/* ---------- CTA final ---------- */

.cta-final { text-align: center; padding: 110px 0; }
.cta-final h2 { margin-bottom: 12px; }
.cta-final .lede { margin: 0 auto 36px; text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 32px 0;
  border-top: 1px solid var(--border-on-dark);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.footer-left .logo { font-size: 15px; }

.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a:hover { color: var(--text-on-dark); }

.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a8a84;
}

.footer-legal {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8a8a84;
}

.footer-legal a:hover { color: var(--text-on-dark); }

/* ---------- Formulario ---------- */

.form-page { padding: 72px 0 110px; }
.form-page .wrap { max-width: 640px; }

form { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border-on-light);
  border-radius: 2px;
  background: #fff;
  color: var(--text-on-light);
}

input::placeholder { color: #b0b0aa; }

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
  margin-top: 8px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6f6f69;
  margin-top: 20px;
}

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Confirmación ---------- */

.confirm-page { padding: 130px 0; text-align: center; }
.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-on-light);
  color: var(--accent-on-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.confirm-page h1 { font-size: 2.2rem; }
.confirm-page .lede { margin: 0 auto 32px; text-align: center; }
.confirm-page strong { color: var(--text-on-light); }
.back-link { font-family: var(--font-mono); font-size: 14px; color: var(--accent-on-light); }
.back-link:hover { text-decoration: underline; }

/* ---------- Páginas legales ---------- */

.legal-page { padding: 72px 0 110px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { font-family: var(--font-mono); font-size: 12px; color: #6f6f69; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--text-on-light-muted); font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .stat-block { grid-template-columns: 1fr; gap: 16px; }
  .numbered-grid { grid-template-columns: 1fr; }
  .numbered-grid > div { border-left: none; border-top: 1px solid var(--border-on-light); }
  .numbered-grid > div:first-child { border-top: none; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .cta-final { padding: 72px 0; }
  .confirm-page { padding: 88px 0; }
}

/* ---------- Scroll animations ---------- */

.js-anim .word {
  display: inline-block;
  vertical-align: top;
}

.js-anim .word-inner {
  display: inline-block;
  transform: translateY(0.35em);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.19,1,.22,1) var(--d, 0s),
              opacity 0.5s ease var(--d, 0s);
  will-change: transform, opacity;
}

.js-anim .revealed .word-inner {
  transform: translateY(0);
  opacity: 1;
}

.js-anim .hero h1 {
  transition: transform 0.08s linear;
}

.js-anim .fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.6s cubic-bezier(.19,1,.22,1), opacity 0.6s ease;
}

.js-anim .fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.js-anim .icon-circle svg {
  opacity: 0;
  transform: scale(.4) rotate(-20deg);
  transition: transform 0.7s cubic-bezier(.19,1,.22,1), opacity 0.5s ease;
}

.js-anim .icon-circle.in-view svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.js-anim .icon-circle[data-icon="clock"].in-view svg { transform: scale(1) rotate(360deg); }
.js-anim .icon-circle[data-icon="shield"].in-view svg,
.js-anim .icon-circle[data-icon="star"].in-view svg {
  transition-timing-function: cubic-bezier(.34,1.56,.64,1);
}

.intro-logo {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  background: var(--bg-light);
  position: relative;
  transition: transform 0.08s linear, opacity 0.08s linear;
  will-change: opacity, transform;
}

.intro-logo-mark {
  display: flex;
  align-items: center;
  gap: 28px;
}

.intro-logo-mark svg {
  width: clamp(80px, 20vw, 190px);
  height: auto;
  display: block;
}

.intro-logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 16vw, 9rem);
  letter-spacing: -0.02em;
  color: var(--text-on-light);
}

.intro-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f6f69;
  transition: opacity 0.15s linear, color 0.2s ease;
}

.intro-scroll-cue:hover,
.intro-scroll-cue:focus-visible {
  color: var(--text-on-light);
}

.intro-scroll-cue svg {
  animation: intro-cue-bounce 1.6s ease-in-out infinite;
}

@keyframes intro-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 860px) {
  .intro-logo-mark {
    flex-direction: column;
    gap: 18px;
  }
}

.js-anim .has-intro .site-header {
  opacity: 0;
  transition: opacity 0.15s linear;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .word-inner,
  .js-anim .fade-up,
  .js-anim .icon-circle svg {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .intro-scroll-cue svg {
    animation: none !important;
  }
  .intro-logo {
    display: none;
  }
}
