/* zhome.css — portada de zaveli.ai (marca v3). Base, header y footer: /brand.css (mismo sistema que lemusdigital.com).
 * Hero: diapositivas apiladas (grid) que cambian con .is-active; ver /carousel.js.
 * CACHÉ: al cambiar este archivo, subir el ?v= en las páginas que lo enlazan. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ld-brand--z img { width: 168px; height: auto; }
@media (max-width: 950px) { .ld-brand--z img { width: 150px; } }
.ld-footer-brand--z img { width: 170px; }

/* ===== Hero (diapositivas) ===== */
.zh-slides { display: grid; }
.zh-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.zh-slide.is-active { opacity: 1; visibility: visible; }
.zh-photo { display: grid; }
.zh-pslide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.zh-pslide.is-active { opacity: 1; visibility: visible; }
.zh-slide .ld-eyebrow { margin: 0 0 22px; }
.zh-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.zh-pause { min-height: 36px; padding: 6px 14px; border: 1px solid var(--ld-border-control); border-radius: var(--ld-radius-control); background: transparent; color: var(--ld-foreground); font: 600 13px/18px var(--ld-font-sans); cursor: pointer; }
.zh-pause:hover { background: var(--ld-surface-muted); }
.zh-pause .t-play { display: none; }
.zh-pause[aria-pressed="true"] .t-pause { display: none; }
.zh-pause[aria-pressed="true"] .t-play { display: inline; }
.zh-dots { display: flex; gap: 6px; }
.zh-dot { position: relative; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.zh-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 4px; margin: -2px 0 0 -14px; background: var(--ld-border-control); transition: background var(--ld-duration); }
.zh-dot[aria-pressed="true"]::before { background: var(--ld-accent); height: 6px; margin-top: -3px; }

/* ===== Hero ===== */
.zh-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.zh-hero > * { min-width: 0; }
.zh-h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: .98; letter-spacing: -.055em; margin: 0 0 26px; font-weight: 820; overflow-wrap: normal; }
.zh-h1 em, .zh-h2 em { font-style: normal; color: var(--ld-accent); }
.zh-lead { font-size: 19px; line-height: 1.55; color: var(--ld-text-secondary); max-width: 540px; margin: 0; }
.zh-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.zh-micro { margin: 22px 0 0; font: 500 12px/18px var(--ld-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ld-text-secondary); }
.zh-figure { margin: 0; position: relative; padding-left: 24px; }
.zh-figure::before { content: ''; position: absolute; left: 0; top: 0; bottom: 36px; width: 8px; background: var(--ld-accent); }
.zh-pslide > img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.zh-chat { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: start; }
.zh-bubble { max-width: 78%; padding: 10px 14px; background: #FFFFFFEE; border-radius: 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 2px 10px #202A3033; }
.zh-bubble small { display: block; margin-bottom: 2px; font: 500 10px/14px var(--ld-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ld-text-secondary); }
.zh-bubble.is-z { background: var(--ld-accent-soft); margin-left: auto; justify-self: end; }
.zh-chip { justify-self: end; padding: 6px 12px; background: var(--ld-success-soft); color: var(--ld-success); border-radius: 3px; font: 600 13px/18px var(--ld-font-sans); }
.zh-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--ld-text-secondary); line-height: 1.45; }

/* ===== Secciones ===== */
.zh-section { padding-top: 76px; padding-bottom: 76px; }
.zh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.zh-split > * { min-width: 0; }
.zh-h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.05em; margin: 18px 0 22px; font-weight: 780; }
.zh-body { font-size: 18px; color: var(--ld-text-secondary); line-height: 1.65; max-width: 560px; margin: 0; }
.zh-channels { border-block: 1px solid var(--ld-border); }
.zh-channels .ld-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; padding-bottom: 22px; }
.zh-channels p { margin: 0; font-weight: 600; }
.zh-channels ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zh-channels li { border: 1px solid var(--ld-border-control); border-radius: var(--ld-radius-control); padding: 6px 12px; font: 500 12px/18px var(--ld-font-mono); letter-spacing: .06em; text-transform: uppercase; }
.zh-steps { list-style: none; margin: 0; padding: 0; }
.zh-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; border-top: 1px solid var(--ld-border); padding: 22px 0; }
.zh-steps li:last-child { border-bottom: 1px solid var(--ld-border); }
.zh-steps .n { font: 13px var(--ld-font-mono); color: var(--ld-accent-ink); padding-top: 6px; }
.zh-steps h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.zh-steps p { margin: 0; font-size: 16px; color: var(--ld-text-secondary); line-height: 1.6; }

.zh-dark { background: var(--ld-foreground); color: var(--ld-background); }
.zh-dark .ld-eyebrow { color: #D4D0C6; }
.zh-dark .zh-body { color: #D4D8D9; }
.zh-dark .zh-h2 em { color: #9EC0D2; }
.zh-handoff { background: var(--ld-background); color: var(--ld-foreground); border-radius: var(--ld-radius-panel); padding: 28px; }
.zh-handoff .ld-eyebrow { color: var(--ld-accent-ink); }
.zh-handoff blockquote { margin: 14px 0 22px; font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.zh-handoff-who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--ld-border); padding-top: 18px; }
.zh-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ld-accent); color: #fff; display: grid; place-items: center; font: 700 14px/1 var(--ld-font-sans); flex: none; }
.zh-handoff-who strong { display: block; }
.zh-handoff-who span { font-size: 14px; color: var(--ld-text-secondary); }

.zh-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.zh-card { background: var(--ld-surface); border: 1px solid var(--ld-border); border-radius: var(--ld-radius-panel); padding: 28px; }
.zh-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.03em; }
.zh-card p { margin: 0; color: var(--ld-text-secondary); line-height: 1.6; }
.zh-note { margin: 22px 0 0; font-size: 14px; color: var(--ld-text-secondary); max-width: 760px; line-height: 1.55; }
.zh-proof { margin-top: 28px; padding: 20px 24px; background: var(--ld-surface-muted); border-radius: var(--ld-radius-panel); font-size: 15px; color: var(--ld-text-secondary); line-height: 1.6; max-width: 860px; }
.zh-proof b { color: var(--ld-foreground); font-size: 20px; }

.zh-tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zh-tags li { border: 1px solid var(--ld-border-control); border-radius: var(--ld-radius-control); padding: 6px 12px; font-size: 14px; font-weight: 500; }
.zh-demo { background: var(--ld-surface); border: 1px solid var(--ld-border); border-radius: var(--ld-radius-panel); padding: 30px; }
.zh-demo h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.035em; }
.zh-demo > p { margin: 0 0 18px; color: var(--ld-text-secondary); }
.zh-demo .zh-bubble { background: var(--ld-background); box-shadow: none; max-width: 90%; margin-top: 10px; }
.zh-demo .zh-bubble.is-z { background: var(--ld-accent-soft); }
.zh-demo-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; }
.zh-fine { margin: 14px 0 0; font-size: 13px; color: var(--ld-text-secondary); line-height: 1.5; }

.zh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 30px; }
.zh-grid .card { display: block; background: var(--ld-surface); border: 1px solid var(--ld-border); border-radius: var(--ld-radius-panel); padding: 24px; color: inherit; text-decoration: none; transition: border-color var(--ld-duration); }
.zh-grid a.card:hover { border-color: var(--ld-accent); }
.zh-grid .card h3 { margin: 0 0 8px; font-size: 20px; }
.zh-grid .card p { margin: 0 0 10px; color: var(--ld-text-secondary); font-size: 15px; line-height: 1.55; }
.zh-grid .card .ir { color: var(--ld-accent-ink); font-weight: 600; display: block; margin-top: 12px; font-size: 14px; }
.zh-grid .sectores a { color: var(--ld-accent-ink); font-weight: 600; text-underline-offset: 4px; }

.zh-faq details { border-top: 1px solid var(--ld-border); padding: 20px 0; }
.zh-faq details:last-child { border-bottom: 1px solid var(--ld-border); }
.zh-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 28px; }
.zh-faq summary::-webkit-details-marker { display: none; }
.zh-faq summary svg { width: 22px; height: 22px; flex: none; }
.zh-faq summary .m { display: none; }
.zh-faq details[open] summary .m { display: block; }
.zh-faq details[open] summary .p { display: none; }
.zh-faq p { margin: 14px 0 0; color: var(--ld-text-secondary); line-height: 1.7; max-width: 580px; }

.zh-cta { background: var(--ld-accent); color: #fff; }
.zh-cta .ld-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.zh-cta h2 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.05em; margin: 0; font-weight: 780; }
.zh-cta h2 em { font-style: normal; color: #1A242A; }
.zh-cta p { margin: 16px 0 0; font-size: 16px; }
.zh-cta a:not(.ld-button) { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.zh-cta :is(a, button):focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) { .zh-slide, .zh-pslide { transition: none; } }

@media (max-width: 950px) {
  .zh-hero { grid-template-columns: 1fr; gap: 32px; }
  .zh-split { gap: 36px; }
  .zh-cta .ld-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .zh-hero { padding: 24px 0 36px; }
  .zh-h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .zh-pslide > img { height: 300px; }
  .zh-figure { padding-left: 15px; }
  .zh-figure::before { width: 6px; }
  .zh-chat { left: 10px; right: 10px; bottom: 10px; }
  .zh-bubble { max-width: 92%; font-size: 13px; }
  .zh-section { padding-top: 52px; padding-bottom: 52px; }
  .zh-split, .zh-cards { grid-template-columns: 1fr; gap: 28px; }
  .zh-h2 { font-size: 34px; }
  .zh-demo { padding: 22px; }
  .zh-cta .ld-wrap { padding-top: 46px; padding-bottom: 46px; }
}
