/*!
 * FCA Players PRO 5.4.0 - Frontend Design
 * Diseño moderno, completo y responsive para el Centro Nacional de Jugadores FCA.
 * Incluye: tarjetas, filtros, modal con pestañas, formulario frontal y utilidades.
 */

/* ============================================================
   1. VARIABLES GLOBALES Y RESET
   ============================================================ */
#fcaSuperBD, .fca-bd-front-form {
    --fca-green: #064e35;
    --fca-green-2: #087241;
    --fca-green-3: #0b3d2c;
    --fca-green-light: #dcfce7;
    --fca-soft: #ecfdf5;
    --fca-soft-2: #f7fbf8;
    --fca-line: #d7e8dc;
    --fca-ink: #0f172a;
    --fca-muted: #526371;
    --fca-gold: #d7a529;
    --fca-shadow-sm: 0 10px 25px -5px rgba(6, 78, 53, 0.08);
    --fca-shadow-md: 0 20px 40px -12px rgba(6, 78, 53, 0.15);
    --fca-shadow-lg: 0 30px 60px -15px rgba(6, 78, 53, 0.2);
    --fca-radius-card: 28px;
    --fca-radius-element: 20px;
    --fca-transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

#fcaSuperBD,
#fcaSuperBD *,
#fcaSuperBD *::before,
#fcaSuperBD *::after,
.fca-bd-front-form,
.fca-bd-front-form *,
.fca-bd-front-form *::before,
.fca-bd-front-form *::after {
    box-sizing: border-box;
}

/* Contenedor principal unificado */
.fca-super-app,
#fcaSuperBD,
.fca440-app,
.fca-bd-wrap,
.fca-bd-front-form {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8fff9 0%, #ffffff 48%, #f7fbf8 100%);
    border: 1px solid var(--fca-line);
    border-radius: 32px;
    box-shadow: var(--fca-shadow-md);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fca-ink);
    line-height: 1.4;
}

/* ============================================================
   2. HEADER / HERO
   ============================================================ */
.fca-super-head {
    position: relative;
    overflow: hidden;
    border-radius: var(--fca-radius-card);
    padding: 36px 40px;
    background: radial-gradient(circle at 85% 10%, rgba(255,255,255,0.3), transparent 40%),
                linear-gradient(135deg, var(--fca-green) 0%, var(--fca-green-2) 70%, #0e8f53 100%);
    color: white;
    box-shadow: var(--fca-shadow-lg);
    margin-bottom: 20px;
}

.fca-super-head::after {
    content: "♟";
    position: absolute;
    right: 20px;
    bottom: -30px;
    font-size: 160px;
    opacity: 0.12;
    pointer-events: none;
    font-weight: 400;
}

.fca-super-head h2,
.fca-super-head h3 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 12px 0;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fca-super-head p {
    font-size: 1.1rem;
    max-width: 650px;
    color: #e0f7ea;
    margin: 0;
    font-weight: 500;
}

.fca-super-head code {
    background: rgba(255,255,255,0.2);
    border-radius: 40px;
    padding: 4px 10px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================================
   3. BARRA DE HERRAMIENTAS (filtros + botones)
   ============================================================ */
.fca-super-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: white;
    border: 1px solid var(--fca-line);
    border-radius: 28px;
    padding: 16px 20px;
    margin: 20px 0 18px;
    box-shadow: var(--fca-shadow-sm);
}

.fca-super-tools input,
.fca-super-tools select {
    height: 48px;
    border-radius: 40px;
    border: 1px solid #cfe3d5;
    background: #fefefe;
    padding: 0 18px;
    font-weight: 500;
    color: var(--fca-ink);
    transition: var(--fca-transition);
    font-size: 0.95rem;
    flex: 1 1 200px;
}

.fca-super-tools input:focus,
.fca-super-tools select:focus {
    border-color: var(--fca-green-2);
    box-shadow: 0 0 0 3px rgba(8, 114, 65, 0.15);
    outline: none;
    background: white;
}

.fca-super-tools label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fca-soft);
    border-radius: 40px;
    padding: 0 16px;
    height: 48px;
    font-weight: 700;
    color: #14532d;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

.fca-super-tools button,
#fcaExportVisible,
#fcaExportJson,
.fca-export-btn {
    height: 48px;
    border-radius: 40px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--fca-green), var(--fca-green-2));
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--fca-transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fca-super-tools button:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: var(--fca-shadow-sm);
}

/* Estado / contador */
.fca-status {
    background: var(--fca-soft);
    border-radius: 60px;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    color: #0b5e42;
    border: 1px solid #bbf7d0;
    margin: 10px 0 20px;
    display: inline-block;
    width: auto;
}

/* ============================================================
   4. TARJETAS DE JUGADORES (GRID)
   ============================================================ */
.fca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.fca-card {
    background: white;
    border-radius: var(--fca-radius-card);
    border: 1px solid var(--fca-line);
    padding: 20px;
    transition: var(--fca-transition);
    box-shadow: var(--fca-shadow-sm);
    position: relative;
    overflow: hidden;
}

.fca-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--fca-green), var(--fca-gold), var(--fca-green-2));
}

.fca-card:hover {
    transform: translateY(-5px);
    border-color: #b8e0c9;
    box-shadow: var(--fca-shadow-lg);
}

.fca-card-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

.fca-avatar {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    background: linear-gradient(145deg, var(--fca-green-light), white);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--fca-green);
    border: 1px solid var(--fca-line);
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.02);
}

.fca-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fca-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: var(--fca-ink);
    line-height: 1.2;
}

.fca-card p {
    margin: 5px 0 0;
    color: var(--fca-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Ratings dentro de tarjeta */
.fca-card-ratings {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.fca-card-ratings span {
    background: var(--fca-soft);
    border-radius: 40px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #14532d;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #bbf7d0;
}

.fca-card-ratings b {
    font-size: 1.2rem;
    color: var(--fca-green);
    margin-right: 4px;
}

.fca-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fca-card-meta span {
    background: #f8fafc;
    border-radius: 40px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.fca-card-actions button,
.fca-open {
    width: 100%;
    background: linear-gradient(135deg, var(--fca-green), var(--fca-green-2));
    border: none;
    border-radius: 40px;
    padding: 12px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: var(--fca-transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fca-card-actions button:hover {
    transform: scale(0.98);
    filter: brightness(1.05);
}

/* ============================================================
   5. PAGINACIÓN
   ============================================================ */
.fca-pages {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.fca-pages button {
    background: white;
    border: 1px solid var(--fca-line);
    border-radius: 40px;
    padding: 10px 18px;
    font-weight: 700;
    color: var(--fca-green);
    cursor: pointer;
    transition: var(--fca-transition);
}

.fca-pages button:hover:not(:disabled) {
    background: var(--fca-green);
    color: white;
    border-color: var(--fca-green);
}

.fca-pages button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fca-pages span {
    background: var(--fca-soft);
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 700;
    color: #14532d;
}

/* ============================================================
   6. MODAL (ficha completa)
   ============================================================ */
.fca-modal[hidden] {
    display: none !important;
}

.fca-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    background: rgba(2, 20, 12, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 20px;
    transition: backdrop-filter 0.2s;
}

.fca-modal-box {
    background: white;
    width: min(96vw, 1280px);
    max-height: 90vh;
    border-radius: 40px;
    overflow: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeSlideUp 0.25s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fca-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fee2e2;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.1s;
    z-index: 100;
}

.fca-close:hover {
    background: #fecaca;
    transform: scale(1.05);
}

/* ============================================================
   7. PERFIL - LAYOUT BICOLUMNA (dentro del modal)
   ============================================================ */
.fca-profile-shell-clean {
    display: flex;
    min-height: 65vh;
}

.fca-profile-side-clean {
    flex: 0 0 320px;
    background: linear-gradient(145deg, #064e35, #087241);
    color: white;
    padding: 32px 24px;
    text-align: center;
    border-radius: 40px 0 0 40px;
}

.fca-profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 800;
    color: var(--fca-green);
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.4);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.fca-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fca-profile-side-clean h2 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.05;
    font-weight: 900;
    margin: 12px 0 8px;
    color: white;
    letter-spacing: -0.025em;
}

.fca-profile-side-clean p {
    opacity: 0.85;
    margin-bottom: 20px;
    color: white;
}

.fca-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.fca-profile-badges span {
    background: rgba(255,255,255,0.15);
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

.fca-profile-side-ratings {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.fca-profile-side-ratings div {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 10px;
    min-width: 70px;
}

.fca-profile-side-ratings span {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.fca-profile-side-ratings b {
    font-size: 1.4rem;
    font-weight: 800;
}

.fca-profile-main-clean {
    flex: 1;
    padding: 30px 34px;
    background: #fff;
    border-radius: 0 40px 40px 0;
    overflow-y: auto;
}

/* ============================================================
   8. TABS Y PANELES (dentro del modal)
   ============================================================ */
.fca-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--fca-line);
    padding-bottom: 6px;
}

.fca-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fca-muted);
    cursor: pointer;
    transition: var(--fca-transition);
    border-radius: 60px;
}

.fca-tab:hover {
    color: var(--fca-green);
    background: var(--fca-soft);
}

.fca-tab.active {
    background: linear-gradient(135deg, var(--fca-green), var(--fca-green-2));
    color: white;
    box-shadow: 0 5px 14px rgba(6,78,53,0.24);
}

/* Paneles */
.fca-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.fca-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ============================================================
   9. CONTENIDO DE LAS PESTAÑAS (campos, ratings, tablas, QR)
   ============================================================ */
.fca-profile-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.fca-profile-rating {
    flex: 1 1 180px;
    background: var(--fca-soft);
    border-radius: 28px;
    padding: 24px 12px;
    text-align: center;
    border: 1px solid #bbf7d0;
}

.fca-profile-rating span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #166534;
}

.fca-profile-rating strong {
    font-size: clamp(2.7rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    color: var(--fca-ink);
    display: block;
    margin-top: 8px;
    letter-spacing: -0.035em;
}

.fca-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.fca-field {
    flex: 1 1 240px;
    background: #fefefe;
    border: 1px solid var(--fca-line);
    border-radius: 24px;
    padding: 16px 18px;
    transition: var(--fca-transition);
}

.fca-field:hover {
    border-color: var(--fca-green-2);
    background: white;
    box-shadow: var(--fca-shadow-sm);
}

.fca-field small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fca-muted);
    font-weight: 700;
}

.fca-field strong {
    font-size: 1.2rem;
    color: var(--fca-ink);
    margin-top: 6px;
    display: block;
    font-weight: 800;
    word-break: break-word;
}

/* Tabla de torneos */
.fca-data-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--fca-line);
}

.fca-data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.fca-data-table th,
.fca-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #edf2ef;
}

.fca-data-table th {
    background: #f5faf7;
    font-weight: 800;
    color: var(--fca-green);
}

/* Acciones dentro del modal */
.fca-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.fca-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fca-green);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--fca-transition);
}

.fca-btn:hover {
    background: var(--fca-green-2);
    transform: translateY(-2px);
}

/* QR y carnet */
.fca-carnet-qr-panel {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--fca-soft);
    border-radius: 28px;
    padding: 24px;
    flex-wrap: wrap;
}

.fca-profile-qr {
    background: white;
    border-radius: 24px;
    padding: 16px;
    text-align: center;
    min-width: 160px;
    box-shadow: var(--fca-shadow-sm);
}

.fca-profile-qr strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--fca-green);
}

/* Mensajes vacíos */
.fca-empty {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 28px;
    color: var(--fca-muted);
    font-weight: 600;
    border: 1px dashed var(--fca-line);
}

/* ============================================================
   10. FORMULARIO FRONTAL (shortcode)
   ============================================================ */
.fca-bd-front-form {
    max-width: 980px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid var(--fca-line);
    border-radius: 32px;
    padding: 28px;
    box-shadow: var(--fca-shadow-md);
}

.fca-bd-front-form h2 {
    margin: 0 0 8px;
    color: var(--fca-green);
    font-size: 32px;
    font-weight: 900;
}

.fca-bd-front-form p {
    color: var(--fca-muted);
    font-weight: 600;
    margin-bottom: 24px;
}

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

.fca-bd-front-form label {
    display: block;
    background: #f7fbf8;
    border: 1px solid #e1eee6;
    border-radius: 20px;
    padding: 14px;
    font-weight: 800;
    color: var(--fca-green);
}

.fca-bd-front-form input,
.fca-bd-front-form textarea {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d6e5dc;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    font-family: inherit;
}

.fca-bd-front-form .wide {
    grid-column: 1 / -1;
}

.fca-bd-submit {
    background: var(--fca-green);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px 24px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--fca-transition);
    width: auto;
    display: inline-block;
}

.fca-bd-submit:hover {
    background: var(--fca-green-2);
    transform: translateY(-2px);
}

.fca-bd-form-msg {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 20px;
    padding: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ============================================================
   11. RESPONSIVE (mobile first)
   ============================================================ */
@media (max-width: 980px) {
    .fca-super-tools {
        flex-direction: column;
        align-items: stretch;
    }
    .fca-super-tools label,
    .fca-super-tools button {
        justify-content: center;
    }
    .fca-profile-shell-clean {
        flex-direction: column;
    }
    .fca-profile-side-clean {
        border-radius: 40px 40px 0 0;
        width: 100%;
        flex: auto;
    }
    .fca-profile-main-clean {
        border-radius: 0 0 40px 40px;
        padding: 24px;
    }
    .fca-tabs {
        justify-content: center;
    }
    .fca-bd-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .fca-super-app,
    #fcaSuperBD,
    .fca440-app,
    .fca-bd-wrap,
    .fca-bd-front-form {
        padding: 16px;
        border-radius: 24px;
    }
    .fca-super-head {
        padding: 24px;
    }
    .fca-grid {
        grid-template-columns: 1fr;
    }
    .fca-card-top {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .fca-card-ratings span {
        flex: 1;
        justify-content: center;
    }
    .fca-bd-form-grid {
        grid-template-columns: 1fr;
    }
    .fca-carnet-qr-panel {
        flex-direction: column;
        text-align: center;
    }
    .fca-profile-side-ratings {
        flex-wrap: wrap;
    }
}

/* ============================================================
   12. UTILIDADES Y MEJORAS ADICIONALES
   ============================================================ */
/* Asegurar que los tabs sean clickeables siempre */
.fca-tab {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
}

/* Botones de acción generales */
button:active {
    transform: scale(0.98);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Focus visible para accesibilidad */
:focus-visible {
    outline: 2px solid var(--fca-green-2);
    outline-offset: 2px;
}

/* Bloquear scroll del body cuando el modal está abierto */
body.fca-modal-open {
    overflow: hidden;
}

/* ============================================================
   FIN - FCA Players PRO 4.7.0 PRO ELITE Frontend CSS
   ============================================================ */

/* ============================================================
   13. AJUSTES FINALES FCA 4.6.4 CORREGIDO
   ============================================================ */

.fca-super-app button,
.fca-modal button,
.fca-bd-front-form button {
    font-family: inherit;
}

.fca-profile-side-clean,
.fca-profile-side-clean * {
    color: #ffffff;
}

.fca-profile-main-clean {
    border-left: 1px solid rgba(6,78,53,0.08);
}

.fca-field strong,
.fca-profile-field b,
.fca-profile-field strong {
    word-break: break-word;
}

body.fca-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .fca-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .fca-tab {
        width: 100%;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Recomendado en JS al abrir/cerrar modal:
document.body.classList.toggle('fca-modal-open', !modal.hidden);
*/


/* ============================================================
   4.7.0 PRO ELITE · AISLAMIENTO, TOOLBAR COMPACTA Y MODAL PRO
   ============================================================ */
#fcaSuperBD.fca470-pro-elite{
    width:min(100%,1280px);
    padding:18px;
    border-radius:26px;
    background:linear-gradient(180deg,#f8fff9 0%,#ffffff 55%,#f3fbf6 100%);
    isolation:isolate;
    overflow:hidden;
}
#fcaSuperBD .fca-kicker{
    display:inline-flex;align-items:center;gap:8px;
    margin-bottom:10px;padding:6px 12px;border-radius:999px;
    background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);
    color:#e7fff0;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;
}
#fcaSuperBD .fca-super-head{padding:24px 28px;border-radius:24px;margin-bottom:14px}
#fcaSuperBD .fca-super-head h3{font-size:clamp(28px,4vw,46px);margin-bottom:8px}
#fcaSuperBD .fca-super-head p{font-size:1rem;opacity:.96}
#fcaSuperBD .fca-super-tools{
    flex-wrap:nowrap!important;gap:8px;align-items:center;
    padding:10px;border-radius:20px;margin:14px 0;
    overflow-x:auto;scrollbar-width:thin;background:#fff;
}
#fcaSuperBD .fca-super-tools input,
#fcaSuperBD .fca-super-tools select,
#fcaSuperBD .fca-super-tools button,
#fcaSuperBD .fca-super-tools label{
    height:40px!important;min-height:40px;border-radius:14px!important;
    font-size:.88rem!important;white-space:nowrap;flex:0 0 auto!important;
}
#fcaSuperBD #fcaSearch{flex:0 0 25%!important;min-width:220px;max-width:340px}
#fcaSuperBD #fcaLiga{width:150px}#fcaSuperBD #fcaTitulo{width:120px}#fcaSuperBD #fcaSexo{width:120px}#fcaSuperBD #fcaPerPage{width:86px}
#fcaSuperBD .fca-super-tools label{padding:0 10px;background:#f0fdf4;border:1px solid #cfead7;color:#14532d;font-weight:700}
#fcaSuperBD .fca-super-tools button{padding:0 13px;border:0;background:#0b6b43;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(6,78,53,.14)}
#fcaSuperBD #fcaResetFilters{background:#eef8f1;color:#14532d;border:1px solid #cfead7;box-shadow:none}
#fcaSuperBD .fca-status{border-radius:16px;background:#f7fff9;border:1px solid #d7ecd9;padding:10px 14px;font-weight:700;color:#23543a}
#fcaSuperBD .fca-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:14px}
#fcaSuperBD .fca-card{border-radius:20px!important;padding:14px!important;border:1px solid #d9ebdd;background:#fff;box-shadow:0 12px 26px rgba(6,78,53,.08);transition:transform .18s ease, box-shadow .18s ease}
#fcaSuperBD .fca-card:hover{transform:translateY(-2px);box-shadow:0 20px 34px rgba(6,78,53,.12)}
#fcaSuperBD .fca-avatar{width:52px!important;height:52px!important;border-radius:16px!important;background:linear-gradient(135deg,#0b6b43,#18a05f);color:#fff;font-size:1.35rem;font-weight:900;display:grid;place-items:center;overflow:hidden;flex:0 0 52px}
#fcaSuperBD .fca-avatar img{width:100%;height:100%;object-fit:cover}
#fcaSuperBD .fca-card-top{display:flex;gap:12px;align-items:center}
#fcaSuperBD .fca-card h3{font-size:1rem!important;line-height:1.15;margin:0;color:#10231a}
#fcaSuperBD .fca-card p{font-size:.82rem;margin:3px 0 0;color:#526371}
#fcaSuperBD .fca-card-ratings{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}
#fcaSuperBD .fca-card-ratings span{background:#f3faf5;border:1px solid #d7ecd9;border-radius:14px;padding:8px;text-align:center;font-size:.72rem;color:#526371;font-weight:800}
#fcaSuperBD .fca-card-ratings b{display:block;color:#064e35;font-size:1rem;margin-top:2px}
#fcaSuperBD .fca-card-meta{display:flex;gap:6px;flex-wrap:wrap;font-size:.78rem;color:#475569}
#fcaSuperBD .fca-card-meta span{background:#fff;border:1px solid #e3eee6;border-radius:999px;padding:5px 8px}
#fcaSuperBD .fca-card-actions{margin-top:12px}
#fcaSuperBD .fca-open{width:100%;height:38px;border-radius:14px;border:0;background:#0b6b43;color:white;font-weight:900;cursor:pointer}
#fcaSuperBD .fca-pages{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:16px;flex-wrap:wrap}
#fcaSuperBD .fca-pages button{border:0;border-radius:14px;background:#0b6b43;color:#fff;padding:9px 14px;font-weight:800;cursor:pointer}
#fcaSuperBD .fca-pages button:disabled{opacity:.45;cursor:not-allowed}
#fcaSuperBD .fca-modal{position:fixed;inset:0;background:rgba(6,30,20,.58);z-index:999999;display:grid;place-items:center;padding:18px;backdrop-filter:blur(5px)}
#fcaSuperBD .fca-modal[hidden]{display:none!important}
#fcaSuperBD .fca-modal-box{width:min(1040px,96vw);max-height:92vh;overflow:auto;border-radius:26px;background:#fff;border:1px solid #d9ebdd;box-shadow:0 28px 80px rgba(0,0,0,.28);position:relative;padding:0}
#fcaSuperBD .fca-close{position:sticky;top:12px;float:right;margin:12px 12px 0 0;z-index:5;width:38px;height:38px;border-radius:999px;border:0;background:#0b6b43;color:#fff;font-size:26px;line-height:1;cursor:pointer}
#fcaSuperBD .fca-profile-shell-clean{display:grid;grid-template-columns:300px 1fr;min-height:560px}
#fcaSuperBD .fca-profile-side-clean{background:linear-gradient(180deg,#064e35,#0b6b43);color:#fff;padding:28px;text-align:center}
#fcaSuperBD .fca-profile-avatar{width:132px;height:132px;margin:0 auto 16px;border-radius:32px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;font-size:3rem;font-weight:900;overflow:hidden}
#fcaSuperBD .fca-profile-avatar img{width:100%;height:100%;object-fit:cover}
#fcaSuperBD .fca-profile-side-clean h2{color:#fff;font-size:1.45rem;line-height:1.1;margin:0 0 6px}
#fcaSuperBD .fca-profile-side-clean p{color:#dff8e8;margin:0 0 12px}
#fcaSuperBD .fca-profile-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:14px 0}
#fcaSuperBD .fca-profile-badges span{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 9px;font-weight:800;font-size:.78rem}
#fcaSuperBD .fca-profile-side-ratings{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px}
#fcaSuperBD .fca-profile-side-ratings div{background:rgba(255,255,255,.12);border-radius:16px;padding:10px 6px}
#fcaSuperBD .fca-profile-side-ratings span{display:block;font-size:.68rem;opacity:.9;font-weight:800}#fcaSuperBD .fca-profile-side-ratings b{font-size:1.1rem}
#fcaSuperBD .fca-profile-main-clean{padding:28px;background:#fbfffc}
#fcaSuperBD .fca-profile-title-clean span{color:#0b6b43;font-weight:900;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}
#fcaSuperBD .fca-profile-title-clean h2{font-size:2rem;line-height:1.05;margin:4px 0;color:#10231a}
#fcaSuperBD .fca-profile-title-clean p{margin:0 0 16px;color:#526371}
#fcaSuperBD .fca-tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid #d9ebdd;padding-bottom:8px;margin-bottom:16px}
#fcaSuperBD .fca-tab{border:1px solid #d9ebdd;background:#fff;color:#14532d;border-radius:999px;padding:8px 12px;font-weight:900;white-space:nowrap;cursor:pointer}
#fcaSuperBD .fca-tab.active{background:#0b6b43;color:#fff;border-color:#0b6b43}
#fcaSuperBD .fca-profile-ratings{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
#fcaSuperBD .fca-profile-rating,#fcaSuperBD .fca-field{background:#fff;border:1px solid #d9ebdd;border-radius:16px;padding:12px}
#fcaSuperBD .fca-profile-rating span,#fcaSuperBD .fca-field small{display:block;color:#64748b;font-weight:800;font-size:.72rem;text-transform:uppercase}
#fcaSuperBD .fca-profile-rating strong,#fcaSuperBD .fca-field strong{display:block;color:#064e35;font-size:1.05rem;word-break:break-word}
#fcaSuperBD .fca-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#fcaSuperBD .fca-actions{display:flex;gap:8px;flex-wrap:wrap}.fca-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:#0b6b43;color:#fff!important;text-decoration:none;padding:9px 12px;font-weight:900}
#fcaSuperBD .fca-data-table-wrap{overflow:auto;background:#fff;border-radius:18px;border:1px solid #d9ebdd}#fcaSuperBD .fca-data-table{width:100%;border-collapse:collapse}#fcaSuperBD .fca-data-table th,#fcaSuperBD .fca-data-table td{padding:10px;border-bottom:1px solid #edf4ef;text-align:left;font-size:.88rem}
#fcaSuperBD .fca-carnet-qr-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #d9ebdd;border-radius:18px;padding:16px}
#fcaSuperBD .fca-profile-qr{width:96px;height:96px;border-radius:18px;background:repeating-linear-gradient(45deg,#0b6b43 0 6px,#fff 6px 12px);display:grid;place-items:center;color:#0b3d2c;font-weight:900;border:4px solid #fff;box-shadow:0 0 0 1px #d9ebdd}
@media(max-width:760px){#fcaSuperBD{padding:10px;border-radius:18px}#fcaSuperBD #fcaSearch{flex-basis:72%!important;min-width:210px}#fcaSuperBD .fca-super-head{padding:20px}#fcaSuperBD .fca-profile-shell-clean{grid-template-columns:1fr}#fcaSuperBD .fca-profile-side-clean{padding:22px}#fcaSuperBD .fca-profile-main-clean{padding:18px}#fcaSuperBD .fca-fields,#fcaSuperBD .fca-profile-ratings{grid-template-columns:1fr}#fcaSuperBD .fca-modal{padding:8px}#fcaSuperBD .fca-modal-box{width:98vw;max-height:94vh;border-radius:20px}}

/* 4.9.2 · Foto y carnet robustos */
#fcaSuperBD .fca-avatar,
#fcaSuperBD .fca-profile-avatar{position:relative}
#fcaSuperBD .fca-avatar-fallback{position:absolute;inset:0;display:grid;place-items:center;z-index:0}
#fcaSuperBD .fca-avatar img,
#fcaSuperBD .fca-profile-avatar img{position:relative;z-index:1;background:#eaf3ed}
#fcaSuperBD .fca-btn[disabled]{opacity:.5;cursor:not-allowed}

/* 5.0.0 · Ficha única */
#fcaSuperBD .fca-profile-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#fcaSuperBD .fca-profile-primary-actions .fca-btn:last-child{grid-column:1/-1}
#fcaSuperBD .fca-btn.secondary{background:#fff!important;color:#155d3b!important;border:1px solid #b8d3c3!important}
#fcaSuperBD .fca-document-list{display:grid;gap:8px}
#fcaSuperBD .fca-document-list a{display:block;padding:11px;border:1px solid #dbe6df;border-radius:10px;background:#fff;text-decoration:none;color:#173f73}
#fcaSuperBD .fca-document-list b,#fcaSuperBD .fca-document-list small{display:block}
#fcaSuperBD .fca-document-list small{margin-top:3px;color:#667085}

/* 5.0.1 · Consulta bajo demanda */
#fcaSuperBD .fca-search-command{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:7px;
  min-width:min(100%,420px);
}
#fcaSuperBD .fca-search-command input{
  width:100%;
  min-width:0;
}
#fcaSuperBD .fca-search-command button{
  border:0;
  border-radius:9px;
  padding:0 16px;
  background:#17643d;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
#fcaSuperBD .fca-search-command button:disabled{
  opacity:.65;
  cursor:wait;
}
#fcaSuperBD .fca-pages button.active{
  background:#17643d;
  color:#fff;
}
@media(max-width:700px){
  #fcaSuperBD .fca-search-command{grid-template-columns:1fr}
  #fcaSuperBD .fca-search-command button{min-height:42px}
}

/* 5.0.4 · Copiar y exportar */
#fcaSuperBD .fca-export-menu{position:relative}
#fcaSuperBD .fca-export-menu>button{
  min-height:40px;border:1px solid #b8cfc0;border-radius:9px;padding:0 12px;
  background:#fff;color:#155d3b;font-weight:800;cursor:pointer
}
#fcaSuperBD .fca-export-options{
  position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:225px;
  padding:6px;border:1px solid #d4e1d8;border-radius:11px;background:#fff;
  box-shadow:0 14px 35px rgba(15,23,42,.16)
}
#fcaSuperBD .fca-export-options button{
  display:block;width:100%;padding:9px 10px;border:0;border-radius:7px;
  background:#fff;text-align:left;color:#263b30;font-weight:700;cursor:pointer
}
#fcaSuperBD .fca-export-options button:hover{background:#edf7f1;color:#155d3b}
#fcaSuperBD .fca-profile-copy-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
#fcaSuperBD .fca-profile-copy-actions button{
  border:1px solid #cad9cf;border-radius:8px;padding:7px 9px;background:#fff;
  color:#174a86;font-size:11px;font-weight:800;cursor:pointer
}
#fcaSuperBD .fca-profile-copy-actions button:hover{background:#eef5ff}

/* 5.0.5 · Foto restaurada y edición real */
#fcaSuperBD .fca-avatar img{
  width:100%;height:100%;object-fit:cover;border-radius:inherit
}
#fcaSuperBD .fca-card .fca-avatar{
  overflow:hidden;background:#eaf3ed
}


/* 5.1.0 · Ficha Única integrada */
#fcaSuperBD .fca-profile-v510{grid-template-columns:280px minmax(0,1fr)}
#fcaSuperBD .fca-profile-v510 .fca-profile-main-clean{min-width:0}
#fcaSuperBD .fca-profile-primary-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
#fcaSuperBD .fca-profile-primary-actions .fca-btn{width:100%!important;justify-content:center!important}
#fcaSuperBD .fca-tabs{position:sticky;top:0;z-index:4;display:flex!important;gap:6px!important;overflow-x:auto!important;padding:10px 0!important;background:#fbfffc!important;border-bottom:1px solid #dce9e0!important}
#fcaSuperBD .fca-tab{flex:0 0 auto!important;min-height:40px!important;padding:0 14px!important;border:1px solid #d5e4da!important;border-radius:9px!important;background:#fff!important;color:#314659!important;font-weight:850!important}
#fcaSuperBD .fca-tab:hover{background:#edf7f0!important;color:#0a5634!important}
#fcaSuperBD .fca-tab.active{background:#0b6b43!important;border-color:#0b6b43!important;color:#fff!important}
#fcaSuperBD .fca-panels{padding-top:16px}
#fcaSuperBD .fca-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#fcaSuperBD .fca-carnet-summary{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;align-items:center;padding:18px;border:1px solid #cfe3d6;border-radius:14px;background:#f3faf5}
#fcaSuperBD .fca-carnet-status-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:14px;background:#0b6b43;color:#fff;font-size:28px}
#fcaSuperBD .fca-carnet-summary span{font-size:10px;font-weight:900;text-transform:uppercase;color:#5e7181}
#fcaSuperBD .fca-carnet-summary h3{margin:4px 0;color:#103d2a;font-size:21px}
#fcaSuperBD .fca-carnet-summary p{margin:0;color:#5f6f7e}
#fcaSuperBD .fca-integrated-actions{margin-top:14px!important}
#fcaSuperBD .fca-integration-note{margin:10px 0 0;color:#67788a;font-size:11px}
#fcaSuperBD .fca-admin-sections{display:grid;gap:18px}
#fcaSuperBD .fca-admin-sections>section{padding:15px;border:1px solid #dce8e0;border-radius:13px;background:#fff}
#fcaSuperBD .fca-admin-sections h3{margin:0 0 12px;color:#103d2a}
#fcaSuperBD .fca-timeline{position:relative;padding-left:24px}
#fcaSuperBD .fca-timeline::before{content:"";position:absolute;left:7px;top:8px;bottom:8px;width:2px;background:#cfe3d6}
#fcaSuperBD .fca-timeline article{position:relative;display:grid;grid-template-columns:105px minmax(0,1fr);gap:14px;margin-bottom:14px;padding:13px;border:1px solid #dce8e0;border-radius:12px;background:#fff}
#fcaSuperBD .fca-timeline article::before{content:"";position:absolute;left:-22px;top:19px;width:12px;height:12px;border-radius:50%;background:#0b6b43;border:3px solid #eaf5ed}
#fcaSuperBD .fca-timeline time{font-size:10px;font-weight:850;color:#5e7181}
#fcaSuperBD .fca-timeline span,#fcaSuperBD .fca-timeline b,#fcaSuperBD .fca-timeline small{display:block}
#fcaSuperBD .fca-timeline span{font-size:9px;text-transform:uppercase;color:#0b6b43;font-weight:900}
#fcaSuperBD .fca-timeline b{margin:3px 0;color:#22394c}
#fcaSuperBD .fca-timeline small{color:#6f7f8d}
@media(max-width:900px){
  #fcaSuperBD .fca-profile-v510{grid-template-columns:1fr!important}
}
@media(max-width:640px){
  #fcaSuperBD .fca-profile-grid{grid-template-columns:1fr!important}
  #fcaSuperBD .fca-timeline article{grid-template-columns:1fr}
}


/* 5.1.1 · Inscripción pendiente */
#fcaSuperBD .fca-btn.disabled{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  padding:0 14px!important;
  border:1px dashed #aeb9c5!important;
  border-radius:9px!important;
  background:#f2f4f6!important;
  color:#7b8794!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
}


/* ============================================================
   5.2.0 · Expediente Único FCA
   ============================================================ */
#fcaSuperBD .fca-profile-v520{
  grid-template-columns:250px minmax(0,1fr)!important;
}
#fcaSuperBD .fca-side-compact{
  min-height:100%!important;
  padding:26px 22px!important;
}
#fcaSuperBD .fca-side-compact .fca-profile-avatar{
  width:130px!important;
  height:130px!important;
  margin:0 auto 16px!important;
}
#fcaSuperBD .fca-side-compact h2{
  margin:0!important;
  font-size:1.6rem!important;
}
#fcaSuperBD .fca-side-compact p{
  margin:6px 0 14px!important;
}
#fcaSuperBD .fca-side-carnet-state{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.11);
}
#fcaSuperBD .fca-side-carnet-state span{
  color:#d8eee2;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
}
#fcaSuperBD .fca-side-carnet-state b{
  color:#fff;
}
#fcaSuperBD .fca-side-edit{
  width:100%!important;
  margin-top:18px!important;
  background:#fff!important;
  color:#0b5f3b!important;
  justify-content:center!important;
}

#fcaSuperBD .fca-profile-title-520{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
}
#fcaSuperBD .fca-expediente-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
#fcaSuperBD .fca-export-dropdown{
  position:relative;
}
#fcaSuperBD .fca-export-dropdown-menu{
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  z-index:40;
  min-width:190px;
  padding:7px;
  border:1px solid #d6e3db;
  border-radius:11px;
  background:#fff;
  box-shadow:0 14px 32px rgba(17,62,37,.15);
}
#fcaSuperBD .fca-export-dropdown-menu button{
  width:100%;
  padding:9px 11px;
  border:0;
  border-radius:8px;
  background:#fff;
  color:#263d31;
  text-align:left;
  font-weight:800;
  cursor:pointer;
}
#fcaSuperBD .fca-export-dropdown-menu button:hover{
  background:#edf7f1;
  color:#0b5f3b;
}

#fcaSuperBD .fca-profile-grid-compact{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
#fcaSuperBD .fca-profile-grid-compact .fca-field{
  min-height:88px!important;
  padding:13px!important;
}

#fcaSuperBD .fca-ratings-grid-520{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
#fcaSuperBD .fca-ratings-grid-520 .fca-rating{
  min-height:110px!important;
  border:1px solid #d6e4dc!important;
  border-radius:14px!important;
  background:#fff!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  text-align:center!important;
}

#fcaSuperBD .fca-carnet-preview{
  display:grid;
  gap:14px;
}
#fcaSuperBD .fca-carnet-preview__visual{
  overflow:hidden;
  border:1px solid #cfe2d6;
  border-radius:18px;
  background:linear-gradient(135deg,#0d6840,#0a4d31);
  color:#fff;
  box-shadow:0 12px 30px rgba(13,80,48,.14);
}
#fcaSuperBD .fca-carnet-preview__top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 17px;
  border-bottom:1px solid rgba(255,255,255,.18);
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
}
#fcaSuperBD .fca-carnet-preview__body{
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  align-items:center;
  gap:18px;
  padding:20px;
}
#fcaSuperBD .fca-carnet-preview__photo{
  width:130px;
  height:150px;
  overflow:hidden;
  border-radius:14px;
  background:rgba(255,255,255,.12);
}
#fcaSuperBD .fca-carnet-preview__photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
#fcaSuperBD .fca-carnet-preview__body h3{
  margin:0 0 8px;
  color:#fff;
  font-size:1.75rem;
}
#fcaSuperBD .fca-carnet-preview__body p{
  margin:4px 0;
  color:#e1f1e8;
}
#fcaSuperBD .fca-carnet-preview__body span{
  display:inline-flex;
  margin-top:10px;
  padding:5px 9px;
  border-radius:999px;
  background:#dff7e7;
  color:#0a5c35;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
#fcaSuperBD .fca-carnet-preview__body small{
  display:block;
  margin-top:7px;
  color:#e4f2e9;
}

@media(max-width:900px){
  #fcaSuperBD .fca-profile-v520{
    grid-template-columns:1fr!important;
  }
  #fcaSuperBD .fca-profile-title-520{
    flex-direction:column!important;
  }
  #fcaSuperBD .fca-expediente-actions{
    justify-content:flex-start;
  }
}

/* 5.2.3 · Edición directa de la ficha */
#fcaSuperBD .fca-side-edit{
  border:1px solid rgba(255,255,255,.7)!important;
  cursor:pointer!important;
}
#fcaSuperBD .fca-inline-editor{
  display:grid;
  gap:16px;
}
#fcaSuperBD .fca-inline-editor__head{
  padding:15px 17px;
  border-left:5px solid #0b6b43;
  border-radius:12px;
  background:#edf7f1;
}
#fcaSuperBD .fca-inline-editor__head span{
  color:#0b6b43;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
#fcaSuperBD .fca-inline-editor__head h3{
  margin:3px 0;
  color:#143b29;
  font-size:21px;
}
#fcaSuperBD .fca-inline-editor__head p{margin:0;color:#62736a}
#fcaSuperBD .fca-inline-editor__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
#fcaSuperBD .fca-inline-editor__grid label>span{
  display:block;
  margin-bottom:5px;
  color:#5f7167;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
#fcaSuperBD .fca-inline-editor__grid input,
#fcaSuperBD .fca-inline-editor__grid select,
#fcaSuperBD .fca-inline-editor__grid textarea{
  display:block;
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:9px 11px!important;
  border:1px solid #cbdcd2!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#20382b!important;
  box-shadow:none!important;
}
#fcaSuperBD .fca-inline-editor__grid .wide{grid-column:1/-1}
#fcaSuperBD .fca-inline-editor__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
#fcaSuperBD .fca-inline-editor__actions [data-fca-edit-feedback]{
  margin-right:auto;
  color:#0b6b43;
  font-weight:850;
}
#fcaSuperBD .fca-inline-editor__actions a,
#fcaSuperBD .fca-inline-editor__actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid #0b6b43;
  border-radius:9px;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
}
#fcaSuperBD .fca-inline-editor__actions a{background:#fff;color:#0b6b43}
#fcaSuperBD .fca-inline-editor__actions button{background:#0b6b43;color:#fff}
#fcaSuperBD .fca-inline-editor__actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){
  #fcaSuperBD .fca-inline-editor__grid{grid-template-columns:1fr}
  #fcaSuperBD .fca-inline-editor__grid .wide{grid-column:auto}
  #fcaSuperBD .fca-inline-editor__actions{align-items:stretch;flex-direction:column}
  #fcaSuperBD .fca-inline-editor__actions [data-fca-edit-feedback]{margin-right:0}
}

/* ============================================================
   5.2.2 · Modal y fotografías aislados de estilos externos
   ============================================================ */
#fcaSuperBD .fca-modal-box{
  overflow:hidden!important;
}
#fcaSuperBD .fca-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  float:none!important;
  margin:0!important;
  z-index:60!important;
}
#fcaSuperBD .fca-profile-v520{
  width:100%!important;
  max-width:100%!important;
  max-height:92vh!important;
  min-height:min(560px,92vh)!important;
  overflow:hidden!important;
}
#fcaSuperBD .fca-profile-v520 .fca-profile-side-clean,
#fcaSuperBD .fca-profile-v520 .fca-profile-main-clean{
  min-width:0!important;
  min-height:0!important;
  max-height:92vh!important;
}
#fcaSuperBD .fca-profile-v520 .fca-profile-side-clean{
  overflow-y:auto!important;
}
#fcaSuperBD .fca-profile-v520 .fca-profile-main-clean{
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
#fcaSuperBD .fca-profile-avatar,
#fcaSuperBD .fca-carnet-preview__photo{
  position:relative!important;
  contain:layout paint!important;
  isolation:isolate!important;
  overflow:hidden!important;
}
#fcaSuperBD .fca-profile-avatar > .fca-avatar-fallback,
#fcaSuperBD .fca-carnet-preview__photo > .fca-avatar-fallback{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  border-radius:inherit!important;
  background:#dfeee5!important;
  color:#0b5f3b!important;
  line-height:1!important;
  z-index:0!important;
}
#fcaSuperBD .fca-profile-avatar > .fca-avatar-fallback{
  font-size:3rem!important;
}
#fcaSuperBD .fca-carnet-preview__photo > .fca-avatar-fallback{
  font-size:2.25rem!important;
}
#fcaSuperBD img.fca-bd-player-photo{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  float:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  transform:none!important;
  clip-path:none!important;
  z-index:1!important;
}
@media(max-width:900px){
  #fcaSuperBD .fca-profile-v520{
    display:block!important;
    overflow-y:auto!important;
  }
  #fcaSuperBD .fca-profile-v520 .fca-profile-side-clean,
  #fcaSuperBD .fca-profile-v520 .fca-profile-main-clean{
    max-height:none!important;
    overflow:visible!important;
  }
}
@media(max-width:640px){
  #fcaSuperBD .fca-profile-grid-compact,
  #fcaSuperBD .fca-ratings-grid-520{
    grid-template-columns:1fr!important;
  }
  #fcaSuperBD .fca-carnet-preview__body{
    grid-template-columns:1fr;
    text-align:center;
  }
  #fcaSuperBD .fca-carnet-preview__photo{
    margin:0 auto;
  }
}

/* 5.5.3 · alta/corrección de jugador desde frontend */
.fca-bd-front-note {
    margin: 16px 0 6px;
    padding: 13px 15px;
    border: 1px solid #bbd8c5;
    border-radius: 16px;
    background: #f1f8f4;
    color: #174c34;
    line-height: 1.45;
}
.fca-bd-front-form select {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 1px solid #d6e5dc;
    border-radius: 12px;
    padding: 8px 10px;
    background: #fff;
    font-family: inherit;
}
.fca-bd-sync-note {
    display: inline-block;
    margin: 10px 0 0 !important;
    font-size: 13px;
    font-weight: 700 !important;
    color: #456257 !important;
}
