/* AppSoft Aliados — todo bajo .asa para no chocar con el tema */
.asa {
  --asa-red: #8C0404;
  --asa-red-dark: #5E0202;
  --asa-red-tint: #F7E9E9;
  --asa-green: #2FC414;
  --asa-text: #FFFFFF;          /* texto sobre el fondo de la sección */
  --asa-muted: #B8B8B8;
  --asa-line: #3A3A3A;
  --asa-card: #FFFFFF;
  --asa-ink: #1A1A1A;
  --asa-ink-2: #555555;
  font-family: inherit;
  box-sizing: border-box;
  color: var(--asa-text);
}
.asa--claro {
  --asa-text: #1A1A1A;
  --asa-muted: #555555;
  --asa-line: #D6D6D6;
  --asa-green: #0E7A00;
}
.asa *, .asa *::before, .asa *::after { box-sizing: border-box; }
.asa h2, .asa h3, .asa p, .asa ul, .asa ol { margin: 0; padding: 0; }
.asa h2, .asa h3 { text-transform: none !important; letter-spacing: normal !important; font-family: inherit !important; }
.asa ul, .asa ol { list-style: none; }
.asa .asa-ico { flex-shrink: 0; }

/* Encabezado */
.asa-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.asa-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.asa-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--asa-green); }
.asa .asa-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 900; color: var(--asa-text) !important; }
.asa .asa-lead { font-size: 18px; line-height: 1.6; color: var(--asa-muted); }

/* Botones */
.asa .asa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 5px; font-weight: 800; font-size: 14px; line-height: 1; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.asa .asa-btn--solid { background: var(--asa-red); color: #FFF !important; }
.asa .asa-btn--solid:hover { background: var(--asa-red-dark); }
.asa .asa-btn--outline { border-color: var(--asa-red); color: var(--asa-red) !important; background: transparent; }
.asa .asa-btn--outline:hover { background: var(--asa-red-tint); }
.asa .asa-btn--ghost { border-color: var(--asa-text); color: var(--asa-text) !important; min-height: 48px; font-size: 15px; }
.asa .asa-btn--white { background: #FFF; color: var(--asa-red) !important; min-height: 48px; font-size: 15px; font-weight: 900; }
.asa .asa-btn--line { border-color: #FFF; color: #FFF !important; min-height: 48px; font-size: 15px; }
.asa .asa-btn--lg { min-height: 52px; font-size: 16px; font-weight: 900; width: 100%; border: 0; font-family: inherit; }

/* Filtros */
.asa-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.asa .asa-chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--asa-line); background: transparent; color: var(--asa-text); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.asa .asa-chip:hover { border-color: var(--asa-red); }
.asa .asa-chip[aria-pressed="true"] { background: var(--asa-red); border-color: var(--asa-red); color: #FFF; font-weight: 800; }
.asa .asa-chip:focus-visible, .asa .asa-btn:focus-visible { outline: 3px solid var(--asa-green); outline-offset: 2px; }

/* Grid y tarjeta */
.asa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.asa-card { background: var(--asa-card); color: var(--asa-ink); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.asa-card[hidden] { display: none !important; }
.asa-card__head { display: flex; align-items: center; gap: 16px; }
.asa-card__id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.asa .asa-card__name { font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--asa-ink) !important; }
.asa-card__role { font-size: 14px; color: var(--asa-ink-2); }
.asa-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.asa-place { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--asa-ink-2); }
.asa-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B6B6B; margin-bottom: 8px; }
.asa-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.asa-tags li { font-size: 13px; font-weight: 700; color: var(--asa-red); background: var(--asa-red-tint); padding: 5px 10px; border-radius: 999px; margin: 0; }
.asa-tags--lg li { font-size: 14px; padding: 7px 14px; }
.asa .asa-card__cred { font-size: 13px; color: var(--asa-ink-2); border-top: 1px solid #ECECEC; padding-top: 14px; }
.asa-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.asa-card .asa-card__actions .asa-btn { flex: 1 1 120px; }

/* Avatar */
.asa-avatar { width: 64px; height: 64px; border-radius: 50%; background: #EFEFEF; color: #555; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.asa-avatar--logo { width: 96px; border-radius: 8px; background: #F4F4F4; border: 1px solid #E4E4E4; padding: 4px; }
.asa-avatar--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asa-avatar--lg { width: 120px; height: 120px; font-size: 34px; }
.asa-avatar--lg.asa-avatar--logo { width: 180px; }

/* Insignias */
.asa-badge { font-size: 12px; font-weight: 800; color: #4A4A4A; background: #EFEFEF; padding: 5px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.asa-badge--cert { color: #0E6B00; background: #E3F5DF; }

.asa-empty { color: var(--asa-muted); }
.asa-more { text-align: center; margin-top: 32px !important; }
.asa-more a { color: var(--asa-text) !important; font-weight: 700; }

/* CTA */
.asa-cta { background: var(--asa-red); border-radius: 14px; padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; color: #FFF; }
.asa-cta__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.asa .asa-cta__title { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 900; color: #FFF !important; }
.asa .asa-cta__lead { font-size: 17px; line-height: 1.6; color: #F3DADA; }
.asa-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.asa-benefits { flex: 1 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.asa-benefit { background: rgba(0,0,0,.22); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.asa-benefit strong { font-size: 16px; color: #FFF; }
.asa-benefit span { font-size: 14px; color: #F3DADA; }
@media (max-width: 480px) { .asa-benefits { grid-template-columns: 1fr; } }

/* Registro */
.asa-reg { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.asa-reg__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.asa-tiers { display: flex; flex-direction: column; gap: 14px; margin-top: 12px !important; }
.asa-tier { display: flex; gap: 18px; padding: 22px; border-radius: 10px; background: rgba(127,127,127,.1); border: 1px solid var(--asa-line); margin: 0; }
.asa-tier--top { border: 2px solid var(--asa-red); }
.asa-tier__n { width: 44px; height: 44px; border-radius: 50%; background: #2A2A2A; color: #FFF; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.asa-tier--top .asa-tier__n { background: var(--asa-red); }
.asa-tier strong { font-size: 18px; color: var(--asa-text); }
.asa .asa-tier p { font-size: 15px; line-height: 1.5; color: var(--asa-muted); margin-top: 6px; }

.asa-form { flex: 1 1 440px; min-width: 0; background: var(--asa-card); color: var(--asa-ink); border-radius: 14px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.asa .asa-form__title { font-size: 26px; font-weight: 900; color: var(--asa-ink) !important; }
.asa .asa-form__lead { font-size: 15px; color: var(--asa-ink-2); }
.asa-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.asa-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--asa-ink); }
.asa-form input[type=text], .asa-form input[type=tel], .asa-form input[type=email], .asa-form select, .asa-form textarea {
  min-height: 46px; padding: 10px 14px; border: 1.5px solid #CFCFCF; border-radius: 6px; font: 400 15px/1.4 inherit; font-family: inherit; color: var(--asa-ink); background: #FFF; width: 100%; box-shadow: none;
}
.asa-form input:focus, .asa-form select:focus, .asa-form textarea:focus { border-color: var(--asa-red); outline: 2px solid var(--asa-red-tint); }
.asa-form__set { border: 0; margin: 0; padding: 0; }
.asa-form__set legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.asa-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
.asa-form .asa-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; }
.asa-form .asa-check input { width: 18px; height: 18px; accent-color: var(--asa-red); margin: 0; flex-shrink: 0; }
.asa-form .asa-check--terms { align-items: flex-start; color: var(--asa-ink-2); line-height: 1.5; }
.asa-form .asa-check--terms input { margin-top: 2px; }
.asa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.asa-alert { padding: 12px 16px; border-radius: 6px; font-size: 15px; font-weight: 700; }
.asa-alert--ok { background: #E3F5DF; color: #0E5A00; }
.asa-alert--err { background: var(--asa-red-tint); color: var(--asa-red); }

/* Perfil */
.asa-profile { --asa-text: #1A1A1A; --asa-muted: #555; background: var(--asa-card); color: var(--asa-ink); border-radius: 14px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.asa-profile__card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.asa-profile__id { display: flex; flex-direction: column; gap: 10px; }
.asa-profile__bio { font-size: 16px; line-height: 1.7; color: #333; }
.asa-profile__bio p + p { margin-top: 1em; }
.asa-profile .asa-card__actions .asa-btn { flex: 0 1 auto; }
