/*
 * Karrera · página pública de afiliados
 * Réplica de docs/diseno/Karrera Afiliados.dc.html. Colores en config/design.php
 * ("affiliates" → --a-*). Usa panel.css para ventanas, idioma y avisos.
 */

.a-body { background: var(--a-bg); color: var(--a-ink); font-family: var(--font-sans); }
.a-app { display: block; }
.a-body input::placeholder, .a-body textarea::placeholder { color: #8C88AA; }

/* Encabezado */
.a-head { position: sticky; top: 0; z-index: 30; background: var(--a-head-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--a-panel-bd); }
.a-head-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.a-menu-btn { width: 44px; height: 44px; margin-left: -8px; color: var(--a-ink); }
.a-logo { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; color: var(--a-ink); }
.a-logo:hover { color: var(--a-ink); }
.a-logo img { width: 32px; height: 32px; object-fit: contain; }
.a-logo span { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.a-nav { flex: 1; justify-content: center; gap: 6px; }
.a-nav a { height: 40px; padding: 0 14px; border-radius: 10px; color: var(--a-ink2); font-size: 14.5px; font-weight: 600; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.a-nav a:hover { background: var(--a-hover); color: var(--a-ink); }
.a-lang-btn { height: 42px; padding: 0 10px; border: 1.5px solid var(--a-panel-bd); border-radius: 12px; background: transparent; color: var(--a-ink); display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 700; }
.a-lang-btn:hover { background: var(--a-hover); }
.a-login { height: 42px; padding: 0 20px; border-radius: 99px; border: 1.5px solid #9B72FF; color: var(--a-ink); font-size: 14px; font-weight: 700; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.a-login:hover { background: var(--a-hover); color: var(--a-ink); }
.a-mnav { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 12px; animation: kIn .18s both; }
.a-mnav a { height: 48px; border-radius: 12px; color: var(--a-ink); padding: 0 12px; font-size: 15.5px; font-weight: 600; text-decoration: none; display: flex; align-items: center; }
.a-mnav a.is-brand { color: #7545F5; font-weight: 700; }

/* Portada */
.a-hero { position: relative; overflow: hidden; background: var(--a-hero-bg); }
.a-glow { position: absolute; right: -8%; top: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--a-glow); }
.a-hero-in { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px 8px; align-items: center; padding: 18px 16px 22px; }
.a-hero-text { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.a-hero h1 { margin: 0; font-size: 31px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.a-hero h1 span { color: #7545F5; }
.a-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--a-ink2); max-width: 520px; text-wrap: pretty; }
.a-lead-n { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--a-ink2); text-wrap: pretty; align-self: center; }
.a-fox { position: relative; justify-self: center; width: 128px; height: 160px; grid-column: 2; grid-row: 2; }
.a-fox-float { position: absolute; inset: 0; animation: kFloat 5s ease-in-out infinite; }
.a-fox img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(30, 15, 80, .28)); }
.a-chip { position: absolute; right: -28px; bottom: 26%; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; background: var(--a-panel); border: 1px solid var(--a-panel-bd); box-shadow: var(--a-shadow); font-size: 12.5px; font-weight: 700; line-height: 1.3; max-width: 170px; }
.a-chip span { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #FFE7A8; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #9A6200; }
.a-ctas { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.a-ctas-row { display: flex; gap: 10px; flex-wrap: wrap; }
.a-cta, .a-cta2 { flex: 1 1 0; height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 15.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; font-family: inherit; }
.a-cta { border: 0; background: linear-gradient(180deg, #8456FF, #6A3CF0); color: #fff; box-shadow: 0 12px 26px -10px rgba(117, 69, 245, .75); }
.a-cta:hover { color: #fff; }
.a-cta2 { border: 1.5px solid #9B72FF; background: var(--a-panel); color: var(--a-ink); font-weight: 700; }
.a-cta2:hover { color: var(--a-ink); }
.a-cta:active, .a-cta2:active { transform: scale(.97); }
.a-below { align-self: flex-start; padding: 4px 0; color: var(--a-ink2); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.a-below:hover { color: #7545F5; }

/* Secciones */
.a-body-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px 36px; display: flex; flex-direction: column; gap: 36px; }
.a-sec { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 80px; }
.a-sec-h { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.a-sec-h h2, .a-faq h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.a-sec-h p { margin: 0; font-size: 15px; color: var(--a-ink2); text-wrap: balance; }
.a-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.a-steps li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--a-panel); border: 1px solid var(--a-panel-bd); box-shadow: var(--a-shadow); }
.a-step-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: linear-gradient(180deg, #8456FF, #6A3CF0); color: #fff; display: flex; align-items: center; justify-content: center; }
.a-steps li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.a-step-n { font-size: 12px; font-weight: 800; color: #7545F5; }
.a-steps b { font-size: 16px; }
.a-steps li > div > span:last-child { font-size: 14px; line-height: 1.5; color: var(--a-ink2); }
.a-bens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-ben { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--a-panel); border: 1px solid var(--a-panel-bd); }
.a-ben-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.a-ben b { font-size: 16px; }
.a-ben > span:last-child { font-size: 13.5px; line-height: 1.5; color: var(--a-ink2); }

/* Condiciones y solicitud */
.a-bottom { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; scroll-margin-top: 80px; }
.a-cond-col { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; min-width: 0; }
.a-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--a-panel); border: 1px solid var(--a-panel-bd); box-shadow: var(--a-shadow); min-width: 0; }
.a-cond h2, .a-form-h h2 { margin: 0; font-size: 19px; font-weight: 800; }
.a-cond ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.45; }
.a-cond li { display: flex; gap: 10px; align-items: flex-start; }
.a-cond li > span { width: 26px; height: 26px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.a-chip-btn { align-self: flex-start; height: 42px; padding: 0 14px; border: 1.5px solid var(--a-chip-bd); border-radius: 12px; background: var(--a-chip-bg); color: var(--a-chip-fg); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; font-family: inherit; }
.a-chip-btn:hover { color: var(--a-chip-fg); background: var(--a-hover); }
.a-band { display: flex; align-items: center; gap: 14px; padding: 14px 18px 0; border-radius: 20px; background: var(--a-band-bg); overflow: hidden; }
.a-band img { width: 96px; height: auto; flex: none; align-self: flex-end; margin-bottom: -4px; }
.a-band p { margin: 0 0 14px; font-size: 15px; font-weight: 700; line-height: 1.45; text-wrap: balance; }
.a-form-h { display: flex; flex-direction: column; gap: 4px; }
.a-form-h span { font-size: 13.5px; color: var(--a-ink2); }
.a-form { overflow-anchor: none; display: flex; flex-direction: column; gap: 14px; }
.a-form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.a-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-f label { font-size: 13.5px; font-weight: 700; }
.a-f input, .a-f select { height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--a-input-bd); background: var(--a-input-bg); color: var(--a-ink); font-size: 16px; outline: none; min-width: 0; width: 100%; }
.a-f select { padding: 0 12px; cursor: pointer; overflow-anchor: none; }
.a-f select:disabled { cursor: not-allowed; color: var(--a-ink3, #8C88AA); opacity: .85; }
.a-f select option { color: var(--a-ink); background: var(--a-panel); }
.a-f textarea { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--a-input-bd); background: var(--a-input-bg); color: var(--a-ink); font-size: 16px; line-height: 1.45; outline: none; resize: vertical; min-height: 92px; width: 100%; }
.a-f [aria-invalid="true"] { border-color: var(--a-err-fg); }
.a-err { font-size: 13px; font-weight: 600; color: var(--a-err-fg); }
.a-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.a-terms input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: #7545F5; cursor: pointer; }
.a-link { border: 0; background: none; padding: 0; color: #7545F5; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.a-submit { height: 54px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #8456FF, #6A3CF0); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; font-family: inherit; box-shadow: 0 12px 26px -10px rgba(117, 69, 245, .7); }
.a-submit:active { transform: scale(.98); }
.a-priv { font-size: 12.5px; line-height: 1.5; color: var(--a-ink3); text-align: center; }
.a-ok { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: var(--a-ok-bg); border: 1px solid var(--a-ok-bd); animation: kIn .25s both; }
.a-ok b { font-size: 17px; color: var(--a-ok-fg); }
.a-ok span { font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
/* Solicitud enviada: ir al correo, reenviar el enlace y el aviso de spam o buzón lleno. */
.a-ok-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.a-ok .a-ok-mail { min-height: 46px; }
.a-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.a-resend span { font-size: 14px; }
.a-link-btn { padding: 4px 2px; border: 0; background: none; color: var(--a-chip-fg); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.a-link-btn:disabled { color: var(--a-ink2); text-decoration: none; cursor: default; }
.a-ok-tip { font-size: 13px; color: var(--a-ink2); }
.a-registered { margin: 0; font-size: 14px; color: var(--a-ink2); }
.a-registered a { color: var(--a-chip-fg); font-weight: 800; }

/* Preguntas */
.a-faq { max-width: 820px; width: 100%; margin: 0 auto; gap: 14px; }
.a-faq-list { display: flex; flex-direction: column; gap: 8px; }
.a-faq-item { border-radius: 16px; background: var(--a-panel); border: 1px solid var(--a-panel-bd); }
.a-faq-item summary { min-height: 56px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.a-faq-item summary::-webkit-details-marker { display: none; }
.a-faq-item summary span { flex: 1; }
.a-faq-item summary svg { flex: none; transition: transform .2s; }
.a-faq-item[open] summary svg { transform: rotate(180deg); }
.a-faq-item p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; line-height: 1.55; color: var(--a-ink2); }

/* Pie */
.a-foot { border-top: 1px solid var(--a-panel-bd); background: var(--a-panel); }
.a-foot-in { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 16px 14px; }
.a-foot-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--a-ink); }
.a-foot-logo:hover { color: var(--a-ink); }
.a-foot-logo img { width: 30px; height: 30px; object-fit: contain; }
.a-foot-logo b { font-size: 19px; letter-spacing: -.02em; }
.a-foot nav { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.a-foot nav a, .a-foot nav button { height: 40px; border: 0; background: none; color: var(--a-ink2); font-size: 13.5px; cursor: pointer; padding: 0 4px; text-decoration: none; display: inline-flex; align-items: center; font-family: inherit; }
.a-foot nav a:hover, .a-foot nav button:hover { color: #7545F5; }
.a-theme { border-radius: 99px; height: 40px; font-size: 13px; white-space: nowrap; }
.a-copy { max-width: 1180px; margin: 0 auto; padding: 0 24px calc(18px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--a-ink3); }

/* Ventanas */
.a-join { width: min(640px, calc(100% - 24px)); }
.a-join-h { flex: none; display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px 8px 24px; }
.a-join-h div { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center; padding-left: 40px; }
.a-join-h h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.a-join-h span { font-size: 13.5px; color: var(--a-ink2); }
.a-modal-part { display: flex; flex-direction: column; gap: 4px; }
.a-modal-part b { font-size: 15px; }
.a-modal-part p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--a-ink2); }
.a-modal-part ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.5; color: var(--a-ink2); }

@media (min-width: 520px) {
    .a-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a-span { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .a-head-in { padding: 14px 28px; }
    .a-logo { flex: none; justify-content: flex-start; }
    .a-logo img { width: 36px; height: 36px; }
    .a-logo span { font-size: 22px; }
    .a-mnav { display: none !important; }
    .a-hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 8px 40px; padding: 36px 28px 44px; }
    .a-hero-text { grid-column: 1; gap: 16px; }
    .a-hero h1 { font-size: 48px; }
    .a-fox { width: 310px; height: 388px; grid-column: 2; grid-row: 1 / span 2; }
    .a-fox img { filter: drop-shadow(0 18px 22px rgba(30, 15, 80, .28)); }
    .a-ctas { grid-column: 1; }
    .a-cta, .a-cta2 { flex: 0 0 auto; }
    .a-body-in { padding: 48px 28px 56px; gap: 56px; }
    .a-sec-h h2, .a-faq h2 { font-size: 30px; }
    .a-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .a-bens { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .a-bottom { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .a-band img { width: 120px; }
    .a-foot-in { flex-direction: row; align-items: center; padding: 22px 24px 14px; }
    .a-foot nav { justify-content: center; }
    .a-copy { text-align: center; }
}

@media (min-width: 1200px) {
    .a-hero-in { padding: 48px 28px 56px; }
    .a-hero h1 { font-size: 58px; }
    .a-fox { width: 360px; height: 450px; }
}
