/* Página pública del Programa de Embajadores (embajadores.html) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.amb { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.amb *, .amb *::before, .amb *::after { box-sizing: border-box; }
.amb-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.amb-narrow { max-width: 760px; }
.amb :where(a) { color: inherit; }

/* Barra superior */
.amb-top { position: sticky; top: 0; z-index: 10; background: rgba(6, 11, 24, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(120, 170, 255, 0.14); padding-top: var(--safe-top); }
.amb-top__in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.amb-brand { font-weight: 800; letter-spacing: 1.2px; font-size: 18px; color: #fff; text-decoration: none; }
.amb-brand span { color: #3E7DFF; }
.amb-top__link { color: #C9D6F1; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.amb-top__link:hover { color: #fff; }

/* Portada */
.amb-hero {
  color: #fff; padding: 64px 0 56px;
  background: radial-gradient(900px 520px at 85% -10%, rgba(31, 139, 255, 0.28), transparent 60%),
              radial-gradient(700px 480px at -10% 110%, rgba(10, 79, 214, 0.25), transparent 60%), #060B18;
}
.amb-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(79, 163, 255, 0.45); background: rgba(6, 11, 24, 0.55); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #DCE9FF; }
.amb-dot { width: 7px; height: 7px; border-radius: 50%; background: #1F8BFF; box-shadow: 0 0 0 3px rgba(31, 139, 255, 0.25); }
.amb-h1 { margin: 0 0 18px; font-size: clamp(32px, 6.4vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; max-width: 820px; }
.amb-pct { color: #5DB8FF; white-space: nowrap; }
.amb-lead { margin: 0 0 28px; max-width: 640px; font-size: clamp(16px, 2.2vw, 19px); color: #B8C7E3; }
.amb-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.amb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .12s ease, background-color .2s ease, border-color .2s ease; }
.amb-btn:active { transform: scale(.98); }
.amb-btn--primary { background: linear-gradient(135deg, #0A4FD6, #1F8BFF); color: #fff; box-shadow: 0 12px 30px -12px rgba(31, 139, 255, 0.7); }
.amb-btn--primary:hover { background: linear-gradient(135deg, #0A45BD, #1A7EEB); }
.amb-btn--primary:disabled { opacity: .6; cursor: wait; }
.amb-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.amb-btn--ghost:hover { border-color: #fff; }
.amb-btn--block { width: 100%; }
.amb-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.amb-stats li { border: 1px solid rgba(120, 170, 255, 0.18); border-radius: 16px; padding: 16px; background: rgba(12, 22, 48, 0.6); }
.amb-stats strong { display: block; font-size: 24px; line-height: 1.1; color: #fff; }
.amb-stats span { font-size: 13px; color: #93A6C8; }

/* Secciones */
.amb-sec { padding: 72px 0; }
.amb-sec--alt { background: var(--silver-50); }
.amb-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.amb-h2 { margin: 0 0 28px; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -0.015em; max-width: 720px; }
.amb-muted { color: var(--text-2); margin: -16px 0 22px; }
.amb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.amb-steps li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.amb-step__n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-50); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.amb-steps h3, .amb-card h3 { margin: 0 0 6px; font-size: 18px; }
.amb-steps p, .amb-card p { margin: 0; color: var(--text-2); }
.amb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.amb-card { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(2, 7, 13, 0.04); }
.amb-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #0A4FD6, #1F8BFF); color: #fff; font-weight: 800; margin-bottom: 14px; }
.amb-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: t; }
.amb-timeline li { position: relative; padding: 0 18px 0 0; }
.amb-timeline li::before { counter-increment: t; content: counter(t); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1; }
.amb-timeline li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 2px; background: var(--blue-100); }
.amb-timeline li:last-child::after { display: none; }
.amb-timeline strong { display: block; font-size: 17px; margin-bottom: 2px; }
.amb-timeline span { color: var(--text-2); }
.amb-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.amb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.amb-checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.amb-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-50); color: var(--ok-700); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.amb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.amb-chips span { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.amb-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.amb-faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; font-size: 16px; position: relative; }
.amb-faq summary::-webkit-details-marker { display: none; }
.amb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--accent); font-weight: 400; }
.amb-faq details[open] summary::after { content: "–"; }
.amb-faq p { margin: 0 0 16px; color: var(--text-2); }

/* Registro */
.amb-sec--form { background: radial-gradient(800px 400px at 50% 0%, rgba(31, 139, 255, 0.10), transparent 70%), var(--silver-50); }
.amb-formcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(2, 30, 90, 0.25); }
.amb-form { display: grid; gap: 14px; }
.amb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amb-field { display: block; margin: 0; }
.amb-field > span, .amb-fieldset legend { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.amb-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.amb-field input, .amb-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.amb-field textarea { min-height: 90px; resize: vertical; }
.amb-field input:focus, .amb-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.amb-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.amb-pick button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.amb-pick button[aria-pressed="true"] { background: var(--blue-50); border-color: var(--accent); color: var(--accent-hover); }
.amb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.amb-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.amb-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.amb-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bad-50); color: var(--bad-700); font-weight: 600; font-size: 14px; }
.amb-done { text-align: center; padding: 10px 0; }
.amb-done__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-50); color: var(--ok-700); font-size: 30px; font-weight: 800; }
.amb-done h2 { margin: 0 0 10px; font-size: 26px; }
.amb-done p { margin: 0 auto 10px; color: var(--text-2); max-width: 520px; }
.amb-done .amb-btn { margin-top: 14px; }

/* Pie */
.amb-foot { background: #060B18; color: #93A6C8; padding: 40px 0 calc(40px + var(--safe-bottom)); text-align: center; }
.amb-foot__in { display: grid; gap: 8px; justify-items: center; }
.amb-foot p { margin: 0; font-size: 13px; letter-spacing: .08em; }
.amb-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; letter-spacing: 0 !important; margin-top: 8px !important; }
.amb-foot__links a { color: #C9D6F1; text-decoration: none; font-weight: 600; font-size: 14px; }
.amb-foot__links a:hover { color: #fff; }

@media (max-width: 900px) {
  .amb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amb-two { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .amb-hero { padding: 44px 0 40px; }
  .amb-sec { padding: 52px 0; }
  .amb-stats { grid-template-columns: 1fr; }
  .amb-stats li { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; }
  .amb-stats strong { font-size: 20px; flex: none; }
  .amb-steps, .amb-grid, .amb-row { grid-template-columns: 1fr; }
  .amb-timeline { grid-template-columns: 1fr; gap: 18px; }
  .amb-timeline li { padding: 0 0 0 50px; min-height: 34px; }
  .amb-timeline li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .amb-timeline li::after { top: 34px; bottom: -18px; left: 16px; right: auto; width: 2px; height: auto; }
  .amb-formcard { padding: 22px 18px; }
  .amb-ctas .amb-btn { flex: 1 1 100%; }
  .amb-top__link { font-size: 13px; }
}
