/* AlfaLabs · portada de alfalabs.cl */
:root {
  --al-red: #EA2419;
  --al-red-ink: #D21E14;   /* rojo con contraste AA sobre blanco */
  --al-red-d: #B5190F;
  --al-slate: #434F58;
  --al-slate-d: #2b343b;
  --al-night: #1a2025;
  --al-ink: #1d2328;
  --al-muted: #5a6670;
  --al-line: #e2e5e8;
  --al-soft: #f4f5f6;
  --al-white: #fff;
  --al-gold: #f5b301;
  --al-radius: 16px;
  --al-wrap: 1180px;
  --al-offset: 0px;        /* alto del banner FOREDE cuando está visible */
  --al-font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body.al-landing { margin: 0; padding: 0; font-family: var(--al-font); color: var(--al-ink); background: var(--al-white); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
.al-landing *, .al-landing *::before, .al-landing *::after { box-sizing: border-box; }
:where(.al-landing) :where(h1, h2, h3) { font-family: var(--al-font); color: inherit; margin: 0; letter-spacing: -.02em; line-height: 1.15; font-weight: 800; }
:where(.al-landing) p { margin: 0; }
:where(.al-landing) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.al-landing) a { color: var(--al-red-ink); }
.al-landing :focus-visible { outline: 3px solid var(--al-gold); outline-offset: 3px; border-radius: 6px; }
.al-landing .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html:has(body.al-landing) { scroll-behavior: smooth; scroll-padding-top: calc(84px + var(--al-offset)); }

.al-wrap { width: 100%; max-width: var(--al-wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .al-wrap { padding: 0 32px; } }

.al-skip { position: absolute; left: 12px; top: -100px; z-index: 100000; background: var(--al-ink); color: #fff !important; padding: .6em 1em; border-radius: 8px; font-weight: 700; text-decoration: none; }
.al-skip:focus { top: 12px; }

/* Botones */
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 46px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent; font: 700 .97rem/1.2 var(--al-font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.al-btn:active { transform: translateY(1px); }
.al-btn--primary { background: var(--al-red-ink); color: #fff !important; }
.al-btn--primary:hover { background: var(--al-red-d); }
.al-btn--ghost { background: transparent; color: var(--al-ink) !important; border-color: var(--al-line); }
.al-btn--ghost:hover { border-color: var(--al-slate); }
.al-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.al-btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.al-btn--lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.02rem; }
.al-btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .9rem; }
.al-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.al-actions--center { justify-content: center; }
@media (max-width: 479px) { .al-actions .al-btn--lg { width: 100%; } }

/* Logo: logotipo oficial de AlfaPeople + AlfaLabs */
.al-logo { display: inline-flex; align-items: center; gap: 14px; color: #424242 !important; text-decoration: none; }
.al-logo__ap { display: block; width: auto; height: 28px; }
.al-logo__sep { flex: none; width: 1px; height: 30px; background: var(--al-line); }
.al-logo__text { display: flex; flex-direction: column; line-height: 1; }
.al-logo__text b { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.al-logo__text small { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--al-red-ink); margin-top: .45em; }
.al-logo--light { color: #fff !important; }
.al-logo--light .al-logo__sep { background: rgba(255,255,255,.22); }
.al-logo--light .al-logo__text small { color: #ff7a70; }
@media (max-width: 419px) {
  .al-logo { gap: 10px; }
  .al-logo__ap { height: 22px; }
  .al-logo__sep { height: 24px; }
  .al-logo__text b { font-size: .95rem; }
  .al-logo__text small { display: none; }
}

/* Encabezado */
.al-header { position: sticky; top: var(--al-offset); z-index: 900; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
body.admin-bar .al-header { top: calc(32px + var(--al-offset)); }
@media (max-width: 782px) { body.admin-bar .al-header { top: calc(46px + var(--al-offset)); } }
.al-header.is-scrolled { border-color: var(--al-line); box-shadow: 0 6px 24px rgba(29,35,40,.06); }
.al-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.al-nav { display: flex; align-items: center; gap: 24px; }
.al-nav a:not(.al-btn) { color: var(--al-ink); font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none; padding: .4em 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.al-nav a:not(.al-btn):hover { border-color: var(--al-red); }
.al-nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--al-line); border-radius: 12px; background: #fff; cursor: pointer; place-items: center; }
.al-nav-toggle__bars, .al-nav-toggle__bars::before, .al-nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--al-ink); border-radius: 2px; transition: transform .2s, background .2s; position: relative; }
.al-nav-toggle__bars::before, .al-nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.al-nav-toggle__bars::before { top: -6px; }
.al-nav-toggle__bars::after { top: 6px; }
.al-nav-toggle[aria-expanded="true"] .al-nav-toggle__bars { background: transparent; }
.al-nav-toggle[aria-expanded="true"] .al-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.al-nav-toggle[aria-expanded="true"] .al-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .al-nav-toggle { display: grid; }
  .al-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--al-line); box-shadow: 0 18px 30px rgba(29,35,40,.08); display: none; }
  .al-nav.is-open { display: flex; }
  .al-nav a:not(.al-btn) { padding: 14px 0; border-bottom: 1px solid var(--al-line); }
  .al-nav a:not(.al-btn):hover { border-color: var(--al-line); color: var(--al-red-ink); }
  .al-nav .al-btn { margin-top: 16px; min-height: 48px; }
}

/* Hero */
.al-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 520px at 88% 0%, rgba(234,36,25,.28) 0%, transparent 62%),
  radial-gradient(700px 500px at 0% 100%, rgba(67,79,88,.55) 0%, transparent 70%),
  linear-gradient(160deg, var(--al-slate-d) 0%, var(--al-night) 100%); }
.al-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); pointer-events: none; }
.al-hero__in { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
@media (min-width: 1000px) { .al-hero__in { grid-template-columns: 1.1fr .9fr; gap: 64px; padding-top: 96px; padding-bottom: 112px; } }
.al-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.05; margin-bottom: 22px; }
.al-hl { color: var(--al-red); background: linear-gradient(90deg, #ff5a4f, var(--al-red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.al-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 36em; margin-bottom: 32px; }
.al-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.al-hero__tags li { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.75); padding: .4em .9em; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }

.al-kicker { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--al-red-ink); margin-bottom: 16px; }
.al-kicker::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.al-kicker--light { color: #ff7a70; }

/* Avatar de AlfaLabs: se asoma por detrás de la consola */
.al-hero__visual { display: flex; flex-direction: column; width: 100%; max-width: 520px; justify-self: center; }
.al-avatar { position: relative; z-index: 0; align-self: flex-end; display: block; width: 220px; aspect-ratio: 4 / 5; overflow: hidden; margin: 0 7% -64px 0; filter: drop-shadow(0 24px 36px rgba(0,0,0,.4)); }
.al-avatar img, .al-avatar video { display: block; width: 100%; height: auto; } /* cuerpo entero; el recuadro muestra de la cabeza a la cintura */
.al-hero__visual .al-console { position: relative; z-index: 1; background: #fff; }
@media (max-width: 479px) { .al-avatar { width: 168px; margin-bottom: -49px; } }

/* Consola de ejemplo del agente */
.al-console { margin: 0; background: rgba(255,255,255,.97); color: var(--al-ink); border-radius: 22px; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; max-width: 520px; justify-self: center; width: 100%; }
.al-console__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--al-line); background: var(--al-soft); }
.al-console__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d8dc; }
.al-console__bar i:first-child { background: var(--al-red); }
.al-console__bar span { margin-left: 8px; font-size: .82rem; font-weight: 700; color: var(--al-slate); }
.al-console__body { display: grid; gap: 14px; padding: 22px 20px; }
.al-msg { max-width: 88%; padding: .8em 1.05em; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.al-msg--user { justify-self: end; background: var(--al-slate-d); color: #fff; border-bottom-right-radius: 4px; }
.al-msg--agent { background: var(--al-soft); border: 1px solid var(--al-line); border-bottom-left-radius: 4px; }
.al-steps { display: grid; gap: 8px; }
.al-steps li { display: flex; align-items: center; gap: .6em; font-size: .85rem; font-weight: 600; color: var(--al-slate-d); }
.al-steps li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #1f8a4c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.al-console__foot { display: flex; align-items: center; gap: .6em; padding: 14px 20px; border-top: 1px solid var(--al-line); font-size: .8rem; font-weight: 600; color: var(--al-muted); }
.al-live { width: 9px; height: 9px; border-radius: 50%; background: #1f8a4c; box-shadow: 0 0 0 0 rgba(31,138,76,.5); animation: al-pulse 2s infinite; }
@keyframes al-pulse { 70% { box-shadow: 0 0 0 8px rgba(31,138,76,0); } 100% { box-shadow: 0 0 0 0 rgba(31,138,76,0); } }

.js .al-console .al-msg, .js .al-console .al-steps li { opacity: 0; transform: translateY(8px); animation: al-in .5s ease-out forwards; }
.js .al-console .al-msg--user { animation-delay: .2s; }
.js .al-console .al-msg--agent { animation-delay: .8s; }
.js .al-console .al-steps li:nth-child(1) { animation-delay: 1.4s; }
.js .al-console .al-steps li:nth-child(2) { animation-delay: 1.7s; }
.js .al-console .al-steps li:nth-child(3) { animation-delay: 2s; }
@keyframes al-in { to { opacity: 1; transform: none; } }

/* Banda AlfaPeople */
.al-band { background: var(--al-soft); border-bottom: 1px solid var(--al-line); }
.al-band__in { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
@media (min-width: 900px) { .al-band__in { grid-template-columns: 1fr 2fr; gap: 48px; } }
.al-band__lead { font-size: 1.05rem; font-weight: 600; color: var(--al-slate); max-width: 22em; }
.al-band__lead b { color: var(--al-ink); }
.al-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
@media (min-width: 640px) { .al-stats { grid-template-columns: repeat(4, 1fr); } }
.al-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding-left: 16px; border-left: 3px solid var(--al-red); }
.al-stats dt { font-size: .8rem; font-weight: 600; color: var(--al-muted); line-height: 1.3; }
.al-stats dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--al-ink); line-height: 1.1; }

/* Secciones */
.al-section { padding: 88px 0; }
@media (min-width: 900px) { .al-section { padding: 112px 0; } }
.al-section--tight { padding: 56px 0; }
.al-section--soft { background: var(--al-soft); }
.al-section--dark { color: #fff; background: radial-gradient(800px 480px at 100% 100%, rgba(234,36,25,.22), transparent 65%), linear-gradient(160deg, var(--al-slate-d), var(--al-night)); }
.al-head { max-width: 720px; margin-bottom: 52px; }
.al-head h2, .al-split h2, .al-event h2, .al-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.al-head p:not(.al-kicker) { font-size: 1.08rem; color: var(--al-muted); }

/* Servicios */
.al-cards { display: grid; gap: 20px; }
@media (min-width: 680px) { .al-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .al-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.al-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--al-line); border-radius: var(--al-radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.al-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(29,35,40,.08); border-color: transparent; }
.al-card h3 { font-size: 1.2rem; }
.al-card p { color: var(--al-muted); }
.al-card .al-card__tech { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--al-line); font-size: .8rem; font-weight: 700; color: var(--al-slate); }
.al-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(234,36,25,.08); color: var(--al-red-ink); margin-bottom: 4px; }
.al-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Método */
.al-steps-grid { display: grid; gap: 20px; counter-reset: paso; }
@media (min-width: 680px) { .al-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .al-steps-grid { grid-template-columns: repeat(4, 1fr); } }
.al-step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--al-radius); border: 1px solid var(--al-line); }
.al-step__num { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--al-red); margin-bottom: 18px; }
.al-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.al-step p { color: var(--al-muted); }
@media (min-width: 1040px) {
  .al-step:not(:last-child)::after { content: ''; position: absolute; top: 48px; right: -21px; width: 22px; height: 2px; background: var(--al-red); opacity: .5; }
}

/* Casos de uso */
.al-uses { display: grid; gap: 1px; background: var(--al-line); border: 1px solid var(--al-line); border-radius: var(--al-radius); overflow: hidden; }
@media (min-width: 680px) { .al-uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .al-uses { grid-template-columns: repeat(3, 1fr); } }
.al-use { padding: 28px; background: #fff; transition: background .2s; }
.al-use:hover { background: #fffaf9; }
.al-use h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.al-use p { color: var(--al-muted); font-size: .96rem; }
.al-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--al-red-ink); background: rgba(234,36,25,.08); padding: .35em .8em; border-radius: 999px; }

/* AlfaLabs + AlfaPeople */
.al-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .al-split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.al-split p:not(.al-kicker) { color: rgba(255,255,255,.8); font-size: 1.08rem; margin-bottom: 28px; }
.al-checks { display: grid; gap: 14px; }
.al-checks li { position: relative; padding: 20px 22px 20px 60px; border-radius: var(--al-radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.al-checks li b { color: #fff; }
.al-checks li::before { content: ''; position: absolute; left: 20px; top: 21px; width: 24px; height: 24px; border-radius: 50%; background: var(--al-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Evento */
.al-event { display: grid; gap: 24px; align-items: center; padding: 36px; border-radius: 22px; border: 1px solid rgba(234,36,25,.25); background: linear-gradient(120deg, #fff 0%, #fff6f5 100%); }
@media (min-width: 900px) { .al-event { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.al-event h2 { margin-bottom: 8px; }
.al-event p:not(.al-kicker) { color: var(--al-muted); }

/* Contacto */
.al-cta { background: var(--al-soft); text-align: center; }
.al-cta__in { max-width: 820px; }
.al-cta p { font-size: 1.1rem; color: var(--al-muted); margin-bottom: 32px; }

/* Pie */
.al-footer { background: var(--al-night); color: rgba(255,255,255,.7); font-size: .92rem; }
.al-footer__in { display: grid; gap: 28px; padding-top: 52px; padding-bottom: 36px; }
@media (min-width: 760px) { .al-footer__in { grid-template-columns: 1fr auto; align-items: start; } }
.al-footer__tag { margin-top: 14px; max-width: 26em; }
.al-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.al-footer__nav a { color: #fff; text-decoration: none; font-weight: 600; }
.al-footer__nav a:hover { color: #ff7a70; }
.al-footer__legal { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: rgba(255,255,255,.5); }

/* Aparición al hacer scroll */
.js .al-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .al-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.al-landing) { scroll-behavior: auto; }
  .js .al-reveal, .js .al-console .al-msg, .js .al-console .al-steps li { opacity: 1; transform: none; animation: none; transition: none; }
  .al-live { animation: none; }
  .al-card:hover { transform: none; }
}
