/* ============================================================
   INSIGHTS SOFTWARE — Home (conversión)
   Builds on styles.css (News design system)
   ============================================================ */

/* minimal masthead override (logo only, no nav) */
.masthead--lite .masthead__bar .wrap { grid-template-columns: 1fr auto; height: 72px; }
.masthead--lite .wordmark { justify-self: start; }
.masthead--lite .wordmark img { height: 27px; }
.masthead--lite .masthead__actions { justify-content: flex-end; }

.lp-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-hi); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.lp-num::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

/* ---------- HERO ---------- */
.hm-hero { padding: clamp(72px, 13vh, 150px) 0 clamp(60px, 9vh, 110px); border-bottom: 1px solid var(--line); }
.hm-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-hero__tag { margin-bottom: 30px; }
.hm-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6.6vw, 86px); line-height: .98; letter-spacing: -.03em;
  text-wrap: balance; margin-bottom: 30px; max-width: 17ch;
}
.hm-hero h1 .em { font-style: italic; color: var(--accent-hi); }
.hm-hero__dek { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.42; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.hm-hero__cta { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 42px; flex-wrap: wrap; }
.hm-hero__cta .btn--accent { padding: 16px 30px; font-size: 15px; }
.hm-trust { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); flex-wrap: wrap; width: 100%; }
.hm-trust__item { display: flex; flex-direction: column; gap: 3px; }
.hm-trust__item .n { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.hm-trust__item .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hm-trust__sep { width: 1px; height: 38px; background: var(--line); }

/* ---------- generic section ---------- */
.hm-sec { padding: clamp(64px, 9vh, 116px) 0; border-bottom: 1px solid var(--line); }
.hm-sec--sunk { background: var(--bg-sunk); }
.hm-sec__head { max-width: 760px; margin-bottom: 52px; }
.hm-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hm-h2 .em { font-style: italic; color: var(--accent-hi); }
.hm-sub { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); line-height: 1.5; margin-top: 16px; max-width: 60ch; text-wrap: pretty; }

/* ---------- VIDEO ---------- */
.hm-video { max-width: 880px; margin: 0 auto; }
.hm-video__head { text-align: center; margin-bottom: 36px; }
.hm-video__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.hm-video__head .k { margin-bottom: 18px; justify-content: center; }
.hm-video__frame { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: 0 30px 80px -30px oklch(0.3 0.02 60 / 0.35); }
.hm-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- METRICS ---------- */
.hm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.hm-metric { background: var(--bg); padding: 40px 36px; }
.hm-metric .big { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6vw, 76px); line-height: .92; letter-spacing: -.03em; color: var(--accent); }
.hm-metric .lbl { font-size: 15px; color: var(--ink-2); margin-top: 14px; line-height: 1.4; max-width: 22ch; }

/* ---------- TIMELINE ---------- */
.hm-timeline { margin-top: 60px; border-top: 1px solid var(--line-3); }
.hm-tl { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.hm-tl__year { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--accent-hi); padding-top: 4px; }
.hm-tl__body h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin-bottom: 10px; }
.hm-tl__body p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 64ch; }
.hm-tl__body p a { color: var(--accent-hi); border-bottom: 1px solid oklch(0.705 0.175 50 / 0.4); }
.hm-tl__logos { display: flex; align-items: center; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.hm-tl__photo { margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; max-width: 440px; }
.hm-tl__photo img { width: 100%; display: block; }

/* brand wordmarks (referential) */
.brand-stc { display: flex; align-items: center; gap: 11px; }
.brand-stc__mk { width: 38px; height: 38px; border-radius: 50%; background: #e2231a; display: grid; place-items: center; flex: none; }
.brand-stc__mk svg { width: 23px; height: 23px; }
.brand-stc__tx { font-family: Georgia, serif; font-weight: 700; font-size: 19px; color: oklch(0.25 0.005 60); letter-spacing: -.01em; }
.brand-unicef { display: flex; align-items: center; gap: 10px; }
.brand-unicef__mk { width: 34px; height: 34px; border-radius: 50%; background: #1cabe2; display: grid; place-items: center; flex: none; }
.brand-unicef__mk svg { width: 23px; height: 23px; }
.brand-unicef__tx { font-family: var(--sans); font-weight: 400; font-size: 27px; color: #1cabe2; letter-spacing: -.01em; }
.brand-unicef__div { width: 1px; height: 23px; background: oklch(0.8 0.01 240); }
.brand-unicef__sub { font-family: var(--sans); font-size: 15px; color: oklch(0.45 0.01 240); }

/* ---------- TESTIMONIAL CARDS ---------- */
.hm-tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.hm-test { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.hm-test__shot { aspect-ratio: 16/11; background: var(--bg-sunk); border-bottom: 1px solid var(--line); overflow: hidden; }
.hm-test__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hm-test__chat { aspect-ratio: 16/11; background: #0b141a; border-bottom: 1px solid var(--line); overflow: hidden; display: flex; }
.hm-test__chat img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hm-test__b { padding: 22px 24px 26px; }
.hm-test__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); }
.hm-test__b h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 10px 0 8px; letter-spacing: -.01em; }
.hm-test__b p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.hm-test__by { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.hm-test__by b { color: var(--ink); font-weight: 600; }

/* video testimonials row (centered) */
.hm-vids { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.hm-vid { position: relative; width: 300px; max-width: 100%; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0c0c0d; }
.hm-vid video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hm-vid__cover { position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; background-size: cover; background-position: center; transition: opacity .4s; }
.hm-vid__cover[hidden] { opacity: 0; pointer-events: none; }
.hm-vid__play { width: 70px; height: 70px; border-radius: 50%; background: oklch(1 0 0 / 0.92); display: grid; place-items: center; box-shadow: 0 12px 40px -8px oklch(0.1 0.01 60 / 0.5); transition: transform .2s, background .2s; }
.hm-vid__cover:hover .hm-vid__play { transform: scale(1.07); background: #fff; }
.hm-vid__play svg { width: 24px; height: 24px; margin-left: 3px; color: var(--accent); }
.hm-vid__lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: oklch(0.97 0 0); background: linear-gradient(0deg, oklch(0.1 0.004 60 / 0.7), transparent); display: flex; align-items: center; gap: 8px; }
.hm-vid__lbl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   PROCESS — zigzag + metallic spheres (signature component)
   ============================================================ */
.hm-proc { position: relative; }
.hm-proc__stage { position: relative; max-width: 1080px; margin: 56px auto 0; }
.hm-proc__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hm-proc__step { position: relative; z-index: 2; min-height: 320px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hm-proc__card {
  background: #fff; border: 1px solid oklch(0 0 0 / 0.06); border-radius: 18px;
  padding: 34px 38px 38px; box-shadow: 0 30px 60px -30px oklch(0.4 0.02 60 / 0.28), 0 6px 16px -8px oklch(0.4 0.02 60 / 0.16);
  max-width: 440px;
}
.hm-proc__step--l .hm-proc__card { grid-column: 2; justify-self: start; }   /* sphere left, card right */
.hm-proc__step--r .hm-proc__card { grid-column: 1; justify-self: end; }     /* sphere right, card left */
.hm-proc__card .step-k { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }
.hm-proc__card h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.01em; margin: 16px 0 14px; color: var(--ink); }
.hm-proc__card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* metallic sphere */
.hm-sphere { position: absolute; z-index: 3; width: 86px; height: 86px; transform: translate(-50%, -50%); }
.hm-sphere__num { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--accent); }
.hm-sphere__ball {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #ffffff 0%, #fbe4d2 9%, #eab593 30%, #c9805c 56%, #8f4f33 80%, #5e3320 100%);
  box-shadow:
    inset -5px -7px 14px rgba(70,30,15,0.55),
    inset 5px 6px 12px rgba(255,240,230,0.7),
    0 8px 20px -6px rgba(120,60,30,0.5);
  position: relative;
}
.hm-sphere__glow { position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, oklch(0.72 0.17 50 / 0.42) 0%, transparent 68%); z-index: -1; filter: blur(2px); }
/* last sphere = chrome/steel */
.hm-sphere--steel .hm-sphere__ball {
  background: radial-gradient(circle at 36% 28%, #ffffff 0%, #eef1f4 10%, #c3ccd4 34%, #8e9aa6 62%, #5d6772 84%, #3c444d 100%);
  box-shadow: inset -5px -7px 14px rgba(30,38,46,0.55), inset 5px 6px 12px rgba(255,255,255,0.85), 0 8px 20px -6px rgba(60,70,80,0.5);
}
.hm-sphere--steel .hm-sphere__num { color: var(--ink-3); }
.hm-sphere--steel .hm-sphere__glow { background: radial-gradient(circle, oklch(0.7 0.02 240 / 0.35) 0%, transparent 68%); }

/* mobile process: stacked left-rail */
.hm-proc__stage--mobile { display: none; }
@media (max-width: 860px) {
  .hm-proc__stage { display: none; }
  .hm-proc__stage--mobile { display: block; max-width: 560px; margin: 44px auto 0; position: relative; padding-left: 56px; }
  .hm-proc__stage--mobile::before { content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--accent) 0%, oklch(0.8 0.04 50) 100%); border-radius: 2px; }
  .hm-mstep { position: relative; padding: 0 0 36px; }
  .hm-mstep:last-child { padding-bottom: 0; }
  .hm-msphere { position: absolute; left: -56px; top: 0; width: 46px; height: 46px; }
  .hm-mstep .hm-proc__card { max-width: none; padding: 24px 26px 26px; }
}

/* ============================================================
   FORM
   ============================================================ */
.hm-form-sec { background: var(--bg-sunk); border-bottom: 0; }
.hm-form-wrap { max-width: 640px; margin: 0 auto; }
.hm-form-wrap .hm-sec__head { text-align: center; margin: 0 auto 40px; }
.hm-form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px, 4vw, 46px); box-shadow: 0 30px 70px -34px oklch(0.4 0.02 60 / 0.3); }
.hm-field { margin-bottom: 20px; }
.hm-field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.hm-field input, .hm-field textarea, .hm-field select {
  width: 100%; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-family: var(--sans); font-size: 16px; color: var(--ink); transition: border-color .15s;
}
.hm-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.hm-field input::placeholder, .hm-field textarea::placeholder { color: var(--ink-4); }
.hm-field input:focus, .hm-field textarea:focus, .hm-field select:focus { outline: none; border-color: var(--accent); }
.hm-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23998' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.hm-submit { width: 100%; justify-content: center; padding: 17px; font-size: 16px; margin-top: 6px; }
.hm-form-note { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); text-align: center; margin-top: 16px; letter-spacing: .02em; }

/* success state */
.hm-form-ok { text-align: center; padding: 18px 0; }
.hm-form-ok .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-dim); display: grid; place-items: center; margin: 0 auto 22px; }
.hm-form-ok .check svg { width: 30px; height: 30px; color: var(--accent-hi); }
.hm-form-ok h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 12px; letter-spacing: -.01em; }
.hm-form-ok p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* thank-you banner (on sobre-insights) */
.thanks-banner { background: var(--accent); color: #fff; }
.thanks-banner .wrap { display: flex; align-items: center; gap: 14px; padding: 15px 0; font-size: 15px; font-weight: 500; }
.thanks-banner svg { width: 20px; height: 20px; flex: none; }
.thanks-banner b { font-weight: 700; }
.thanks-banner__x { margin-left: auto; background: none; border: 0; color: oklch(1 0 0 / 0.8); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.thanks-banner__x:hover { color: #fff; }

.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); width: 0; z-index: 200; }

@media (max-width: 860px) {
  .hm-tests { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .hm-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hm-tl { grid-template-columns: 1fr; gap: 10px; }
  .hm-trust__sep { display: none; }
  .hm-trust { gap: 18px 30px; }
  .hm-hero__cta { flex-direction: column; align-items: stretch; gap: 16px; width: 100%; max-width: 340px; }
  .hm-hero__cta .btn--accent { justify-content: center; }
  .hm-hero__cta .txtlink { justify-content: center; }
  .hm-vid { width: 100%; max-width: 320px; }
  .masthead--lite .masthead__bar .wrap { height: 62px; }
  .masthead--lite .wordmark img { height: 23px; }
}
