/* Home refinement: Hero -> Trust -> Core intelligence -> Your stack -> Data & AI control -> Adoption -> Proof -> Testimonials -> CTA.
   Layout rhythm alternates on purpose (split / strip / wide stage / visual+text / cards / numbers). Prefix: hm- */
.hm-band { background: var(--color-p-card); border-top: 1px solid var(--color-p-border-line); border-bottom: 1px solid var(--color-p-border-line); }
.hm-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--color-p-accent-text); margin: 0 0 14px; }
.hm-h2 { font-family: var(--font-geist, inherit); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(30px, 4.2vw, 48px); color: var(--color-p-text); margin: 0; }
.hm-lead { font-size: 16px; line-height: 1.6; color: var(--color-p-text-secondary); margin: 0; max-width: 560px; }
@media (min-width: 768px) { .hm-lead { font-size: 18px; } }
.hm-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--color-p-accent-text); }
.hm-link:hover { text-decoration: underline; }

/* 02 Trust: compact horizontal strip */
.hm-trust-inner { display: flex; flex-direction: column; gap: 14px; padding: 22px 0; margin-top: 8px; border-top: 1px solid var(--color-p-border-line); border-bottom: 1px solid var(--color-p-border-line); }
.hm-trust-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--color-p-text-secondary); }
.hm-trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-trust-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--color-p-text); }
.hm-trust-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-p-teal); }
@media (min-width: 900px) { .hm-trust-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } .hm-trust-list { flex-direction: row; gap: 36px; } }

/* 03 Core: split header (text left / lead right), wide stage below */
.hm-split { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end; }
@media (min-width: 900px) { .hm-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
#one-conversation .oc-core { width: 400px; }
#one-conversation .oc-steps { flex-wrap: wrap; }
#one-conversation .oc-lines { min-height: 0; }
#one-conversation .oc-line { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--color-p-text-secondary); }
#one-conversation .oc-line.on { color: var(--color-p-text); }
#one-conversation .oc-card { gap: 12px; text-decoration: none; }
a.oc-tag { text-decoration: none; }
a.oc-tag:hover { background: color-mix(in srgb, var(--oc-c) 16%, transparent); }

/* 04 Stack: big visual left, text right (text first on mobile) */
.hm-stack { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hm-stack-text { order: -1; }
@media (min-width: 1024px) { .hm-stack { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } .hm-stack-text { order: 0; } }
.hm-stack .flow-diagram { max-width: 720px; margin: 0; }

/* 05 Data + AI: three clean cards */
.hm-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .hm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.hm-card { position: relative; padding: 28px 26px 30px; border-radius: 20px; background: var(--color-p-card); border: 1px solid var(--color-p-border-line); overflow: hidden; transition: border-color .4s ease, transform .4s ease; }
.hm-card::before { content: ""; position: absolute; left: 26px; top: 0; width: 44px; height: 2px; background: var(--color-p-teal); }
.hm-card:hover { border-color: rgba(20,184,166,0.35); }
.hm-card-num { display: block; font-family: var(--font-geist, inherit); font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--color-p-teal); margin-bottom: 22px; }
.hm-card-title { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-p-text); }
.hm-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-p-text-secondary); }

/* 06 Adoption: text left, DOER loop right */
.hm-adopt { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hm-adopt { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.hm-adopt .ad-ring-wrap { padding: 20px 60px; }
.hm-adopt .ad-ring { max-width: 250px; }
.hm-adopt .ad-grid { gap: 20px; }
@media (min-width: 900px) { .hm-adopt .ad-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; } }
.hm-adopt .ad-panel { padding: 20px; }
.hm-adopt .ad-panel h3 { font-size: 20px; }
.hm-adopt .ad-center p { font-size: 14px; }
.ad-letter { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: rgba(232,108,93,0.14); color: var(--color-p-accent-text); font-weight: 900; }

/* 07 Proof: numbers in a row */
.hm-proof-grid { display: grid; grid-template-columns: 1fr; }
.hm-proof-item { padding: 26px 0; border-top: 1px solid var(--color-p-border-line); }
.hm-proof-item:first-child { border-top: none; }
.hm-stat { margin: 0 0 8px; font-family: var(--font-geist, inherit); font-size: clamp(52px, 7vw, 76px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, var(--color-p-text) 0%, var(--color-p-accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-stat-lbl { margin: 0; width: 100%; max-width: 300px; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--color-p-text-secondary); }
@media (min-width: 800px) { .hm-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hm-proof-item { padding: 8px 36px; border-top: none; border-left: 1px solid var(--color-p-border-line); } .hm-proof-item:first-child { padding-left: 0; border-left: none; } }

/* Hero mobile containment (surgical): the nowrap gradient span forced the grid wider than the viewport,
   cutting the headline ("repetible") and the call card. Copy, call animation and desktop layout are untouched. */
.hm-hero .grid > * { min-width: 0; }
@media (max-width: 767px) { .hm-hero h1 .gradient-text-accent { white-space: normal !important; } }

/* Core intelligence: faster transitions so the whole sequence reads in ~2s (timings are driven by the inline script in index.html) */
#one-conversation .oc-wire-fill { transition-duration: .3s; }
#one-conversation .oc-stage.s-flow .oc-packet { animation-duration: .4s; }
#one-conversation .oc-stage.s-process .oc-bar > i { transition-duration: .7s; }
#one-conversation .oc-step { transition-duration: .2s; }
#one-conversation .oc-card { transition-duration: .3s, .3s, .3s, .3s; }
#one-conversation .oc-line, #one-conversation .oc-tag { transition-duration: .25s; }
#one-conversation .oc-card::before { transition-duration: .35s; transition-delay: 0s; }
#one-conversation .oc-card::after { transition-duration: .2s; transition-delay: .25s; }

/* Adoption: the "why" next to the headline (95% of AI projects fail) */
.hm-fact { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 2px solid var(--color-p-accent); }
.hm-fact-num { margin: 0; font-family: var(--font-geist, inherit); font-size: clamp(44px, 5vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, var(--color-p-text) 0%, var(--color-p-accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-fact-lbl { margin: 6px 0 10px; font-size: 16px; font-weight: 700; color: var(--color-p-text); }
.hm-fact-why { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-p-text-secondary); }
@media (max-width: 767px) { .hm-fact-why br { display: none; } }

/* Trust bar: four quick security / compliance / infrastructure signals, each with a small line icon */
.hm-trust-list li svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(20,184,166,0.1); border: 1px solid rgba(20,184,166,0.25); }
@media (max-width: 899px) { .hm-trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; } .hm-trust-list li { font-size: 13px; align-items: center; } }
@media (min-width: 900px) { .hm-trust-list { gap: 28px; } }

/* Data & AI control: shield + lock + AI mark (security + privacy + control) and an icon per pillar */
.hm-shield { margin: 0 auto 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--color-p-text); }
.hm-shield svg { width: 150px; height: auto; overflow: visible; filter: drop-shadow(0 0 28px rgba(20,184,166,0.28)); }
.hm-shield-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) .15s; }
.hm-shield.visible .hm-shield-line { stroke-dashoffset: 0; }
.hm-lock, .hm-ai { opacity: 0; transition: opacity .6s ease .8s; }
.hm-shield.visible .hm-lock, .hm-shield.visible .hm-ai { opacity: 1; }
.hm-ai { animation: hm-ai-pulse 3.2s ease-in-out 2s infinite; }
@keyframes hm-ai-pulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.hm-shield-cap { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-p-text-secondary); }
.hm-shield-cap i { width: 4px; height: 4px; border-radius: 50%; background: var(--color-p-teal); }
.hm-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hm-card-top .hm-card-num { margin-bottom: 0; }
.hm-card-ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; color: var(--color-p-teal); background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.25); }
@media (prefers-reduced-motion: reduce) { .hm-shield-line, .hm-lock, .hm-ai { transition: none; animation: none; stroke-dashoffset: 0; opacity: 1; } }

/* Adopcion: two columns on desktop (content + CTA | 95% stat); the DOER loop sits below. One column on mobile. */
.hm-adopt { grid-template-columns: 1fr !important; gap: 44px !important; }
.hm-adopt-top { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hm-adopt-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.hm-adopt .ad { width: 100%; max-width: 980px; margin: 0 auto; }
.hm-fact--stat { margin: 0; padding: 8px 0 8px 32px; }
@media (min-width: 1024px) { .hm-fact--stat { padding-left: 44px; } }
.hm-fact--stat .hm-fact-num { font-size: clamp(76px, 11vw, 132px); }
.hm-fact--stat .hm-fact-lbl { margin: 10px 0 16px; font-size: clamp(18px, 2vw, 24px); }
.hm-fact--stat .hm-fact-why { font-size: 16px; max-width: 460px; }
@media (max-width: 767px) { .hm-fact--stat { padding-left: 20px; } .hm-fact--stat .hm-fact-num { font-size: 72px; } .hm-fact--stat .hm-fact-why { font-size: 14px; } }

/* Resultados: three identical blocks (same number size, description size / line-height / width, spacing and alignment) */
.hm-proof-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.hm-proof-item .hm-stat { margin: 0 0 12px; }
.hm-proof-item .hm-stat-lbl { margin: 0; }

/* Control de datos e IA: calmer. Headline leads, cards are secondary. */
.hm-data .hm-lead--sm { font-size: 15px; line-height: 1.55; font-weight: 400; color: var(--color-p-muted); max-width: 480px; }
@media (min-width: 768px) { .hm-data .hm-lead--sm { font-size: 16px; } }
.hm-data .hm-cards { gap: 14px; }
.hm-data .hm-card { padding: 20px 22px 22px; border-radius: 16px; background: transparent; }
.hm-data .hm-card::before { width: 28px; left: 22px; opacity: .7; }
.hm-data .hm-card-top { margin-bottom: 14px; }
.hm-data .hm-card-num { font-size: 12px; opacity: .8; }
.hm-data .hm-card-ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: transparent; }
.hm-data .hm-card-title { font-size: 12.5px; margin-bottom: 6px; color: var(--color-p-text-secondary); }
.hm-data .hm-card p { font-size: 14px; line-height: 1.5; color: var(--color-p-muted); }
