﻿/* ==========================================================
   SOCIOS.CSS — Unificado con HABECU-theme.css / General.css
   ========================================================== */

/* === MODAL HABECU SIN OSCURECER FONDO === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-dialog {
    width: 1200px;
    max-width: 96vw;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    border: 4px solid var(--HABECU-verde-oscuro);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* Encabezado y pie del modal */
.modal-header, .modal-footer {
    background: linear-gradient(180deg, #0b320b 0%, #155815 100%);
    color: var(--HABECU-dorado);
    padding: 12px 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: sticky;
    z-index: 2;
}

.modal-header {
    top: 0;
}

.modal-footer {
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.modal-body {
    padding: 18px 20px 26px;
    background: #f7fff7;
    font-size: 14px;
}

/* ==========================================================
   LAYOUT DE FORMULARIOS SOCIOS
   ========================================================== */
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px 18px;
    margin-bottom: 16px;
}

[class^="col-"] {
    min-width: 0;
}

.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: var(--HABECU-verde-oscuro);
    margin-bottom: 6px;
}

._txt,
._ddl,
._txtBlock,
._txtNumerico,
._txtFileUpload {
    width: 100% !important;
    min-height: 28px;
    border: 1px solid #cde8cd;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 13px;
    color: #244a24;
}

.separator {
    border-top: 2px solid #cde8cd;
    margin: 12px 0 16px;
}

/* ==========================================================
   PESTAÑAS (Ajax TabControl)
   ========================================================== */
.ajax__tab_xp .ajax__tab_header {
    margin-bottom: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--HABECU-verde-oscuro);
}

/* Tab inactivo */
.ajax__tab_xp .ajax__tab_outer {
    border: 1px solid var(--HABECU-verde-oscuro);
    margin-right: 6px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #e8f5e9 0%, #d5ebd5 100%);
    height: 32px;
}

/* Tab activo */
.ajax__tab_xp .ajax__tab_active .ajax__tab_outer {
    background: linear-gradient(180deg, #b7e0b7 0%, #a5d4a5 100%);
    border-bottom: 1px solid #fff;
}

.ajax__tab_xp .ajax__tab_tab {
    padding: 7px 20px;
    font-weight: 700;
    color: #003800;
    font-size: 15px;
    text-shadow: 0 1px 0 #fff;
}

/* Cuerpo del tab */
.ajax__tab_xp .ajax__tab_body {
    background: #fff;
    border: 1px solid var(--HABECU-verde-oscuro);
    border-top: 0;
    padding: 18px;
    min-height: 520px; /* altura base (ajustable) */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   BOTONES / ENLACES
   ========================================================== */
.bt-enlace {
    background: var(--HABECU-verde-oscuro) !important;
    border-color: var(--HABECU-verde-oscuro) !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .bt-enlace:hover {
        background: var(--HABECU-verde-medio) !important;
        border-color: var(--HABECU-verde-medio) !important;
    }

/* ==========================================================
   LISTA DE SOCIOS OFICIALES
   ========================================================== */
.socios-toolbar-spacer {
    flex: 1 1 auto;
}

.ListaOpciones .socios-alerta-pendientes {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 42px;
    padding: 6px 12px 6px 10px;
    border-radius: 12px;
    border: 1px solid #9f1f1f;
    background: linear-gradient(135deg, #c43434 0%, #9f1f1f 55%, #7f1212 100%);
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(130, 17, 17, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .ListaOpciones .socios-alerta-pendientes:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(130, 17, 17, 0.28);
        filter: saturate(1.03);
    }

.socios-alerta-pendientes__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
}

    .socios-alerta-pendientes__icon i {
        font-size: 14px;
        color: #fff6d8;
    }

.socios-alerta-pendientes__text {
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
}

.socios-alerta-pendientes__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff6d8;
    color: #8c1717;
    font-size: 14px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(159, 31, 31, 0.18);
    animation: sociosPendientesPulse 1.8s ease-in-out infinite;
}

@keyframes sociosPendientesPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.socios-grid-wrap {
    overflow: auto;
    border: 1px solid #d8e6db;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(19, 56, 24, 0.08);
}

.CriterioBusqueda .vl {
    width: 1px;
    height: 28px;
    display: inline-block;
    background: #d9e7dc;
}

    .socios-grid-wrap .mGrid {
        min-width: 1320px;
        margin: 0;
    }

    .socios-grid-wrap .mGrid td,
    .socios-grid-wrap .mGrid th {
        vertical-align: middle;
    }

    .socios-grid-wrap .mGrid label {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.socios-grid-row--inactive td {
    background: #fff6f6 !important;
    color: #8b3434;
}

.pgr-rowbtn--ok i {
    color: #2e7d32;
}

    .pgr-rowbtn--ok:hover i {
        color: #1f5e24;
    }

.socios-modal-pendientes {
    width: min(1100px, 92vw);
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid #0f430f;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.socios-modal-pendientes__header {
    padding: 18px 22px;
    background: linear-gradient(180deg, #155815 0%, #0b320b 100%);
    color: #ffd86a;
}

    .socios-modal-pendientes__header h3 {
        margin: 0 0 4px;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0.25px;
    }

    .socios-modal-pendientes__header p {
        margin: 0;
        color: rgba(245, 250, 230, 0.92);
        font-size: 13px;
    }

.socios-modal-pendientes__body {
    padding: 18px 20px 12px;
    background: #f7fbf7;
    max-height: 68vh;
    overflow: auto;
}

    .socios-modal-pendientes__body .mGrid {
        margin: 0;
    }

.socios-modal-pendientes__footer {
    display: flex;
    justify-content: center;
    padding: 16px 20px 20px;
    background: #eef5ef;
    border-top: 1px solid #d7e4d9;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .row {
        grid-template-columns: repeat(6, 1fr);
    }

    .socios-toolbar-spacer {
        display: none;
    }

    .ListaOpciones .socios-alerta-pendientes {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .socios-modal-pendientes {
        width: 96vw;
    }

    .socios-modal-pendientes__header,
    .socios-modal-pendientes__body,
    .socios-modal-pendientes__footer {
        padding-left: 14px;
        padding-right: 14px;
    }
}
