/* ============================================================
   Presentación LATAM · FUNDESMO — estilos del evento
   Usa los tokens de assets/tokens.css. Sin menú/drawer.
   ============================================================ */

body { background: var(--color-bg-alt); color: var(--color-fg); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--color-bg); }
.section--deep { background: var(--color-primary-deep); color: var(--color-fg-on-dark); }
.section__eyebrow { text-align: center; }
.section__title { text-align: center; max-width: 22ch; margin-inline: auto; }
.section--deep .section__title { color: #fff; }

/* ---------- Header (solo logo, sin nav) ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-block: var(--space-5);
}
.site-header .wrap { display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand .fundesmo-logo-img { height: 46px; }
.brand__tag {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-xs); letter-spacing: var(--ls-uppercase);
  text-transform: uppercase; color: rgba(255,255,255,.72);
  padding-left: var(--space-3); border-left: 1px solid rgba(255,255,255,.24);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(201,168,76,.18), transparent 55%),
    linear-gradient(160deg, var(--color-primary-deep) 0%, var(--color-primary-dark) 60%, var(--color-primary) 100%);
  color: var(--color-fg-on-dark);
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5), transparent);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero .eyebrow { color: var(--color-accent-light); }
.hero__title {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.25rem); line-height: 1.08;
  letter-spacing: var(--ls-tight); color: #fff; margin: 0 0 var(--space-5);
  text-wrap: balance;
}
.hero__title .accent { color: var(--color-accent-light); }
.hero__lead {
  font-family: var(--font-body); font-size: clamp(1rem, .96rem + .4vw, 1.15rem);
  line-height: var(--lh-relaxed); color: rgba(233,240,245,.9);
  max-width: 56ch; margin: 0 0 var(--space-6);
}
.hero__lead strong { color: #fff; font-weight: var(--fw-semibold); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-secondary); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }

/* Countdown */
.countdown { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); }
.cd-unit {
  min-width: 62px; text-align: center; background: rgba(7,34,58,.5);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: 10px 6px 8px;
}
.cd-unit b {
  display: block; font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-2xl); line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.cd-unit span {
  font-family: var(--font-secondary); font-size: 10px; letter-spacing: var(--ls-uppercase);
  text-transform: uppercase; color: rgba(233,240,245,.65);
}

/* ---------- Tarjeta de formulario ---------- */
.rescard {
  background: #fff; color: var(--color-fg); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero); border-top: 5px solid var(--color-accent);
  padding: clamp(22px, 3vw, 30px);
}
.rescard__title { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.rescard__sub { color: var(--color-fg-muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.field { margin-bottom: var(--space-4); }
.field label {
  display: block; font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); margin-bottom: 6px; color: var(--color-primary-dark);
}
.field .req { color: var(--color-accent); }
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-base); color: var(--color-fg);
  padding: 12px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg);
  background: #fff; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(42,112,153,.18);
}
.field .help { font-size: var(--fs-xs); color: var(--color-fg-subtle); margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: var(--color-danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin: var(--space-4) 0; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--color-primary); flex: none; }
.consent label { font-family: var(--font-secondary); font-size: var(--fs-sm); color: var(--color-fg-muted); line-height: 1.5; }
.consent a { color: var(--color-primary); text-decoration: underline; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-base);
  border: none; border-radius: var(--radius-lg); padding: 15px 24px; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn--gold { background: var(--color-accent); color: var(--color-primary-deep); box-shadow: 0 8px 20px rgba(201,168,76,.32); }
.btn--gold:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,168,76,.42); text-decoration: none; }
.btn--gold:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 28px; font-size: var(--fs-md); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(7,34,58,.35); border-top-color: var(--color-primary-deep); border-radius: 50%; animation: spin .7s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.microcopy { text-align: center; font-size: var(--fs-xs); color: var(--color-fg-subtle); margin-top: var(--space-3); }
.form-error { display: none; background: #fdecec; color: var(--color-danger); border: 1px solid #f3c7c7; border-radius: var(--radius-md); padding: 10px 12px; font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.form-error.show { display: block; }

/* ---------- Tabla de horarios ---------- */
.horarios { margin-top: var(--space-6); }
.horarios__cap { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-xs); letter-spacing: var(--ls-uppercase); text-transform: uppercase; color: var(--color-accent-light); margin-bottom: var(--space-3); }
.horarios table { width: 100%; border-collapse: collapse; font-family: var(--font-secondary); font-size: var(--fs-sm); }
.horarios td { padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(233,240,245,.9); }
.horarios td:last-child { text-align: right; font-family: var(--font-display); font-weight: var(--fw-bold); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.horarios tr:last-child td { border-bottom: none; }

/* ---------- Autoridad / personas ---------- */
.people { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-10); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { text-align: center; }
.person__photo {
  width: 128px; height: 128px; margin: 0 auto var(--space-4); border-radius: 50%;
  background: var(--color-primary-soft); border: 3px solid var(--color-accent);
  display: grid; place-items: center; overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo .ph { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-3xl); color: var(--color-primary); }
.person__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-lg); color: var(--color-primary-dark); margin: 0 0 4px; }
.person__role { font-family: var(--font-secondary); font-size: var(--fs-sm); color: var(--color-fg-muted); margin: 0; }
.authority__lead { max-width: 62ch; margin: var(--space-4) auto 0; text-align: center; color: var(--color-fg-muted); }
.premio { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-5); font-family: var(--font-secondary); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-dark); background: var(--color-primary-soft); border-radius: var(--radius-pill); padding: 8px 16px; }

/* ---------- Qué vas a ver ---------- */
.ver { display: grid; gap: var(--space-5); max-width: var(--container-narrow); margin: var(--space-10) auto 0; }
.ver-item { display: grid; grid-template-columns: 52px 1fr; gap: var(--space-5); align-items: start; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: var(--space-6); }
.ver-item__num { font-family: var(--font-display); font-weight: var(--fw-extrabold); font-size: var(--fs-3xl); line-height: 1; color: var(--color-accent); }
.ver-item h3 { color: #fff; margin: 0 0 6px; font-size: var(--fs-lg); }
.ver-item p { color: rgba(233,240,245,.82); margin: 0; font-size: var(--fs-base); }

/* ---------- Para quién ---------- */
.forwho { display: grid; grid-template-columns: 1fr; gap: var(--space-6); max-width: var(--container-narrow); margin: var(--space-10) auto 0; }
@media (min-width: 760px) { .forwho { grid-template-columns: 1fr 1fr; } }
.forwho__col { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.forwho__col--no { background: var(--color-bg-alt); }
.forwho__col h3 { font-size: var(--fs-lg); margin-bottom: var(--space-5); }
.forwho__col--si h3 { color: var(--color-success); }
.forwho__col--no h3 { color: var(--color-fg-muted); }
.forwho ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.forwho li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.5; color: var(--color-fg); }
.forwho li::before { font-family: var(--font-display); font-weight: var(--fw-bold); }
.forwho__col--si li::before { content: "✓"; color: var(--color-success); }
.forwho__col--no li::before { content: "✕"; color: var(--color-danger); }

/* ---------- Prueba social ---------- */
.testimonios { display: grid; gap: var(--space-6); max-width: var(--container-narrow); margin: var(--space-10) auto 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .testimonios { grid-template-columns: 1fr 1fr; } }
.testi { background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.testi__quote { font-family: var(--font-body); font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--color-fg); margin: 0 0 var(--space-5); }
.testi__who { display: flex; align-items: center; gap: 12px; }
.testi__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary-soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--color-primary); overflow: hidden; flex: none; }
.testi__name { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--color-primary-dark); font-size: var(--fs-sm); }
.testi__meta { font-family: var(--font-secondary); font-size: var(--fs-xs); color: var(--color-fg-subtle); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--container-narrow); margin: var(--space-10) auto 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-md);
  color: var(--color-primary-dark); padding: var(--space-5) 0;
}
.faq-item__btn::after { content: "+"; font-weight: var(--fw-bold); font-size: var(--fs-xl); color: var(--color-accent); transition: transform var(--dur-base) var(--ease-out); }
.faq-item.is-open .faq-item__btn::after { transform: rotate(45deg); }
.faq-item__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-item__panel p { color: var(--color-fg-muted); padding-bottom: var(--space-5); margin: 0; }

/* ---------- Cierre ---------- */
.cierre { text-align: center; max-width: 62ch; margin-inline: auto; }
.cierre__lead { color: rgba(233,240,245,.9); font-size: var(--fs-md); margin-bottom: var(--space-8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-deep); color: rgba(255,255,255,.7); padding-block: var(--space-10); text-align: center; }
.site-footer .brand__tag { border: none; padding: 0; display: block; margin-top: var(--space-3); }
.site-footer nav { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
.site-footer a { color: rgba(255,255,255,.72); font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; }
.site-footer small { display: block; margin-top: var(--space-4); color: rgba(255,255,255,.45); }

/* ---------- Reveal ----------
   Se oculta SOLO si hay JavaScript (la clase .js la pone un script en el
   <head>). Sin JS —o si site.js falla— el contenido se ve igualmente:
   nunca debe quedar una sección invisible por una animación. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn--gold:hover { transform: none; }
}

/* ---------- Ancla móvil al formulario ---------- */
.jump-form { display: none; }
@media (max-width: 939px) {
  .jump-form { display: inline-flex; margin-top: var(--space-2); }
}


/* ============================================================
   WhatsApp: botón flotante + popover con QR al pasar el ratón
   (mismo componente que el resto de fundesmo.com)
   ============================================================ */
.floating-wa { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); z-index: 60; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), opacity 600ms var(--ease-out); opacity: 0; transform: translateY(20px); pointer-events: none; }
.floating-wa.is-ready { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-wa:hover { transform: translateY(0) scale(1.1); box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5); }
.floating-wa svg { width: 28px; height: 28px; }
@media (max-width: 768px) {
  .floating-wa { opacity: 1; transform: translateY(0); pointer-events: auto; right: 16px; bottom: 16px; }
}
/* ============================================================
   WhatsApp QR popover (hover on any WA link/icon)
   ============================================================ */
.wa-qr-popover { position: fixed; pointer-events: none; opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1); z-index: 9998; background: #fff; border-radius: var(--radius-lg); border-top: 3px solid #25D366; box-shadow: 0 12px 36px rgba(7, 34, 58, 0.22), 0 2px 8px rgba(0,0,0,0.06); padding: 18px 18px 16px; width: 224px; }
.wa-qr-popover.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-qr-popover::before { content: ""; position: absolute; right: 22px; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); box-shadow: 4px 4px 8px rgba(7, 34, 58, 0.08); }
.wa-qr-popover.is-top::before { bottom: auto; top: -8px; box-shadow: -4px -4px 8px rgba(7, 34, 58, 0.08); }
.wa-qr__header { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.wa-qr__header svg { width: 18px; height: 18px; color: #25D366; flex: 0 0 auto; }
.wa-qr__header strong { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #075E54; }
.wa-qr__code { position: relative; width: 188px; height: 188px; margin: 0 auto 12px; background: #fff; border: 2px solid #25D366; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.wa-qr__code:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35); }
.wa-qr__code img { width: 100%; height: 100%; display: block; border-radius: 4px; }
.wa-qr__code::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 8px; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(0,0,0,0.15); }
.wa-qr__code::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 22px; height: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; }
.wa-qr__scan { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 13.5px; color: #075E54; text-align: center; margin: 0 0 3px; line-height: 1.35; }
.wa-qr__hint { font-family: var(--font-body); font-size: 11.5px; color: #25D366; font-weight: 600; text-align: center; margin: 0; line-height: 1.4; }
@media (max-width: 768px) { .wa-qr-popover { display: none; } }
/* ============================================================
   Floating WhatsApp — green + halo pulse (iteración 2)
   ============================================================ */
.floating-wa { background: #25D366; }
.floating-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--color-accent); opacity: 0; pointer-events: none; animation: waHalo 5s var(--ease-out) infinite; }
@keyframes waHalo {
  0%, 70% { transform: scale(1); opacity: 0; }
  75% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.floating-wa:hover { background: #25D366; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25); }
