/* ALMA — sitio web. Paleta y tipografía tomadas del hero (Auria Hero). */

:root {
  --ink: #1a2a24;
  --ink-soft: #3a4e46;
  --ink-muted: #4d6157;
  --green: #2f6552;
  --green-deep: #1f4a3a;
  --green-line: rgba(47, 101, 82, 0.16);
  --mint: #a9cfc2;
  --mint-soft: #e6f0ec;
  --cream: #f4f1ea;
  --bg: #eef4f0;
  --white: #ffffff;
  --amber: #e08a4d;
  --amber-soft: #e8a674;
  --font-heading: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 22px rgba(26, 42, 36, 0.05);
  --shadow-md: 0 14px 34px rgba(26, 42, 36, 0.09);
  --shadow-green: 0 10px 26px rgba(47, 101, 82, 0.24);
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: pretty; }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: rgba(224, 138, 77, 0.3); }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-sub { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green);
}
.kicker-light { color: var(--amber-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-heading); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap; cursor: pointer; transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--cream); box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--green-deep); }
.btn-secondary { background: var(--white); color: var(--green); border-color: var(--green-line); }
.btn-secondary:hover { background: var(--mint-soft); }
.btn-sm { padding: 11px 22px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 14px var(--gutter);
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}
.nav.is-scrolled { background: rgba(238, 244, 240, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--green-line); padding-block: 4px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links > a:not(.btn) { font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: color 140ms ease; }
.nav-links > a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--green-line); border-radius: 999px; background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--green); transition: transform 180ms ease, opacity 180ms ease; }

/* ---------- hero (from Auria Hero) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transform: scale(1.16) translate(5%, 3%); transform-origin: center; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(238,244,240,0.96) 0%, rgba(238,244,240,0.9) 30%, rgba(238,244,240,0.45) 46%, rgba(238,244,240,0.02) 60%); }
.hero-content {
  position: relative; z-index: 2; flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: calc(92px + clamp(12px, 2.5vh, 32px)) var(--gutter) clamp(28px, 5vh, 64px);
  max-width: min(600px, 48vw);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid rgba(47,101,82,0.18); color: var(--green);
  font-size: clamp(11px, 1vw, 13px); font-weight: 600; letter-spacing: 0.06em; white-space: nowrap;
  margin-bottom: clamp(12px, 2vh, 20px);
}
.pill-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--amber); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,138,77,0.5); } 50% { box-shadow: 0 0 0 6px rgba(224,138,77,0); } }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 0.4em; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.04; }
.hero-title-lead { font-size: 1em; text-align: center; }
.hero-title-tail { font-size: 1em; text-align: center; }
.hero-wordmark { position: relative; display: inline-block; height: 2.15em; margin: 0; }
.hero-wordmark-type { position: relative; z-index: 1; height: 100%; width: auto; }
.hero-wordmark-glow { position: absolute; left: 50%; top: 50%; width: 135%; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.hero-lead { margin-top: clamp(12px, 1.8vh, 20px); max-width: 44ch; font-size: clamp(14px, 1.15vw, 17px); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(18px, 2.6vh, 28px); }

.hero-flow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: clamp(20px, 3.4vh, 36px);
  padding: 8px; border-radius: 999px; background: rgba(255,255,255,0.85); border: 1px solid var(--green-line);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hf-step { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; color: var(--ink); }
.hf-icon { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); flex: none; }
.hf-label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.hf-step-accent { background: var(--green); color: var(--cream); box-shadow: var(--shadow-green); }
.hf-step-accent .hf-icon { background: rgba(244,241,234,0.16); color: var(--amber-soft); }
.hf-arrow { width: 18px; height: 2px; border-radius: 2px; background: rgba(47,101,82,0.35); position: relative; flex: none; }
.hf-arrow::after { content: ''; position: absolute; right: -1px; top: -3px; width: 8px; height: 8px; border-top: 2px solid rgba(47,101,82,0.35); border-right: 2px solid rgba(47,101,82,0.35); transform: rotate(45deg); }

/* ---------- intro ---------- */
.section-intro { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro-text p { margin-top: 18px; font-size: 17px; color: var(--ink-soft); max-width: 56ch; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 600; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 999px; background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f1ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.intro-figure { position: relative; margin: 0; }
.intro-figure img, .intro-figure video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.float-card {
  position: absolute; left: -24px; bottom: 36px; display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--green-line); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow-md); font-size: 13px; color: var(--ink-muted); line-height: 1.4; max-width: 280px;
}
.float-card strong { color: var(--ink); }
.float-dot { width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--amber); box-shadow: 0 0 0 4px rgba(224,138,77,0.18); }

/* ---------- how it works ---------- */
.section-how { background: var(--white); }
.how-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chat-demo { background: var(--mint-soft); border: 1px solid var(--green-line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-md); max-width: 440px; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--green-line); }
.chat-avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.chat-top div { display: flex; flex-direction: column; line-height: 1.2; }
.chat-top strong { font-size: 14px; }
.chat-top span { font-size: 12px; color: var(--green); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 6px; min-height: 300px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity 320ms ease, transform 320ms ease; }
.msg.is-on { opacity: 1; transform: none; }
.msg-in { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; }
.msg-out { align-self: flex-end; background: var(--green); color: var(--cream); border-bottom-right-radius: 6px; }
.chat-crm { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1px dashed rgba(47,101,82,0.35); font-size: 12.5px; font-weight: 600; color: var(--green); opacity: 0; transform: translateY(8px); transition: opacity 320ms ease, transform 320ms ease; }
.chat-crm.is-on { opacity: 1; transform: none; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--green-line); }
.step:last-child { border-bottom: 1px solid var(--green-line); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); font-weight: 700; }
.step p { margin-top: 8px; color: var(--ink-soft); }

/* ---------- modules ---------- */
.section-modules { background: var(--bg); }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--white); border: 1px solid var(--green-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module p { font-size: 14.5px; color: var(--ink-soft); }
.module-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); margin-bottom: 4px; }
.module-featured { grid-column: span 2; grid-row: span 2; background: var(--green); border-color: var(--green); color: var(--cream); overflow: hidden; padding-bottom: 0; }
.module-featured p { color: rgba(244,241,234,0.82); max-width: 32ch; }
.module-featured .module-icon { background: rgba(244,241,234,0.14); color: var(--amber-soft); }
.module-photo { margin: 12px -24px 0 auto; width: 62%; max-height: 300px; object-fit: cover; object-position: center 18%; border-radius: var(--radius-lg) 0 0 0; opacity: 0.94; align-self: flex-end; }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(224,138,77,0.14); color: #a85f2a; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- crm gallery ---------- */
.section-crm { background: var(--white); }
.crm-zone { position: relative; }
.crm-carril {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 6px 20px; margin: -6px -6px 0;
  scrollbar-width: thin; scrollbar-color: var(--green-line) transparent;
  overscroll-behavior-x: contain;
}
.crm-carril::-webkit-scrollbar { height: 6px; }
.crm-carril::-webkit-scrollbar-track { background: transparent; }
.crm-carril::-webkit-scrollbar-thumb { background: var(--green-line); border-radius: 999px; }
.crm-carril:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.crm-shot { flex: 0 0 clamp(280px, 58%, 620px); scroll-snap-align: start; margin: 0; }
.crm-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 1512 / 786; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--green-line); box-shadow: var(--shadow-md);
  background: var(--bg);
}
.crm-shot figcaption { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.crm-flecha {
  position: absolute; top: 42%; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--green-line); color: var(--green);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.crm-flecha:hover { background: var(--mint-soft); }
.crm-flecha svg { width: 20px; height: 20px; }
.crm-flecha--anterior { left: -18px; }
.crm-flecha--siguiente { right: -18px; }
.crm-flecha[hidden] { display: none; }
@media (max-width: 860px) {
  .crm-flecha { display: none; }
}
@media (max-width: 620px) {
  .crm-carril { gap: 16px; }
  .crm-shot { flex: 0 0 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-carril { scroll-behavior: auto; }
}

/* ---------- review (revisión antes de responder) ---------- */
.section-review { background: var(--bg); }
.review-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.review-text > p { margin-top: 18px; font-size: 17px; color: var(--ink-soft); max-width: 52ch; }
.review-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.review-points li { display: flex; gap: 16px; align-items: flex-start; }
.review-points strong { display: block; font-size: 16px; color: var(--ink); }
.review-points p { margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }
.rp-icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--green-line); color: var(--green); }
.rp-icon-alert { color: var(--amber); }

.review-demo { display: flex; flex-direction: column; gap: 16px; }
.rd-card {
  background: var(--white); border: 1px solid var(--green-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
}
.rd-card-alert { box-shadow: var(--shadow-sm); margin-left: clamp(0px, 4vw, 40px); }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.rd-anon { font-size: 12px; font-weight: 700; color: var(--green); background: var(--mint-soft); padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.rd-msg { align-self: flex-start; max-width: 90%; background: var(--bg); padding: 10px 14px; border-radius: 16px 16px 16px 6px; font-size: 14px; }
.rd-draft { border-top: 1px dashed var(--green-line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rd-draft p { align-self: flex-end; max-width: 90%; background: var(--green); color: var(--cream); padding: 10px 14px; border-radius: 16px 16px 6px 16px; font-size: 14px; }
.rd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.rd-checks li { display: flex; align-items: center; gap: 10px; }
.rd-ok { width: 20px; height: 20px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--mint-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.rd-result { font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 12px; text-align: center; }
.rd-result-ok { background: var(--mint-soft); color: var(--green); }
.rd-result-alert { background: rgba(224,138,77,0.14); color: #a85f2a; }

/* ---------- faq ---------- */
.section-faq { background: var(--white); }
.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--bg); border: 1px solid var(--green-line); border-radius: var(--radius); transition: background 160ms ease; }
.faq[open] { background: var(--white); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--green); font-size: 20px; line-height: 1; transition: transform 200ms ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: var(--radius); }
.faq p { padding: 0 22px 20px; font-size: 15px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- legal ---------- */
.section-legal { background: var(--ink); color: var(--cream); }
.legal-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.legal-figure { margin: 0; }
.legal-figure img, .legal-figure video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius-lg); filter: saturate(0.9); }
.legal-text h2 { color: var(--cream); }
.law-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.law-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: rgba(244,241,234,0.06); border: 1px solid rgba(244,241,234,0.14); }
.law-n { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--amber-soft); }
.law-card strong { font-size: 17px; }
.law-card p { font-size: 14px; color: rgba(244,241,234,0.72); }

/* ---------- onboarding ---------- */
.section-onboarding { background: var(--white); }
.onboarding-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.onboarding-text > p { margin-top: 18px; font-size: 17px; color: var(--ink-soft); max-width: 54ch; }
.onboarding-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.onboarding-list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--green-line); }
.onboarding-list div { display: flex; flex-direction: column; gap: 2px; }
.onboarding-list span:not(.ob-icon) { font-size: 14px; color: var(--ink-soft); }
.ob-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--green); border: 1px solid var(--green-line); }
.onboarding-figure { margin: 0; }
.onboarding-figure img, .onboarding-figure video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- CTA / form ---------- */
.section-cta { background: linear-gradient(180deg, var(--bg) 0%, var(--mint-soft) 100%); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta-text > p { margin-top: 18px; font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.cta-wordmark { position: relative; display: inline-block; height: 0.72em; vertical-align: baseline; transform: translateY(0.09em); }
.cta-wordmark-type { position: relative; z-index: 1; height: 100%; width: auto; }
.cta-wordmark-glow { position: absolute; left: 50%; top: 50%; width: 160%; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.cta-bullets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cta-bullets span { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--green-line); font-size: 13px; font-weight: 600; color: var(--green); }
.cta-form { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--green-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-muted); }
.input { width: 100%; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--green-line); background: var(--bg); font: inherit; font-size: 15px; color: var(--ink); transition: border-color 140ms ease, background 140ms ease; }
.input::placeholder { color: rgba(58,78,70,0.5); }
.input:hover { border-color: rgba(47,101,82,0.4); }
.input:focus-visible { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(47,101,82,0.12); }
textarea.input { resize: vertical; min-height: 88px; }
.form-note { font-size: 12.5px; color: var(--ink-muted); text-align: center; }
.form-ok { padding: 24px; border-radius: var(--radius); background: var(--mint-soft); text-align: center; font-weight: 600; color: var(--green); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(244,241,234,0.7); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-wordmark { position: relative; display: inline-block; height: 30px; margin-bottom: 12px; }
.footer-wordmark-type { position: relative; z-index: 1; height: 100%; width: auto; }
.footer-wordmark-glow { position: absolute; left: 50%; top: 50%; width: 150%; height: auto; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; opacity: 0.85; }
.footer-brand p { font-size: 14px; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(244,241,234,0.78); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--amber-soft); }
.footer-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .msg, .chat-crm { opacity: 1; transform: none; transition: none; }
  .pill-dot { animation: none; }
  .hero-content { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .module-featured { grid-column: span 3; grid-row: auto; padding-bottom: 24px; }
  .module-photo { display: none; }
  .module-featured p { max-width: none; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 100px var(--gutter) 28px; flex-direction: column; align-items: flex-start; gap: 18px;
    background: rgba(238,244,240,0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(26,42,36,0.12);
    transform: translateY(-110%); transition: transform 240ms ease; z-index: -1;
  }
  .nav-links.is-open { transform: none; }
  .nav-links > a:not(.btn) { font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* Hero mobile en dos bloques: arriba Alma limpia (sin velo), abajo el
     texto sobre un fondo blanco difuminado que se funde con el video. */
  .hero { display: block; min-height: 0; }
  .hero-video {
    position: relative; inset: auto; display: block;
    width: 100%; height: 64vh; height: 64svh; min-height: 420px;
    transform: none; object-position: 66% top;
  }
  .hero-veil { display: none; }
  .hero-content {
    max-width: none;
    margin-top: -96px;
    padding: 72px var(--gutter) 40px;
    /* Sin backdrop-filter aquí: combinado con el degradé/máscara se pintaba
       opaco en Safari/iOS (el "velo" que no dejaba ver a Alma). El degradé
       solo, en varios pasos, ya da un fundido suficientemente suave y es
       seguro en todos los navegadores. */
    background: linear-gradient(180deg,
      rgba(238,244,240,0) 0%,
      rgba(238,244,240,0.35) 40px,
      rgba(238,244,240,0.75) 84px,
      var(--bg) 148px);
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
  }
  .hero.hero-revealed .hero-content { opacity: 1; transform: none; }
  .hero-flow { flex-wrap: wrap; border-radius: 24px; }
  .hf-arrow { display: none; }
  .intro-grid, .how-grid, .review-grid, .legal-grid, .onboarding-grid, .cta-grid { grid-template-columns: 1fr; }
  .rd-card-alert { margin-left: 0; }
  .intro-figure { order: -1; }
  .intro-figure img, .intro-figure video, .legal-figure img, .legal-figure video, .onboarding-figure img, .onboarding-figure video { aspect-ratio: 4 / 3; }
  .float-card { left: 16px; bottom: 16px; }
  .chat-demo { max-width: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .module-featured { grid-column: span 2; }
  .law-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .modules-grid { grid-template-columns: 1fr; }
  .module-featured { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(26px, 8vw, 36px); }
  .hero-wordmark { height: 1.9em; }
}
