/* ==========================================================================
   Emilia (emilia.html) — Figma frame 207:1216
   ========================================================================== */

.page-emilia { background: #050d1a; }

.em-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-alt); font-weight: var(--fw-bold); font-size: .8125rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--c-green);
}
.em-eyebrow .icon { width: 16px; height: 16px; }
.em-script { font-family: var(--font-alt); font-style: italic; font-weight: var(--fw-extrabold); color: var(--c-green); }

/* ----- Hero (oscuro) ----- */
.em-hero {
  position: relative; overflow: hidden; color: #fff;
  background: #0a1428 url("../../img/emilia-hero-bg.jpg") center / cover no-repeat;
}
.em-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,15,32,.92) 30%, rgba(7,15,32,.55) 70%); }
.em-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 512px); gap: 64px; align-items: center; padding-block: 72px; min-height: 560px; }
.em-hero h1 { font-family: var(--font-head); font-weight: var(--fw-extrabold); font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; color: #fff; }
.em-hero h1 .accent { color: var(--c-green); }
.em-hero__lead { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.62; color: #d1d5dc; max-width: 520px; margin: 24px 0 28px; }
.em-hero__lead strong { color: var(--c-green); font-weight: var(--fw-semibold); }
.em-hero__cta { font-family: var(--font-body); font-weight: var(--fw-bold); box-shadow: 0 4px 12px rgba(34,197,94,.3); }
.em-hero__cta-arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); }
.em-hero__cta-arrow .icon { width: 14px; height: 14px; }

.em-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(96,165,250,.15); }
.em-trust li { display: flex; align-items: center; gap: 12px; }
.em-trust .icon { width: 32px; height: 32px; color: var(--c-blue); }
.em-trust span { display: flex; flex-direction: column; font-family: var(--font-body); font-size: .875rem; color: #99a1af; line-height: 1.35; }
.em-trust strong { color: #fff; font-weight: var(--fw-semibold); }

.em-hero__video {
  margin: 0; border: 1px solid rgba(96,165,250,.2); border-radius: var(--r-md); padding: 8px;
  background: linear-gradient(146deg, #0d2254 6%, #071228 59%, #050d1a 94%);
  box-shadow: 0 0 40px rgba(34,197,94,.08), 0 0 80px rgba(96,165,250,.06);
}
.em-hero__video video { display: block; width: 100%; max-width: 300px; margin-inline: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-sm); background: #05140d; }
.em-hero__video img { width: 100%; height: 100%; object-fit: cover; }
.em-hero__video figcaption { margin-top: 10px; text-align: center; font-family: var(--font-body); font-size: .8125rem; color: #99a1af; }

/* ----- Historia (fondo claro/verde) ----- */
.em-story { background: linear-gradient(180deg, #eefaf1 0%, #f6fdf8 100%); color: var(--c-heading); padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
.em-story__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.em-story__copy h2 { font-family: var(--font-head); font-weight: var(--fw-extrabold); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.15; color: var(--c-heading); margin: 14px 0 20px; }
.em-story__text { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: #4b5563; display: flex; flex-direction: column; gap: 16px; max-width: 500px; }
.em-story__closer { font-weight: var(--fw-bold); color: var(--c-heading); }
.em-story__aside { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.em-story__mascot { width: 100%; max-width: 340px; height: auto; }
.em-story__cta { font-family: var(--font-body); font-weight: var(--fw-bold); }

/* ----- Trabaja contigo ----- */
.em-values { background: #fff; text-align: center; }
.em-values__title { font-family: var(--font-head); font-weight: var(--fw-extrabold); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.2; color: var(--c-heading); margin-bottom: 40px; }
.em-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin-inline: auto; }
.em-value { display: flex; gap: 16px; text-align: left; background: #f7fbf6; border: 1px solid #e6f2e2; border-radius: var(--r-lg); padding: 24px; }
.em-value__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-green); color: #fff; flex-shrink: 0; }
.em-value__icon .icon { width: 24px; height: 24px; }
.em-value h3 { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: 1.125rem; color: var(--c-green-dark); margin-bottom: 6px; }
.em-value p { font-family: var(--font-body); font-size: .875rem; line-height: 1.55; color: var(--c-text); }

/* ----- ¿Cómo puede ayudarte? ----- */
.em-help { background: linear-gradient(180deg, #eef4ff 0%, #f2faf6 100%); }
.em-help__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.em-help__head h2 { font-family: var(--font-head); font-weight: var(--fw-extrabold); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); color: var(--c-heading); margin: 8px 0; }
.em-help__head h2 .accent { color: var(--c-green); }
.em-help__head p { font-family: var(--font-alt); font-size: 1rem; line-height: 1.6; color: var(--c-text); }
.em-help__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1080px; margin-inline: auto; }
.em-help-card { background: #fff; border-radius: var(--r-lg); padding: 28px 24px; text-align: center; box-shadow: 0 8px 24px rgba(11,28,48,.06); }
.em-help-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; color: #fff; }
.em-help-card__icon .icon { width: 26px; height: 26px; }
.em-help-card__icon--green { background: var(--c-green); }
.em-help-card__icon--blue { background: var(--c-blue); }
.em-help-card__icon--purple { background: #a78bfa; }
.em-help-card h3 { font-family: var(--font-alt); font-weight: var(--fw-extrabold); font-size: 1.0625rem; line-height: 1.25; color: var(--c-heading); margin-bottom: 10px; }
.em-help-card p { font-family: var(--font-alt); font-size: .8125rem; line-height: 1.6; color: var(--c-text); }

/* ----- Así conversas con Emilia ----- */
.em-chat { background: #fff; }
.em-chat__head { text-align: center; margin-bottom: 36px; }
.em-chat__head h2 { font-family: var(--font-head); font-weight: var(--fw-extrabold); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); color: var(--c-heading); }
.em-chat__head h2 .accent { color: var(--c-green); }
.em-chat__head p { font-family: var(--font-alt); font-size: 1rem; color: var(--c-text); margin-top: 8px; }
.em-chat__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; max-width: 1100px; margin-inline: auto; }

.chat { display: flex; flex-direction: column; border: 1px solid #e6eef5; border-radius: var(--r-lg); overflow: hidden; }
.chat__log { padding: 24px; display: flex; flex-direction: column; gap: 16px; background: #fbfdff; }
.chat__msg { font-family: var(--font-body); font-size: .875rem; line-height: 1.5; }
.chat__msg--user { align-self: flex-end; max-width: 78%; background: #e7f6df; color: var(--c-text-strong); border-radius: 16px 16px 4px 16px; padding: 12px 16px; }
.chat__msg--bot { display: flex; gap: 12px; align-items: flex-start; max-width: 90%; }
.chat__msg--bot > div { background: #fff; border: 1px solid #e6eef5; border-radius: 4px 16px 16px 16px; padding: 14px 16px; color: var(--c-text-strong); }
.chat__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eef7ff; flex-shrink: 0; overflow: hidden; }
.chat__avatar img { width: 22px; height: 22px; }
.chat__steps { counter-reset: s; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; }
.chat__steps li { counter-increment: s; position: relative; padding-left: 30px; }
.chat__steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(85,192,54,.16); color: var(--c-green-dark); font-weight: var(--fw-bold); font-size: .6875rem; display: grid; place-items: center; }
.chat__time { display: block; margin-top: 6px; font-size: .6875rem; color: #94a3b8; }
.chat__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chat__action { display: flex; align-items: center; gap: 10px; border: 1px solid #e6eef5; border-radius: var(--r-md); padding: 10px 14px; background: #fff; }
.chat__action .icon { width: 18px; height: 18px; color: var(--c-green); }
.chat__action span { display: flex; flex-direction: column; font-family: var(--font-body); font-size: .6875rem; color: #64748b; line-height: 1.3; }
.chat__action strong { color: var(--c-heading); font-weight: var(--fw-bold); font-size: .8125rem; }
.chat__input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid #e6eef5; background: #fff; }
.chat__input input { flex: 1; border: 1px solid #e6eef5; border-radius: var(--r-pill); padding: 10px 16px; font-family: var(--font-body); font-size: .875rem; background: #f6f9fc; }
.chat__send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-green); color: #fff; border: 0; flex-shrink: 0; }
.chat__send .icon { width: 16px; height: 16px; }

.em-qa { border: 1px solid #e6eef5; border-radius: var(--r-lg); padding: 24px; align-self: start; }
.em-qa__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: var(--fw-bold); font-size: 1.0625rem; color: var(--c-heading); margin-bottom: 16px; }
.em-qa__badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-green); color: #fff; }
.em-qa__badge .icon { width: 15px; height: 15px; }
.em-qa ul { display: flex; flex-direction: column; gap: 10px; }
.em-qa li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e6eef5; border-radius: var(--r-md); padding: 14px 16px; font-family: var(--font-body); font-size: .875rem; color: var(--c-text-strong); }
.em-qa li a:hover { border-color: var(--c-green); color: var(--c-green-dark); }
.em-qa li .icon { width: 14px; height: 14px; transform: rotate(-90deg); color: #94a3b8; }
.em-qa__more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; background: #edfaf4; border: 1px solid #c6e8be; border-radius: var(--r-md); padding: 14px; font-family: var(--font-body); font-weight: var(--fw-bold); font-size: .875rem; color: var(--c-green-dark); }
.em-qa__more .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .em-hero__inner { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .em-hero__video { order: -1; max-width: 320px; }
  .em-story__inner { grid-template-columns: 1fr; gap: 32px; }
  .em-story__aside { order: -1; }
  .em-values__grid { grid-template-columns: 1fr; max-width: 480px; }
  .em-help__grid { grid-template-columns: repeat(2, 1fr); }
  .em-chat__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .em-help__grid { grid-template-columns: 1fr; }
  .em-trust { gap: 16px; }
  .chat__actions { flex-direction: column; }
  .chat__action { width: 100%; }
}
