/* ==========================================================================
   MÓDULO DE EMBAJADORES & PROGRAMA DE AFILIADOS · SIAMAQ INGENIERÍA S.A.S.
   SECCIÓN 1: VISTA PÚBLICA EDITORIAL B2B (/embajadores) · HOMOLOGADA CON INDEX
   ========================================================================== */

.ambassadors-page {
    --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
    font-family: var(--font-sans);
    background: #ffffff;
    color: #0b1118;
    overflow-x: hidden;
}

.ambassadors-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   1.1. HERO EDITORIAL ARQUITECTÓNICO (#0b1118 + BARRA LATERAL #cd4e00)
   -------------------------------------------------------------------------- */
.ambassadors-hero {
    position: relative;
    padding: 64px 0 72px;
    background-color: #0b1118;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    border-bottom: 1px solid #1e293b;
    color: #f8fafc;
}

.amb-pub-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.amb-pub-hero-copy {
    border-left: 3px solid #cd4e00;
    padding-left: 24px;
}

.amb-kicker-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fdba74;
    margin-bottom: 16px;
}

.amb-kicker-rule {
    width: 28px;
    height: 1px;
    background: #cd4e00;
    flex-shrink: 0;
}

.ambassadors-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.9vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 18px;
}

.ambassadors-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 28px;
    max-width: 60ch;
}

.ambassadors-subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

/* Botones corporativos homologados con .hero-btn-* del inicio */
.ambassadors-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.amb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #c2410c;
    color: #ffffff !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 13px 22px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 1px solid #cd4e00;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.amb-btn-primary:hover {
    background: #a83e00;
    border-color: #a83e00;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.amb-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(11, 17, 24, 0.55);
    color: #f8fafc !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.34);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.amb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
}

.amb-btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #0b1118 !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.amb-btn-outline-dark:hover {
    border-color: #0b1118;
    background: #f8fafc;
    color: #0b1118 !important;
}

.amb-link-anchor {
    color: #94a3b8 !important;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 8px 10px;
    transition: color 0.16s ease;
}

.amb-link-anchor:hover {
    color: #ffffff !important;
}

/* Barra de especificaciones en el Hero (homologada con .hero-spec-bar) */
.amb-hero-spec-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.amb-hero-spec-bar dt {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.amb-hero-spec-bar dd {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
}

/* Placa Técnica Derecha de Activación de Código (homologada con .hero-plate) */
.amb-code-plate {
    background: #121b26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 2px solid #cd4e00;
    border-radius: 6px;
    overflow: hidden;
}

.amb-plate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.amb-plate-code {
    color: #fdba74;
    font-weight: 600;
}

.amb-plate-body {
    padding: 24px 22px;
}

.amb-plate-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0 0 8px;
}

.amb-plate-desc {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.58;
    color: #cbd5e1;
    margin: 0 0 18px;
}

.amb-activator-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amb-activator-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amb-activator-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
}

.amb-activator-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #0b1118;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    outline: none;
    transition: border-color 0.18s ease;
}

.amb-activator-input::placeholder {
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: normal;
    color: #64748b;
}

.amb-activator-input:focus {
    border-color: #cd4e00;
}

.amb-activator-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    border: 1px solid #cd4e00;
    background: #c2410c;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.amb-activator-btn:hover {
    background: #a83e00;
    border-color: #a83e00;
}

.amb-plate-quick {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amb-plate-quick-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #94a3b8;
}

.amb-plate-quick-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.amb-quick-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0b1118;
    color: #fdba74;
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.amb-quick-chip:hover {
    border-color: #cd4e00;
    color: #ffffff;
}

.amb-plate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px;
    background: #0e1620;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.amb-plate-foot-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.amb-plate-footer strong {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.amb-plate-foot-link {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #fdba74 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.amb-plate-foot-link:hover {
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   1.2. FRANJA RETICULAR DE CREDENCIALES (HOMOLOGADA CON .home-ledger-strip)
   -------------------------------------------------------------------------- */
.amb-ledger-strip {
    background: #eaedf1;
    border-bottom: 1px solid #d3dae3;
}

.amb-ledger-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #d3dae3;
    padding: 0;
    border-inline: 1px solid #d3dae3;
}

.amb-ledger-cell {
    background: #f5f6f8;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amb-ledger-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #b74400;
}

.amb-ledger-cell strong {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    color: #0b1118;
}

.amb-ledger-cell p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

/* --------------------------------------------------------------------------
   1.3. SECCIONES EDITORIALES Y CABECERAS (HOMOLOGADAS CON .home-section-index)
   -------------------------------------------------------------------------- */
.ambassadors-section {
    padding: 84px 0;
    border-bottom: 1px solid #d8dfe8;
}

.amb-section-white {
    background: #ffffff;
}

.amb-section-muted {
    background: #f5f6f8;
}

.amb-section-index {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #b74400;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.amb-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.ambassadors-heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.16;
    color: #0b1118;
    margin: 0 0 10px;
}

.ambassadors-subheading {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    max-width: 64ch;
    margin: 0;
}

/* --------------------------------------------------------------------------
   1.4. DIRECTORIO Y TARJETAS DE EMBAJADORES (ESTILO ARQUITECTÓNICO SUIZO)
   -------------------------------------------------------------------------- */
.amb-pub-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #cfd7e3;
    border-radius: 6px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.amb-pub-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.amb-pub-search-box svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.amb-pub-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0b1118;
    font-family: var(--font-sans);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.16s ease;
}

.amb-pub-search-input:focus {
    border-color: #cd4e00;
}

.amb-pub-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.amb-pub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.amb-pub-pill:hover {
    border-color: #0b1118;
    color: #0b1118;
}

.amb-pub-pill.is-active {
    background: #0b1118;
    border-color: #0b1118;
    color: #ffffff;
}

.amb-pub-pill-count {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.ambassadors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.ambassador-card[hidden] {
    display: none !important;
}

.ambassador-card {
    background: #f8fafc;
    border: 1px solid #cfd7e3;
    border-top: 2px solid #cd4e00;
    border-radius: 6px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ambassador-card:hover {
    background: #ffffff;
    border-color: #b8c4d4;
    border-top-color: #cd4e00;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.amb-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.amb-verified-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #b74400;
    text-transform: uppercase;
}

.ambassador-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #64748b;
}

.ambassador-location svg {
    color: #cd4e00;
}

.ambassador-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ambassador-avatar-wrapper {
    flex-shrink: 0;
}

.ambassador-avatar {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    display: block;
}

.ambassador-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #0b1118;
    color: #ffffff;
    border: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.ambassador-info {
    flex: 1;
    min-width: 0;
}

.ambassador-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #0b1118;
    margin: 0 0 6px;
    line-height: 1.25;
}

.ambassador-machine-tag {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 9px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-block;
}

.ambassador-machine-tag .tag-label {
    color: #64748b;
    margin-right: 4px;
}

.ambassador-machine-tag strong {
    color: #0b1118;
    font-weight: 600;
}

.ambassador-bio {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.ambassador-social-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ambassador-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155 !important;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.ambassador-social-btn:hover {
    border-color: #cd4e00;
    color: #b74400 !important;
    background: #fff7f2;
}

/* Ficha Técnica de Cupón dentro de la Tarjeta */
.ambassador-coupon-card {
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-left: 3px solid #cd4e00;
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.coupon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.coupon-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #64748b;
    text-transform: uppercase;
}

.coupon-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 7px;
    border-radius: 3px;
}

.coupon-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.coupon-code {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: #0b1118;
    background: #f1f5f9;
    padding: 6px 11px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    letter-spacing: 0.06em;
}

.amb-pub-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0b1118;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.amb-pub-copy-btn:hover {
    border-color: #0b1118;
    background: #f8fafc;
}

.coupon-desc {
    font-family: var(--font-sans);
    font-size: 12.5px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

.ambassador-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 4px;
    background: #0b1118;
    color: #ffffff !important;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.ambassador-cta-btn:hover {
    background: #c2410c;
    color: #ffffff !important;
}

.amb-pub-no-matches {
    text-align: center;
    padding: 36px 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-left: 3px solid #cd4e00;
    margin-top: 20px;
}

.amb-pub-no-matches p {
    margin: 0 0 14px;
    font-size: 14.5px;
    color: #475569;
}

/* Escaparate Editorial cuando no hay embajadores públicos (homologado con .home-process-spotlight) */
.amb-pub-empty-showcase {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.amb-process-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 36px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cfd7e3;
    border-left: 4px solid #cd4e00;
    padding: 32px;
}

.amb-process-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #b74400;
    text-transform: uppercase;
}

.amb-process-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #0b1118;
    margin: 8px 0 12px;
}

.amb-process-copy p {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 18px;
}

.amb-process-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amb-process-specs span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #d5dce6;
    border-left: 2px solid #cd4e00;
}

.amb-process-actions-box {
    background: #ffffff;
    border: 1px solid #cfd7e3;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amb-process-box-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #64748b;
}

.amb-process-actions-box p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

.amb-process-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.amb-archetypes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.amb-archetype-card {
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-top: 2px solid #0b1118;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amb-archetype-card:hover {
    border-top-color: #cd4e00;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.amb-arch-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.amb-arch-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #b74400;
}

.amb-arch-channels {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #64748b;
}

.amb-archetype-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #0b1118;
    margin: 0;
    line-height: 1.3;
}

.amb-archetype-card p {
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.amb-arch-perk {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
}

.amb-arch-perk span {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.amb-arch-perk strong {
    color: #0b1118;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   1.5. PROTOCOLO OPERATIVO EN DOS VÍAS (HOMOLOGADO CON .home-identity-row)
   -------------------------------------------------------------------------- */
.amb-track-switcher {
    display: inline-flex;
    border: 1px solid #cfd7e3;
    background: #ffffff;
    border-radius: 4px;
    padding: 3px;
    gap: 4px;
}

.amb-track-tab {
    padding: 9px 16px;
    border-radius: 3px;
    border: 0;
    background: transparent;
    color: #475569;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.amb-track-tab:hover {
    color: #0b1118;
}

.amb-track-tab.is-active {
    background: #0b1118;
    color: #ffffff;
}

.amb-track-panel[hidden] {
    display: none !important;
}

.amb-identity-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.amb-identity-rows {
    border-top: 2px solid #0b1118;
    background: #ffffff;
    border-inline: 1px solid #d8dfe8;
}

.amb-identity-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 24px;
    border-bottom: 1px solid #d8dfe8;
}

.amb-row-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #b74400;
    padding-top: 3px;
}

.amb-row-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #0b1118;
    margin: 0 0 8px;
}

.amb-row-body p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
}

.ambassadors-page code:not(.coupon-code) {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 2px 6px;
    border-radius: 3px;
}

.amb-track-aside-card {
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-top: 2px solid #cd4e00;
    padding: 28px 26px;
}

.amb-aside-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #b74400;
    margin-bottom: 8px;
}

.amb-track-aside-card h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: #0b1118;
    margin: 0 0 12px;
}

.amb-track-aside-card p {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 20px;
}

.amb-aside-specs {
    margin: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.amb-aside-specs dt {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 3px;
}

.amb-aside-specs dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #0b1118;
}

/* --------------------------------------------------------------------------
   1.6. ESQUEMA DE COMPENSACIÓN Y MATRIZ DE VOLUMEN
   -------------------------------------------------------------------------- */
.amb-rewards-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
}

.amb-rewards-lead {
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 24px;
}

.amb-reward-cards {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #cfd7e3;
}

.amb-reward-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #d8dfe8;
    align-items: start;
}

.amb-reward-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #b74400;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 4px 8px;
    border-radius: 3px;
    text-align: center;
}

.amb-reward-item h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #0b1118;
    margin: 0 0 6px;
}

.amb-reward-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.amb-simulator-card {
    background: #f8fafc;
    border: 1px solid #cfd7e3;
    border-top: 3px solid #cd4e00;
    border-radius: 6px;
    padding: 28px;
}

.amb-sim-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #b74400;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.amb-sim-head h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #0b1118;
    margin: 0 0 8px;
}

.amb-sim-desc {
    font-size: 14px;
    line-height: 1.58;
    color: #475569;
    margin: 0 0 18px;
}

.amb-sim-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.amb-sim-btn {
    padding: 10px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.amb-sim-btn:hover {
    border-color: #0b1118;
    color: #0b1118;
}

.amb-sim-btn.is-active {
    background: #0b1118;
    border-color: #0b1118;
    color: #ffffff;
}

.amb-sim-output {
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-left: 3px solid #cd4e00;
    padding: 20px;
    margin-bottom: 18px;
}

.amb-sim-tier-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #b74400;
    margin-bottom: 6px;
}

.amb-sim-highlight {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #0b1118;
    margin-bottom: 12px;
    line-height: 1.35;
}

.amb-sim-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: #334155;
}

.amb-sim-perks li {
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.amb-sim-perks li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #cd4e00;
    font-weight: 700;
}

.amb-sim-foot .amb-btn-primary {
    width: 100%;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   1.7. PREGUNTAS FRECUENTES (ACORDEÓN ARQUITECTÓNICO)
   -------------------------------------------------------------------------- */
.amb-faq-grid {
    border-top: 2px solid #0b1118;
    background: #ffffff;
    border-inline: 1px solid #cfd7e3;
}

.amb-faq-item {
    border-bottom: 1px solid #cfd7e3;
    padding: 20px 24px;
}

.amb-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
}

.amb-faq-item summary::-webkit-details-marker {
    display: none;
}

.amb-faq-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: #b74400;
}

.amb-faq-question {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 700;
    color: #0b1118;
    line-height: 1.35;
}

.amb-faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: #cd4e00;
    text-align: right;
}

.amb-faq-item[open] summary::after {
    content: "−";
}

.amb-faq-body {
    margin-top: 12px;
    padding-top: 12px;
    padding-left: 56px;
    border-top: 1px solid #e2e8f0;
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   1.8. BANDA DE CONTACTO Y POSTULACIÓN (HOMOLOGADA CON .home-contact-band)
   -------------------------------------------------------------------------- */
.amb-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

.amb-contact-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 20px;
}

.amb-join-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.amb-join-checklist li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
}

.amb-join-checklist li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 9px;
    color: #cd4e00;
}

.amb-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amb-contact-stack {
    background: #f8fafc;
    border: 1px solid #cfd7e3;
    border-top: 2px solid #0b1118;
    padding: 24px 26px;
}

.amb-contact-table {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.amb-contact-row {
    padding: 14px 0;
    border-bottom: 1px solid #dde3ec;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amb-contact-row:first-child {
    padding-top: 0;
}

.amb-contact-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.amb-contact-row dt {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
}

.amb-contact-row dd {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: #0b1118;
}

.amb-contact-row dd a {
    color: #0b1118;
    text-decoration: none;
    border-bottom: 1px solid #cd4e00;
}

.amb-contact-row dd a:hover {
    color: #b74400;
}

/* Notificación Toast Sobria */
.amb-pub-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    background: #0b1118;
    color: #ffffff;
    border: 1px solid #334155;
    border-left: 3px solid #cd4e00;
    padding: 12px 18px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.amb-pub-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   1.9. ADAPTABILIDAD A MODO OSCURO DEL SITIO (data-theme="dark")
   -------------------------------------------------------------------------- */
.catalog-page[data-theme="dark"] .ambassadors-page {
    background: #0b1118;
    color: #f1f5f9;
}

.catalog-page[data-theme="dark"] .amb-ledger-strip {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.catalog-page[data-theme="dark"] .amb-ledger-grid {
    background: #1e293b;
    border-inline-color: #1e293b;
}

.catalog-page[data-theme="dark"] .amb-ledger-cell {
    background: #111c2c;
}

.catalog-page[data-theme="dark"] .amb-ledger-code,
.catalog-page[data-theme="dark"] .amb-section-index,
.catalog-page[data-theme="dark"] .amb-verified-tag,
.catalog-page[data-theme="dark"] .amb-process-kicker,
.catalog-page[data-theme="dark"] .amb-arch-code,
.catalog-page[data-theme="dark"] .amb-row-num,
.catalog-page[data-theme="dark"] .amb-aside-kicker,
.catalog-page[data-theme="dark"] .amb-sim-kicker,
.catalog-page[data-theme="dark"] .amb-sim-tier-badge,
.catalog-page[data-theme="dark"] .amb-faq-num {
    color: #fdba74;
}

.catalog-page[data-theme="dark"] .amb-ledger-cell strong,
.catalog-page[data-theme="dark"] .ambassadors-heading,
.catalog-page[data-theme="dark"] .ambassador-name,
.catalog-page[data-theme="dark"] .amb-process-copy h3,
.catalog-page[data-theme="dark"] .amb-archetype-card h4,
.catalog-page[data-theme="dark"] .amb-arch-perk strong,
.catalog-page[data-theme="dark"] .amb-row-body h3,
.catalog-page[data-theme="dark"] .amb-track-aside-card h3,
.catalog-page[data-theme="dark"] .amb-aside-specs dd,
.catalog-page[data-theme="dark"] .amb-reward-item h3,
.catalog-page[data-theme="dark"] .amb-sim-head h3,
.catalog-page[data-theme="dark"] .amb-sim-highlight,
.catalog-page[data-theme="dark"] .amb-faq-question,
.catalog-page[data-theme="dark"] .amb-contact-row dd,
.catalog-page[data-theme="dark"] .amb-contact-row dd a {
    color: #f8fafc;
}

.catalog-page[data-theme="dark"] .amb-ledger-cell p,
.catalog-page[data-theme="dark"] .ambassadors-subheading,
.catalog-page[data-theme="dark"] .ambassador-bio,
.catalog-page[data-theme="dark"] .coupon-desc,
.catalog-page[data-theme="dark"] .amb-process-copy p,
.catalog-page[data-theme="dark"] .amb-process-actions-box p,
.catalog-page[data-theme="dark"] .amb-archetype-card p,
.catalog-page[data-theme="dark"] .amb-row-body p,
.catalog-page[data-theme="dark"] .amb-track-aside-card p,
.catalog-page[data-theme="dark"] .amb-rewards-lead,
.catalog-page[data-theme="dark"] .amb-reward-item p,
.catalog-page[data-theme="dark"] .amb-sim-desc,
.catalog-page[data-theme="dark"] .amb-sim-perks,
.catalog-page[data-theme="dark"] .amb-faq-body,
.catalog-page[data-theme="dark"] .amb-contact-lead,
.catalog-page[data-theme="dark"] .amb-join-checklist li {
    color: #cbd5e1;
}

.catalog-page[data-theme="dark"] .amb-section-white {
    background: #0b1118;
    border-bottom-color: #1e293b;
}

.catalog-page[data-theme="dark"] .amb-section-muted {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.catalog-page[data-theme="dark"] .amb-pub-filter-bar,
.catalog-page[data-theme="dark"] .ambassador-card,
.catalog-page[data-theme="dark"] .amb-process-spotlight,
.catalog-page[data-theme="dark"] .amb-archetype-card,
.catalog-page[data-theme="dark"] .amb-identity-rows,
.catalog-page[data-theme="dark"] .amb-track-aside-card,
.catalog-page[data-theme="dark"] .amb-simulator-card,
.catalog-page[data-theme="dark"] .amb-faq-grid,
.catalog-page[data-theme="dark"] .amb-contact-stack {
    background: #111c2c;
    border-color: #263449;
}

.catalog-page[data-theme="dark"] .amb-process-actions-box,
.catalog-page[data-theme="dark"] .ambassador-coupon-card,
.catalog-page[data-theme="dark"] .amb-sim-output,
.catalog-page[data-theme="dark"] .amb-arch-perk,
.catalog-page[data-theme="dark"] .ambassador-machine-tag,
.catalog-page[data-theme="dark"] .amb-process-specs span {
    background: #0b1118;
    border-color: #263449;
    color: #e2e8f0;
}

.catalog-page[data-theme="dark"] .ambassador-machine-tag strong,
.catalog-page[data-theme="dark"] .coupon-code {
    color: #ffffff;
}

.catalog-page[data-theme="dark"] .coupon-code {
    background: #111c2c;
    border-color: #334155;
}

.catalog-page[data-theme="dark"] .amb-btn-outline-dark,
.catalog-page[data-theme="dark"] .amb-pub-pill,
.catalog-page[data-theme="dark"] .ambassador-social-btn,
.catalog-page[data-theme="dark"] .amb-pub-copy-btn,
.catalog-page[data-theme="dark"] .amb-sim-btn {
    background: #0b1118;
    border-color: #334155;
    color: #e2e8f0 !important;
}

.catalog-page[data-theme="dark"] .amb-pub-pill.is-active,
.catalog-page[data-theme="dark"] .amb-sim-btn.is-active {
    background: #c2410c;
    border-color: #cd4e00;
    color: #ffffff !important;
}

.catalog-page[data-theme="dark"] .amb-pub-search-input {
    background: #0b1118;
    border-color: #334155;
    color: #ffffff;
}

.catalog-page[data-theme="dark"] .amb-identity-row,
.catalog-page[data-theme="dark"] .amb-reward-item,
.catalog-page[data-theme="dark"] .amb-faq-item,
.catalog-page[data-theme="dark"] .amb-contact-row,
.catalog-page[data-theme="dark"] .amb-card-meta-top,
.catalog-page[data-theme="dark"] .amb-arch-top,
.catalog-page[data-theme="dark"] .amb-faq-body,
.catalog-page[data-theme="dark"] .amb-aside-specs {
    border-color: #263449;
}

/* --------------------------------------------------------------------------
   1.10. RESPONSIVE BREAKPOINTS (1024px y 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .amb-pub-hero-grid,
    .amb-process-spotlight,
    .amb-identity-split,
    .amb-rewards-grid,
    .amb-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .amb-ledger-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amb-archetypes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ambassadors-hero {
        padding: 48px 0 56px;
    }

    .ambassadors-section {
        padding: 56px 0;
    }

    .amb-pub-hero-copy {
        padding-left: 16px;
    }

    .amb-hero-spec-bar,
    .amb-ledger-grid,
    .amb-join-checklist {
        grid-template-columns: 1fr;
    }

    .amb-sim-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .amb-identity-row,
    .amb-reward-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .amb-faq-item summary {
        grid-template-columns: 32px minmax(0, 1fr) 20px;
    }

    .amb-faq-body {
        padding-left: 0;
    }

    .amb-process-spotlight {
        padding: 22px 18px;
    }

    .amb-pub-search-box {
        min-width: 0;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   2. PORTAL DEDICADO DE EMBAJADORES (LOGIN & DASHBOARD B2B HOMOLOGADO)
   -------------------------------------------------------------------------- */
@keyframes ambAuthEnter {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ambFloatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

@keyframes ambOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -14px) scale(1.06); }
}

@keyframes ambShineSweep {
    0% { transform: translateX(-130%) skewX(-22deg); }
    25%, 100% { transform: translateX(220%) skewX(-22deg); }
}

@keyframes ambPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ambassador-portal-body,
.ambassador-dashboard-body {
    --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

.ambassador-portal-body {
    background-color: #070b12;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f8fafc;
    overflow-x: clip;
}

.ambassador-auth-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1.08fr minmax(460px, 560px);
    flex: 1;
}

/* Columna Izquierda: Showcase Ejecutivo de Aliados */
.amb-auth-showcase {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(205, 78, 0, 0.24) 0%, transparent 45%),
        radial-gradient(circle at 85% 82%, rgba(56, 189, 248, 0.12) 0%, transparent 48%),
        linear-gradient(145deg, #070b12 0%, #0b121e 55%, #111c2d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 48px;
}

.amb-auth-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 20%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 20%, transparent 85%);
    pointer-events: none;
}

.amb-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
    opacity: 0.24;
    animation: ambOrbDrift 11s ease-in-out infinite;
}

.amb-auth-orb.is-orange {
    top: -90px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #f26419 0%, transparent 70%);
}

.amb-auth-orb.is-blue {
    bottom: -90px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
    animation-delay: -5.5s;
}

.amb-auth-showcase-inner {
    position: relative;
    z-index: 1;
    max-width: 540px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
    animation: ambAuthEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.amb-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.amb-showcase-logo img {
    display: block;
    height: 38px;
    width: auto;
}

.amb-showcase-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    padding: 5px 12px;
    border-radius: 999px;
}

.amb-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: ambPulseDot 2.2s infinite;
}

.amb-showcase-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fdba74;
    margin-bottom: 8px;
}

.amb-showcase-hero h2 {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    color: #ffffff;
    margin: 0 0 10px;
}

.amb-showcase-hero p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

.amb-showcase-art-box {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 15px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 24px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    animation: ambFloatSlow 6.5s ease-in-out infinite;
}

.amb-showcase-art-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amb-art-dots {
    display: flex;
    gap: 6px;
}

.amb-art-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.amb-art-dots span:first-child { background: #f97316; }
.amb-art-dots span:nth-child(2) { background: #38bdf8; }
.amb-art-dots span:nth-child(3) { background: #10b981; }

.amb-art-code {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.amb-showcase-svg {
    max-width: 100%;
    height: auto;
    max-height: 185px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.4));
}

.amb-showcase-float-badge {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(11, 17, 24, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.38);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.amb-float-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(205, 78, 0, 0.24);
    color: #fdba74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.amb-showcase-float-badge strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.amb-showcase-float-badge small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.amb-showcase-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.amb-pillar-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.amb-pillar-card.is-highlight {
    border-top-color: #f26419;
    background: rgba(205, 78, 0, 0.1);
}

.amb-pillar-card:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.amb-pillar-num {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fdba74;
}

.amb-pillar-card strong {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.amb-pillar-card small {
    font-size: 11px;
    line-height: 1.4;
    color: #94a3b8;
}

.amb-showcase-foot {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #64748b;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Columna Derecha: Tarjeta de Autenticación */
.ambassador-auth-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    background:
        radial-gradient(circle at 85% 12%, rgba(205, 78, 0, 0.12) 0%, transparent 45%),
        #0b1118;
    box-sizing: border-box;
}

.ambassador-auth-card {
    width: 100%;
    max-width: 468px;
    background: #121b26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 4px solid #cd4e00;
    border-radius: 16px;
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
    animation: ambAuthEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.amb-stagger-1 { animation: ambAuthEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both; }
.amb-stagger-2 { animation: ambAuthEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.amb-stagger-3 { animation: ambAuthEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
.amb-stagger-4 { animation: ambAuthEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }

.ambassador-auth-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 28px;
    background: #090e16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ambassador-auth-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fdba74;
    background: rgba(205, 78, 0, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.38);
    padding: 4px 11px;
    border-radius: 999px;
}

.ambassador-auth-body {
    padding: 30px 28px 28px;
}

.ambassador-auth-header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 6px 0 8px;
    line-height: 1.2;
}

.ambassador-auth-header p {
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 24px;
}

.ambassador-auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.42);
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #fecaca;
    margin-bottom: 20px;
}

.ambassador-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amb-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.auth-group label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.amb-security-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 999px;
}

.amb-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.amb-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.amb-input-icon-wrap:focus-within .amb-field-icon {
    color: #f97316;
    transform: translateY(-50%) scale(1.08);
}

.ambassador-auth-form .auth-input {
    height: 50px;
    background: #090e16;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 14px 10px 44px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #ffffff;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.amb-input-icon-wrap.is-password .auth-input {
    padding-right: 88px;
}

.ambassador-auth-form .auth-input:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.ambassador-auth-form .auth-input::placeholder {
    color: #64748b;
}

.ambassador-auth-form .auth-input:focus {
    background: #070b12;
    border-color: #f26419;
    box-shadow: 0 0 0 4px rgba(242, 100, 25, 0.2);
}

.amb-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 11px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #162130;
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amb-pwd-toggle:hover {
    background: rgba(205, 78, 0, 0.24);
    border-color: rgba(251, 146, 60, 0.45);
    color: #ffffff;
}

.ambassador-btn-submit {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    min-height: 52px;
    padding: 13px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f26419 0%, #cd4e00 100%);
    border: 1px solid #b74400;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 10px 24px -6px rgba(205, 78, 0, 0.5);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.ambassador-btn-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: translateX(-130%) skewX(-22deg);
    animation: ambShineSweep 5.5s ease-in-out infinite;
    pointer-events: none;
}

.ambassador-btn-submit:hover {
    background: linear-gradient(135deg, #fb7124 0%, #b74400 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 14px 30px -6px rgba(205, 78, 0, 0.62);
}

.amb-btn-arrow {
    transition: transform 0.2s ease;
}

.ambassador-btn-submit:hover .amb-btn-arrow {
    transform: translateX(4px);
}

.ambassador-auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.amb-apply-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.amb-apply-copy strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2px;
}

.amb-apply-copy span {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.45;
}

.ambassador-apply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    font-size: 12.5px;
    font-weight: 700;
    color: #6ee7b7 !important;
    text-decoration: none !important;
    transition: all 0.16s ease;
}

.ambassador-apply-link:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff !important;
    text-decoration: none !important;
}

.ambassador-back-home {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    color: #64748b;
}

.ambassador-back-home a {
    color: #94a3b8;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ambassador-back-home a:hover {
    color: #ffffff;
}

@media (max-width: 992px) {
    .ambassador-auth-shell {
        grid-template-columns: 1fr;
    }
    .amb-auth-showcase {
        display: none;
    }
    .ambassador-auth-wrap {
        min-height: 100vh;
        padding: 28px 18px;
    }
}

/* --------------------------------------------------------------------------
   DASHBOARD DEL EMBAJADOR (ESTÉTICA CORPORATIVA SIAMAQ B2B)
   -------------------------------------------------------------------------- */
.ambassador-dashboard-body {
    background: #f5f6f8;
    color: #0b1118;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ambassador-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cabecera Superior Arquitectónica */
.ambassador-header {
    background: #0b1118;
    border-bottom: 1px solid #1e293b;
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.ambassador-header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ambassador-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ambassador-header-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fdba74;
    background: rgba(205, 78, 0, 0.15);
    border: 1px solid rgba(205, 78, 0, 0.38);
    padding: 4px 10px;
    border-radius: 4px;
}

.ambassador-header-user {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ambassador-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ambassador-header-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
}

.ambassador-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.ambassador-user-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.ambassador-code-badge {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #94a3b8;
}

.ambassador-code-badge strong {
    color: #fdba74;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ambassador-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ambassador-btn-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.ambassador-main {
    flex: 1;
    padding: 36px 0 64px;
}

/* Alertas de Estado */
.ambassador-alert-success,
.ambassador-alert-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.ambassador-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ambassador-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Placa Principal de Enlace Único y Cupón (Estética Hero SIAMAQ #0b1118) */
.ambassador-share-card {
    background-color: #0b1118;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    border: 1px solid #1e293b;
    border-top: 3px solid #cd4e00;
    border-radius: 8px;
    padding: 28px 30px;
    margin-bottom: 28px;
    color: #f8fafc;
    box-shadow: 0 12px 28px -8px rgba(11, 17, 24, 0.18);
}

.share-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.share-card-title {
    border-left: 3px solid #cd4e00;
    padding-left: 18px;
    max-width: 720px;
}

.share-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fdba74;
    margin-bottom: 8px;
}

.share-card-title h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 6px;
}

.share-card-title p {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}

.share-card-title p strong {
    color: #fdba74;
    font-family: var(--font-mono);
}

.share-benefit-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    background: #121b26;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-left: 3px solid #10b981;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #6ee7b7;
}

.share-benefit-chip strong {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    margin-top: 2px;
}

.share-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #121b26;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.share-input-wrap {
    flex: 1;
    min-width: 260px;
}

.share-input {
    width: 100%;
    height: 44px;
    background: #0b1118;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0 14px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    color: #fdba74;
    outline: none;
    box-sizing: border-box;
}

.share-input:focus {
    border-color: #cd4e00;
}

.share-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}

.share-btn.is-copy {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.share-btn.is-copy:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.share-btn.is-copy.is-copied {
    background: #059669;
    border-color: #10b981;
    color: #ffffff;
}

.share-btn.is-wa {
    background: #16a34a;
    border-color: #22c55e;
    color: #ffffff !important;
}

.share-btn.is-wa:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.share-btn.is-new-lead {
    background: #c2410c;
    border-color: #cd4e00;
    color: #ffffff;
}

.share-btn.is-new-lead:hover {
    background: #a83e00;
    border-color: #a83e00;
    transform: translateY(-1px);
}

/* KPIs de Desempeño Comercial (Tarjetas Blancas de Alto Contraste) */
.ambassador-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.ambassador-kpi-card {
    background: #ffffff;
    border: 1px solid #d3dae3;
    border-top: 3px solid #0b1118;
    border-radius: 6px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(11, 17, 24, 0.04);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-code {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #64748b;
}

.kpi-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-wrap.is-cyan {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

.kpi-icon-wrap.is-emerald {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.kpi-icon-wrap.is-amber {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.kpi-icon-wrap.is-orange {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.kpi-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b1118;
    line-height: 1.15;
}

.kpi-value small {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.kpi-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* Tarjetas de Sección (Prospectos y Liquidaciones) */
.ambassador-section-card {
    background: #ffffff;
    border: 1px solid #d3dae3;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(11, 17, 24, 0.04);
}

.section-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c2410c;
    margin-bottom: 4px;
}

.section-card-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0b1118;
    margin: 0 0 6px;
}

.section-card-header p {
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0;
    max-width: 72ch;
}

/* Estado Vacío de Tabla (Legible y de Alto Contraste) */
.table-empty-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 44px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.table-empty-box .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.table-empty-box h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #0b1118;
    margin: 0;
}

.table-empty-box p {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    max-width: 56ch;
    margin: 0 0 10px;
}

.table-empty-box p strong {
    color: #0b1118;
    font-weight: 600;
}

/* Tabla Corporativa B2B */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.ambassador-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 13.5px;
}

.ambassador-table th {
    background: #f8fafc;
    color: #475569;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    text-align: left;
}

.ambassador-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    vertical-align: middle;
}

.ambassador-table tbody tr:hover {
    background: #f8fafc;
}

.lead-customer-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lead-customer-cell strong {
    color: #0b1118;
    font-weight: 700;
    font-size: 14px;
}

.lead-customer-cell small {
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.lead-machine-badge {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}

.lead-date {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #475569;
}

.crm-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-block;
}

.crm-badge.is-open {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
}

.crm-badge.is-won {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.crm-badge.is-lost {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.incentive-amount {
    color: #c2410c;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    display: block;
}

.incentive-mod {
    font-size: 11.5px;
    color: #64748b;
}

.incentive-pending {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.incentive-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
}

.incentive-status-badge.is-eval {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.incentive-status-badge.is-ready {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.incentive-status-badge.is-paid {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.incentive-status-badge.is-discarded {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Modal de Registro de Lead (Oculto estrictamente cuando tiene atributo hidden) */
.ambassador-lead-modal[hidden] {
    display: none !important;
}

.ambassador-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 24, 0.72);
    backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    z-index: 2;
    background: #ffffff;
    color: #0b1118;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #cd4e00;
    border-radius: 8px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 24px 60px rgba(11, 17, 24, 0.45);
    overflow: hidden;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    background: #0b1118;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
}

.modal-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fdba74;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.modal-title h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.modal-title p {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.modal-form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
}

.modal-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #0b1118;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.modal-input::placeholder {
    color: #94a3b8;
}

.modal-input:focus {
    background: #ffffff;
    border-color: #cd4e00;
    box-shadow: 0 0 0 3px rgba(205, 78, 0, 0.15);
}

.modal-legal-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 3px solid #cd4e00;
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-legal-note {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: #9a3412;
    margin: 0;
}

.modal-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.5;
    color: #334155;
    cursor: pointer;
}

.modal-check-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #cd4e00;
    flex-shrink: 0;
}

.modal-check-label a {
    color: #c2410c;
    font-weight: 600;
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.modal-btn-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 11px 18px;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.modal-btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0b1118;
}

/* Pie de página del Portal de Embajadores */
.ambassador-portal-footer {
    background: #ffffff;
    border-top: 1px solid #d3dae3;
    padding: 20px 0;
    font-family: var(--font-sans);
    font-size: 12.5px;
    color: #64748b;
}

.ambassador-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ambassador-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ambassador-footer-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

.ambassador-footer-links a:hover {
    color: #c2410c;
    text-decoration: underline;
}

@media (max-width: 960px) {
    .ambassador-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ambassador-kpi-grid,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .ambassador-share-card,
    .ambassador-section-card {
        padding: 20px 18px;
    }

    .share-btn-group {
        width: 100%;
    }

    .share-btn {
        flex: 1;
    }

    .modal-header,
    .modal-form {
        padding: 18px 20px;
    }
}

/* ==========================================================================
   3. ESTILOS CMS ADMINISTRADOR · STUDIO ENTERPRISE SUPER PRO MUNDIAL
   ========================================================================== */
.amb-admin-workspace {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 4px 0 32px;
}

/* --------------------------------------------------------------------------
   3.1. HERO EJECUTIVO CON ILUSTRACIÓN UNDRAW Y BADGES FLOTANTES
   -------------------------------------------------------------------------- */
.amb-admin-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 15%, rgba(242, 100, 25, 0.14) 0%, transparent 48%),
        radial-gradient(circle at 12% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #fff7ed 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.amb-admin-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cd4e00 0%, #f97316 40%, #06b6d4 75%, #10b981 100%);
}

.amb-admin-kicker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.amb-admin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(205, 78, 0, 0.1);
    border: 1px solid rgba(205, 78, 0, 0.25);
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.amb-admin-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ea580c;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.65);
    animation: ambPulse 2s infinite;
}

.amb-admin-privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
}

.amb-admin-hero-copy h1 {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.amb-admin-hero-copy p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 22px;
    max-width: 680px;
}

.amb-admin-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amb-cta-create {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #cd4e00 0%, #ea580c 55%, #f97316 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px -4px rgba(205, 78, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.amb-cta-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(205, 78, 0, 0.58);
}

.amb-hero-btn-sec {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    border-radius: 10px !important;
    font-weight: 600 !important;
    background: #ffffff;
}

.amb-admin-hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.amb-hero-art-card {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 34px -12px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.amb-hero-undraw-main {
    width: 100%;
    max-width: 290px;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
    transition: transform 0.3s ease;
}

.amb-hero-art-card:hover .amb-hero-undraw-main {
    transform: scale(1.03) translateY(-2px);
}

.amb-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 11px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    line-height: 1.25;
}

.amb-floating-badge.is-top {
    top: -10px;
    left: -10px;
}

.amb-floating-badge.is-bottom {
    bottom: -10px;
    right: -8px;
}

.amb-floating-badge strong {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 11.5px;
}

.amb-floating-badge small {
    color: #94a3b8;
    font-size: 10px;
}

.amb-float-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amb-float-dot.is-orange { background: #f97316; box-shadow: 0 0 8px #f97316; }
.amb-float-dot.is-emerald { background: #10b981; box-shadow: 0 0 8px #10b981; }

/* --------------------------------------------------------------------------
   3.2. TARJETAS KPI EJECUTIVAS (4 COLUMNAS)
   -------------------------------------------------------------------------- */
.amb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.amb-kpi-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amb-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.1);
}

.amb-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
}

.amb-kpi-card.is-orange::before { background: linear-gradient(90deg, #cd4e00, #f97316); }
.amb-kpi-card.is-cyan::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.amb-kpi-card.is-amber::before { background: linear-gradient(90deg, #d97706, #f59e0b); }
.amb-kpi-card.is-emerald::before { background: linear-gradient(90deg, #059669, #10b981); }

.amb-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.amb-kpi-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.amb-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amb-kpi-icon svg {
    width: 20px;
    height: 20px;
}

.amb-kpi-card.is-orange .amb-kpi-icon { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.amb-kpi-card.is-cyan .amb-kpi-icon { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.amb-kpi-card.is-amber .amb-kpi-icon { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.amb-kpi-card.is-emerald .amb-kpi-icon { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.amb-kpi-value {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.amb-kpi-value small {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.amb-kpi-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.amb-kpi-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.amb-kpi-pill.is-emerald { background: #ecfdf5; color: #047857; }
.amb-kpi-pill.is-cyan { background: #ecfeff; color: #0e7490; }
.amb-kpi-pill.is-amber { background: #fffbeb; color: #b45309; }
.amb-kpi-pill.is-orange { background: #fff7ed; color: #c2410c; }
.amb-kpi-pill.is-slate { background: #f1f5f9; color: #475569; }

/* --------------------------------------------------------------------------
   3.3. DOCK DE INTELIGENCIA OPERATIVA (3 PANELES)
   -------------------------------------------------------------------------- */
.amb-intel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.amb-intel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amb-intel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.amb-intel-overline {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #cd4e00;
    margin-bottom: 3px;
}

.amb-intel-head h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.amb-intel-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.amb-intel-link {
    font-size: 12px;
    font-weight: 700;
    color: #cd4e00;
    text-decoration: none;
    white-space: nowrap;
}

.amb-intel-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.amb-link-builder {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.amb-link-input-row {
    display: flex;
    gap: 8px;
}

.amb-link-input-row .form-control {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.amb-link-preview-box {
    background: #0f172a;
    color: #e2e8f0;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.amb-link-preview-label {
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.amb-link-preview-box code {
    color: #38bdf8;
    font-weight: 700;
    white-space: nowrap;
}

.amb-modalities-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.amb-modality-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.amb-mod-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.amb-mod-icon.is-emerald { background: #ecfdf5; }
.amb-mod-icon.is-orange { background: #fff7ed; }
.amb-mod-icon.is-cyan { background: #ecfeff; }

.amb-modality-item strong {
    display: block;
    font-size: 12.5px;
    color: #0f172a;
}

.amb-modality-item small {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}

.amb-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amb-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.amb-act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amb-act-dot.is-emerald { background: #10b981; }
.amb-act-dot.is-cyan { background: #06b6d4; }

.amb-act-body {
    flex: 1;
    min-width: 0;
}

.amb-act-body strong {
    display: block;
    font-size: 12.5px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amb-act-body small {
    font-size: 11px;
    color: #64748b;
}

.amb-act-amount {
    font-size: 12.5px;
    font-weight: 800;
    color: #059669;
    white-space: nowrap;
}

.amb-act-btn {
    padding: 4px 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
}

.amb-intel-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    margin-top: auto;
}

.amb-intel-empty strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 3px;
}

.amb-intel-empty p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   3.4. PANEL DE DIRECTORIO CRUD, PÍLDORAS Y BUSCADOR
   -------------------------------------------------------------------------- */
.amb-directory-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.amb-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.amb-status-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.16s ease;
}

.amb-status-pill:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.amb-status-pill.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.amb-pill-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    font-size: 11px;
    font-weight: 800;
}

.amb-status-pill.is-active .amb-pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.amb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.amb-dot.is-emerald { background: #10b981; }
.amb-dot.is-orange { background: #f97316; }
.amb-dot.is-amber { background: #f59e0b; }
.amb-dot.is-slate { background: #94a3b8; }

.amb-panel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amb-result-badge {
    padding: 5px 11px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.amb-view-switcher {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #e2e8f0;
    gap: 2px;
}

.amb-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amb-view-btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.amb-search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.amb-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.amb-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.amb-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.amb-search-input-wrap .form-control {
    padding-left: 36px;
}

.amb-select-estado {
    width: auto;
    min-width: 170px;
}

.amb-toolbar-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   3.5. ESTADO VACÍO ILUSTRADO CON UNDRAW Y ONBOARDING EN 3 PASOS
   -------------------------------------------------------------------------- */
.amb-empty-showcase {
    padding: 44px 28px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.amb-empty-art-wrap {
    margin-bottom: 18px;
}

.amb-empty-undraw {
    max-width: 260px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.07));
}

.amb-empty-showcase h3 {
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.amb-empty-showcase > p {
    font-size: 14px;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.amb-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}

.amb-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.amb-step-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.amb-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.amb-step-card strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 5px;
}

.amb-step-card p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.amb-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   3.6. TABLA EJECUTIVA SUPER PRO Y REJILLA DE TARJETAS
   -------------------------------------------------------------------------- */
.amb-admin-workspace[data-view-mode="list"] .amb-cards-grid {
    display: none !important;
}

.amb-admin-workspace[data-view-mode="grid"] .amb-table-container {
    display: none !important;
}

.amb-pro-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.amb-pro-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 11px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.amb-pro-table tbody td {
    padding: 13px 11px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.amb-table-row:hover {
    background: #f8fafc;
}

.amb-ident-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 215px;
}

.amb-avatar-box {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.amb-avatar-box.is-lg {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    font-size: 18px;
}

.amb-avatar-box img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.amb-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.amb-status-dot.is-activo { background: #10b981; }
.amb-status-dot.is-pendiente { background: #f59e0b; }
.amb-status-dot.is-inactivo { background: #94a3b8; }

.amb-name-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.amb-name-line strong {
    font-size: 14px;
    color: #0f172a;
}

.amb-state-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}

.amb-state-badge.is-activo { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.amb-state-badge.is-pendiente { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.amb-state-badge.is-inactivo { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.amb-meta-sub {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.amb-machine-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.amb-code-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.amb-code-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.amb-code-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 7px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #c2410c;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.amb-copy-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amb-copy-chip:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.amb-contact-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.amb-wa-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.amb-wa-pill:hover {
    background: #d1fae5;
}

.amb-mail-link {
    font-size: 12px;
    color: #475569;
    text-decoration: none;
}

.amb-access-meta {
    font-size: 11px;
    color: #94a3b8;
}

.amb-coupon-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.amb-coupon-badge {
    padding: 3px 9px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 11.5px;
    font-weight: 800;
}

.amb-coupon-box small {
    font-size: 11px;
    color: #64748b;
    max-width: 190px;
}

.amb-coupon-none {
    font-size: 12px;
    color: #94a3b8;
}

.amb-showcase-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.amb-vitrina-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.amb-vitrina-badge.is-visible {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.amb-vitrina-badge.is-hidden {
    background: #f1f5f9;
    color: #64748b;
}

.amb-social-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.amb-soc-pill {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none !important;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.amb-soc-pill:hover {
    background: #0f172a;
    color: #ffffff;
}

.amb-balance-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.amb-leads-count {
    font-size: 13px;
    color: #0f172a;
}

.amb-sales-tag {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 10.5px;
    font-weight: 700;
}

.amb-money-line {
    font-size: 12px;
}

.amb-money-line.is-paid { color: #059669; }
.amb-money-line.is-pending { color: #d97706; }

.th-amb-actions,
.td-amb-actions {
    text-align: right;
    width: 200px;
}

.amb-actions-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
}

.amb-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.amb-act-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.amb-act-btn.is-edit:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.amb-act-btn.is-payout {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.amb-act-btn.is-payout:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

.amb-act-btn.is-delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* VISTA EN TARJETAS (GRID) */
.amb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}

.amb-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.amb-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
}

.amb-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.amb-card-badges {
    display: flex;
    gap: 6px;
}

.amb-card-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.amb-card-title-box h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
}

.amb-card-title-box p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.amb-card-link-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.amb-card-link-url {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amb-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.amb-card-metric span {
    display: block;
    font-size: 10.5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

.amb-card-metric strong {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.amb-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.amb-card-foot .amb-act-btn {
    flex: 1;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   3.7. MODALES STUDIO PRO Y TOAST FLOTANTE
   -------------------------------------------------------------------------- */
.modal-backdrop-custom[hidden],
.modal-backdrop-custom[style*="display: none"],
.modal-backdrop-custom.is-hidden {
    display: none !important;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.76);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-dialog-custom {
    width: 100%;
    max-width: 780px;
    margin: auto;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.amb-modal-xl {
    max-width: 900px;
}

.modal-content-custom {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.08);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #cd4e00;
    display: flex;
    flex-direction: column;
}

.amb-modal-header-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    margin: 0;
    background:
        radial-gradient(circle at 92% 10%, rgba(205, 78, 0, 0.24) 0%, transparent 55%),
        linear-gradient(135deg, #0b1118 0%, #162130 100%);
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}

.amb-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.amb-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(205, 78, 0, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.amb-modal-icon-badge.is-emerald {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.4);
}

.amb-modal-kicker {
    display: block;
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fdba74;
    margin-bottom: 3px;
}

.amb-modal-kicker.is-emerald {
    color: #6ee7b7;
}

.amb-modal-title-group h3 {
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 3px;
    line-height: 1.2;
}

.amb-modal-subtitle {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.amb-modal-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.amb-btn-demo-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 13px;
    border-radius: 8px;
    border: 1px solid rgba(251, 146, 60, 0.4);
    background: rgba(205, 78, 0, 0.2);
    color: #ffedd5;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.amb-btn-demo-header:hover {
    background: #cd4e00;
    border-color: #f97316;
    color: #ffffff;
    transform: translateY(-1px);
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(248, 113, 113, 0.45);
    color: #ffffff;
}

/* Estructura interna de formulario con scroll independiente y footer fijo */
.amb-pro-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

.amb-modal-body-scroll {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
}

.amb-fieldset-pro {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.amb-fieldset-pro > legend {
    float: left;
    width: 100%;
    padding: 0 0 12px 0;
    margin: 0 0 2px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.amb-fieldset-pro > legend + * {
    clear: both;
}

.amb-legend-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #c2410c;
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Controles de formulario dentro de .amb-pro-form */
.amb-pro-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.amb-pro-form .form-group > label,
.amb-pro-form .amb-label-flex > label {
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
}

.amb-label-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.amb-autogen-btn {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amb-autogen-btn:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
}

.amb-pro-form .form-control {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 13.5px;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.amb-pro-form .form-control::placeholder {
    color: #94a3b8;
}

.amb-pro-form .form-control:focus {
    outline: none;
    border-color: #cd4e00;
    box-shadow: 0 0 0 3px rgba(205, 78, 0, 0.14);
}

.amb-pro-form textarea.form-control {
    height: auto !important;
    min-height: 86px;
    padding: 10px 14px;
    line-height: 1.55;
    resize: vertical;
}

.amb-pro-form .form-hint {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Tarjeta de checkbox destacada y selector de archivo */
.amb-checkbox-highlight {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.amb-check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.amb-check-card:hover {
    background: #ffedd5;
    border-color: #fb923c;
}

.amb-check-card input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #cd4e00;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.amb-check-card-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.amb-check-card-copy strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #9a3412;
    line-height: 1.25;
}

.amb-check-card-copy small {
    font-size: 11px;
    color: #c2410c;
    line-height: 1.25;
}

.amb-file-input {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    box-sizing: border-box;
}

.amb-file-input::file-selector-button {
    margin-right: 10px;
    padding: 5px 11px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amb-file-input::file-selector-button:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* Modal de Pago de Incentivos */
.amb-payout-recipient-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    margin: 0;
}

.amb-payout-overline {
    display: block;
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 10px;
    font-weight: 700;
    color: #047857;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.amb-payout-name-input {
    border: none;
    background: transparent;
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: 16px;
    font-weight: 800;
    color: #064e3b;
    width: 100%;
    outline: none;
    padding: 0;
}

.amb-payout-bank-hint {
    display: block;
    font-size: 12px;
    color: #047857;
    margin-top: 3px;
}

.amb-quick-amounts {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.amb-amt-chip {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amb-amt-chip:hover {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

/* Modal de eliminación */
.amb-delete-modal-content {
    text-align: center;
    padding: 30px 28px;
}

.amb-delete-art {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.amb-delete-modal-content h3 {
    font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.amb-delete-modal-content p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 22px;
}

.amb-delete-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Footer pegajoso inferior de modales */
.modal-footer-custom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 16px 28px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.modal-footer-custom .btn {
    min-height: 40px;
    padding: 0 18px;
    font-weight: 700;
    border-radius: 8px;
}

/* TOAST FLOTANTE */
.amb-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.amb-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   3.8. SOPORTE COMPLETO PARA MODO OSCURO ([data-theme=dark])
   -------------------------------------------------------------------------- */
[data-theme=dark] .amb-admin-hero {
    background:
        radial-gradient(circle at 88% 15%, rgba(242, 100, 25, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #1a2332 0%, #111827 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme=dark] .amb-admin-hero-copy h1,
[data-theme=dark] .amb-kpi-value,
[data-theme=dark] .amb-intel-head h3,
[data-theme=dark] .amb-modality-item strong,
[data-theme=dark] .amb-act-body strong,
[data-theme=dark] .amb-empty-showcase h3,
[data-theme=dark] .amb-step-card strong,
[data-theme=dark] .amb-name-line strong,
[data-theme=dark] .amb-leads-count,
[data-theme=dark] .amb-card-title-box h3,
[data-theme=dark] .amb-card-metric strong,
[data-theme=dark] .amb-modal-title-group h3,
[data-theme=dark] .amb-payout-name-input,
[data-theme=dark] .amb-delete-modal-content h3,
[data-theme=dark] .amb-check-label,
[data-theme=dark] .amb-fieldset-pro > legend {
    color: #f8fafc;
}

[data-theme=dark] .amb-admin-hero-copy p,
[data-theme=dark] .amb-intel-desc,
[data-theme=dark] .amb-modality-item small,
[data-theme=dark] .amb-empty-showcase > p,
[data-theme=dark] .amb-step-card p,
[data-theme=dark] .amb-meta-sub,
[data-theme=dark] .amb-mail-link,
[data-theme=dark] .amb-coupon-box small,
[data-theme=dark] .amb-pro-table thead th,
[data-theme=dark] .amb-card-link-url,
[data-theme=dark] .amb-pro-form .form-hint {
    color: #94a3b8;
}

[data-theme=dark] .amb-machine-tag,
[data-theme=dark] .amb-vitrina-badge.is-hidden,
[data-theme=dark] .amb-soc-pill,
[data-theme=dark] .amb-result-badge,
[data-theme=dark] .amb-view-switcher {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

[data-theme=dark] .amb-view-btn {
    color: #94a3b8;
}

[data-theme=dark] .amb-view-btn.is-active {
    background: #1e293b;
    color: #ffffff;
}

[data-theme=dark] .amb-hero-art-card,
[data-theme=dark] .amb-kpi-card,
[data-theme=dark] .amb-intel-card,
[data-theme=dark] .amb-directory-panel,
[data-theme=dark] .amb-card-item,
[data-theme=dark] .modal-content-custom,
[data-theme=dark] .modal-footer-custom {
    background: #1a2332;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme=dark] .amb-modal-body-scroll {
    background: #0f172a;
}

[data-theme=dark] .amb-panel-top,
[data-theme=dark] .amb-pro-table thead th,
[data-theme=dark] .amb-modality-item,
[data-theme=dark] .amb-activity-item,
[data-theme=dark] .amb-step-card,
[data-theme=dark] .amb-card-link-bar,
[data-theme=dark] .amb-card-metrics,
[data-theme=dark] .amb-fieldset-pro,
[data-theme=dark] .amb-payout-recipient-card,
[data-theme=dark] .amb-intel-empty {
    background: #141d2b;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme=dark] .amb-fieldset-pro > legend {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme=dark] .amb-pro-form .form-group > label,
[data-theme=dark] .amb-pro-form .amb-label-flex > label {
    color: #e2e8f0;
}

[data-theme=dark] .amb-pro-form .form-control,
[data-theme=dark] .amb-file-input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

[data-theme=dark] .amb-file-input::file-selector-button {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

[data-theme=dark] .amb-check-card {
    background: rgba(205, 78, 0, 0.14);
    border-color: rgba(251, 146, 60, 0.35);
}

[data-theme=dark] .amb-check-card-copy strong {
    color: #fdba74;
}

[data-theme=dark] .amb-check-card-copy small {
    color: #fed7aa;
}

[data-theme=dark] .amb-search-toolbar,
[data-theme=dark] .amb-pro-table tbody td,
[data-theme=dark] .amb-card-foot,
[data-theme=dark] .amb-modal-header-pro,
[data-theme=dark] .modal-footer-custom {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme=dark] .amb-table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme=dark] .amb-status-pill,
[data-theme=dark] .amb-act-btn,
[data-theme=dark] .amb-copy-chip,
[data-theme=dark] .amb-hero-btn-sec,
[data-theme=dark] .amb-amt-chip {
    background: #141d2b;
    border-color: rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

[data-theme=dark] .amb-status-pill.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3.9. ADAPTACIÓN RESPONSIVE (1200px, 992px, 768px, 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .amb-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .amb-intel-grid {
        grid-template-columns: 1fr;
    }
    .amb-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .amb-admin-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
    .amb-onboarding-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ambassadors-grid,
    .amb-kpi-grid,
    .amb-cards-grid,
    .form-row-2,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }
    .amb-admin-workspace,
    .amb-admin-hero,
    .amb-intel-card,
    .amb-directory-panel,
    .amb-table-container {
        min-width: 0;
        max-width: 100%;
    }
    .amb-search-form,
    .amb-search-input-wrap,
    .amb-select-estado {
        min-width: 0;
        width: 100%;
    }
    .amb-link-input-row {
        flex-direction: column;
    }
    .amb-toolbar-cta {
        width: 100%;
        flex-wrap: wrap;
    }
    .amb-toolbar-cta .btn {
        flex: 1;
        justify-content: center;
    }
    .ambassadors-join-card {
        padding: 28px 20px;
    }
    .ambassador-header-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .ambassador-header-user {
        width: 100%;
        justify-content: space-between;
    }
    .amb-panel-top,
    .amb-search-toolbar {
        padding: 14px 16px;
    }
    .amb-floating-badge {
        position: static;
        margin-top: 8px;
        width: 100%;
    }
    .amb-hero-art-card {
        flex-direction: column;
        max-width: 100%;
    }
    .amb-modal-header-pro {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }
    .amb-modal-head-actions {
        width: 100%;
        justify-content: space-between;
    }
    .amb-modal-body-scroll {
        padding: 16px 18px;
    }
    .amb-fieldset-pro {
        padding: 16px;
    }
    .modal-footer-custom {
        padding: 14px 18px;
    }
}


