﻿/* ==========================================================================
   GENERAL.CSS – HABECU
   ========================================================================== */
/* ===== Reset básico ===== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-y: hidden; /* bloquea SIEMPRE el scroll vertical */
    overflow-x: auto; /* permite scroll horizontal si hace falta */
    background: linear-gradient(180deg, #98f090 0%, #8be385 100%);
}

/* ===== Estructura principal con sticky footer ===== */
form#formone {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-container {
    flex: 0 0 auto;
}

.main-nav {
    flex: 0 0 auto;
}

.main-container {
    flex: 1 0 auto;
}
/* ocupa el alto disponible */
.footer-container {
    flex: 0 0 auto;
    margin-top: auto;
}

/* El contenido no tapa el fondo */
.main-container,
.section-container,
#contenido,
.ajax__tab_body {
    background: transparent !important;
}

/* ==========================================================================
   CABECERA
   ========================================================================== */
#cabeceraPaginaMaestra {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to right, #003800, #0a6a0a);
    color: darkgoldenrod;
    font-weight: bold;
    font-size: 30px;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    overflow: hidden;
}

.tt-cabecera {
    color: #ffd24d;
    font-weight: 700;
    font-size: 24px;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.header-logo, .header-flag {
    height: 56px !important;
    width: auto !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 8px !important;
    z-index: 2;
    display: block !important;
}

.header-logo {
    left: 12px !important;
}

.header-flag {
    right: 12px !important;
}

@media (max-width: 768px) {
    #cabeceraPaginaMaestra {
        height: 60px;
    }

    .header-logo, .header-flag {
        height: 40px !important;
        top: 10px !important;
    }

    .tt-cabecera {
        font-size: 18px;
    }
}

/* ==========================================================================
   ENLACES / TEXTO
   ========================================================================== */
p {
    margin: 0;
    text-align: left;
}

a {
    color: #356b0b;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* ==========================================================================
   MODALES (AjaxControlToolkit)
   ========================================================================== */
.FondoContenedorModal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.45) !important;
    z-index: 100000 !important;
    transform: none !important;
    will-change: auto !important;
}

.ContenedorModal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100001 !important;
    background: #fff;
    padding: 18px 22px;
    border: 4px solid #356b0b;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    text-align: center;
    min-width: 280px;
    max-width: 92vw;
}

    .ContenedorModal .modal-icon {
        display: block;
        margin: 8px auto 10px;
        width: 40px;
        height: auto;
        object-fit: contain;
    }

    .ContenedorModal .TextMdl {
        margin: 0 auto;
        max-width: 92%;
        font-size: 16px;
        line-height: 1.35;
    }

.btcMdl {
    margin-top: 10px;
    background: linear-gradient(180deg, #68b12f, #50911e);
    border: 1px solid #509111;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    padding: 8px 18px;
    text-shadow: 0 -1px 0 #396715;
    cursor: pointer;
}

    .btcMdl:hover {
        filter: brightness(1.05);
    }

/* Para la página de login, que nada bloquee los modales */
.login-page, .login-container {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
}

/* ==========================================================================
   FOOTER (3 columnas) + Loader + Mensajes
   ========================================================================== */
footer {
    border-top: 4px solid green;
    width: 100%;
    background: #0a4f0a !important;
    color: white;
    min-height: 90px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    position: relative;
    bottom: 6px; /* ⬆️ sube el footer 2px */
}

#footer-column-left,
#footer-column-center,
#footer-column-right {
    flex: 1 1 0;
    padding: 8px 12px;
}

#footer-column-left {
    text-align: left;
}

#footer-column-center {
    text-align: center;
}

#footer-column-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-container p,
p.sesion,
p.direccion {
    font-size: 15px;
    line-height: 1.5;
    color: #f3f7f0 !important;
}

    p.sesion span {
        display: block;
    }

    p.direccion span {
        display: block;
        text-align: center;
    }

.footer-right-content {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.footer-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.footer-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(180deg, rgba(150, 24, 24, 0.96) 0%, rgba(110, 14, 14, 0.96) 100%);
    color: #fff !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
}

    .footer-logout-button:hover {
        background: linear-gradient(180deg, rgba(188, 32, 32, 0.98) 0%, rgba(132, 18, 18, 0.98) 100%);
        color: #fff !important;
    }

.footer-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff4b4b;
    line-height: 0;
}

.footer-logout-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-logout-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-loader {
    width: 24px;
    height: 24px;
}

.msg-cargando-footer {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Animación de entrada suave */
@keyframes footerMsgFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensajes del pie (derecha) */
.footer-msg {
    position: relative;
    display: inline-block;
    max-width: 360px;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    margin-left: 10px;
    padding: 10px 14px 10px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    opacity: 0;
    animation: footerMsgFadeIn 0.25s ease-out forwards;
}

    /* Iconos comunes */
    .footer-msg::before {
        font-family: FontAwesome;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
    }

    /* Colores según tipo */
    .footer-msg.info {
        background: #e8f5e9;
        color: #0a4f0a;
    }

        .footer-msg.info::before {
            content: "\f05a"; /* info-circle */
            color: #0a4f0a;
        }

    .footer-msg.ok {
        background: #d4edda; /* verde suave */
        color: #155724;
    }

        .footer-msg.ok::before {
            content: "\f058"; /* check-circle */
            color: #155724;
        }

    .footer-msg.warn {
        background: #fff3cd;
        color: #856404;
    }

        .footer-msg.warn::before {
            content: "\f071"; /* exclamation-triangle */
            color: #856404;
        }

    .footer-msg.err {
        background: #f8d7da;
        color: #721c24;
    }

        .footer-msg.err::before {
            content: "\f057"; /* times-circle */
            color: #721c24;
        }

/* Responsivo: footer apilado en pantallas pequeñas */
@media (max-width: 1000px) {
    footer {
        flex-direction: column;
        gap: 6px;
    }

    #footer-column-left,
    #footer-column-center,
    #footer-column-right {
        flex-basis: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-msg {
        max-width: 90%;
        margin: 6px auto 0;
        text-align: center;
        padding-left: 36px;
    }

    .footer-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

        .footer-msg::before {
            left: 12px;
            font-size: 16px;
        }
}

/* ==========================================================================
   GRIDS / CONTROLES DE LISTA
   ========================================================================== */
.mGrid, .mGridDetalle {
    width: 100%;
    margin: 5px 0 10px 0;
    border: solid 1px #525252;
    border-collapse: collapse;
    background-color: #c1c1c1;
}

.mGrid {
    table-layout: fixed;
    width: 100%;
}

    .mGrid td.col-estado-ellipsis {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mGrid td.col-estado-badge {
        text-align: center;
    }

.hb-estado-badge,
.solicitudes-web-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.hb-estado-badge--pendiente,
.solicitudes-web-estado--pendiente {
    background: #fff4d8;
    color: #8a5a00;
}

.hb-estado-badge--revision,
.solicitudes-web-estado--documentacion {
    background: #e7f0ff;
    color: #205493;
}

.hb-estado-badge--ok,
.solicitudes-web-estado--lista {
    background: #e8f7ec;
    color: #20683a;
}

.hb-estado-badge--descartada {
    background: #eef1f4;
    color: #52606d;
}

.hb-estado-badge--error,
.solicitudes-web-estado--error {
    background: #fdeceb;
    color: #9f2d27;
}

/* (Opcional) tooltip con el texto completo: ya lo pones en RowDataBound con .Attributes("title") */

.mGridDetalle {
    height: 40px;
}

    .mGrid td, .mGridDetalle td {
        padding: 5px;
        border: solid 1px #c1c1c1;
        color: #000;
    }

    .mGrid th, .mGridDetalle th {
        color: #356b0b;
        background: #bae0b8;
        border-left: solid 1px #525252;
        text-align: center;
        text-decoration: none;
    }

.mGrid th {
    padding: 4px 2px;
    font-size: 1.1em;
    height: 48px;
}

.mGridDetalle th {
    padding: 2px;
    font-size: 1em;
    height: 1px;
}

.mGrid .alt, .mGridDetalle .alt {
    background: #fcfcfc;
}

.mGrid .pgr, .mGridDetalle .pgr {
    background: #bae0b8;
}

    .mGrid .pgr td, .mGridDetalle .pgr td {
        border-width: 0;
        padding: 0 6px;
        border-left: solid 1px #666;
        font-weight: bold;
        color: #fff;
        line-height: 12px;
    }

.mGrid a, .mGridDetalle a {
    color: #356b0b;
    text-decoration: none;
}
.mGrid td:last-child,
.mGrid td:nth-last-child(2),
.mGrid td:nth-last-child(3) {
    text-align: center;
    width: 50px !important;
    padding: 4px;
}

/* ===============================
   HABECU - FILA SELECCIONADA GRID
   =============================== */
.mGridDetalle tr.selected-row {
    background-color: #0b3d1b !important; /* verde institucional */
    color: white !important;
}

    .mGridDetalle tr.selected-row a {
        color: white !important;
    }

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
.formateaLeyenda {
    background-color: green;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 13px;
    display: inline-block;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 16px;
}

    .toggle-password:hover {
        color: #000;
    }

/* ==========================================================================
   CABECERA LISTAS + ACCIONES
   ========================================================================== */

/* Banda con el título de la lista */
/* ==========================================================================
   CORRECCIÓN DE ALINEACIÓN DEL TÍTULO EN CABECERA DE LISTAS
   ========================================================================== */
.Cabecera {
    height: 46px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
}

    .Cabecera > label,
    .Cabecera > span {
        display: inline-block !important;
        padding: 0 24px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        position: relative;
        top: -1px; /* 🔧 Sube el texto 1px exacto */
    }

/* Barra de iconos (añadir/refresh/imprimir/excel) */
.ListaOpciones {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 10px;
    padding: 8px 10px;
    background: #f8fbf7;
    border: 1px solid #cfe2d3;
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}

    .ListaOpciones .vl {
        width: 1px;
        height: 28px;
        display: inline-block;
        background: #d9e7dc;
    }

    .ListaOpciones .pgr,
    .ListaOpciones .pgr_transparente {
        background: #fff;
        border: 1px solid #d8e6db;
        border-radius: 9px;
        padding: 4px;
        transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    }

        .ListaOpciones .pgr:hover,
        .ListaOpciones .pgr_transparente:hover {
            background: #f3faf5;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(0,0,0,.15);
        }

/* Fila de filtros */
.CriterioBusqueda {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #fdfefc;
    border: 1px solid #e4efe7;
    border-radius: 10px;
}

    .CriterioBusqueda label {
        font-weight: 600;
        color: #234b2c;
    }

    .CriterioBusqueda .dropdown,
    .CriterioBusqueda .TextBox {
        background: #fff;
        border: 1px solid #c8ddcd;
        border-radius: 6px;
        padding: 4px 8px;
        height: 30px;
    }

.Cabecera {
    padding: 12px 16px;
}

    .Cabecera > span, .Cabecera > label {
        font-size: 19px;
    }

.CriterioBusqueda {
    padding: 10px 12px;
}

    .CriterioBusqueda label {
        font-weight: 700;
    }

/* Centrar título de cabecera en listas */
.Cabecera {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .Cabecera > * {
        margin: 0;
    }

#ContentBody_lblTitulo {
    display: inline-block;
    font-weight: 700;
}

/* Cabecera tipo "ribbon" como en frmDetalleNuevoSocio */
.Cabecera--ribbon {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0 10px 0;
}

.tt-cabecera {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #083108;
    background: linear-gradient(180deg, #155815 0%, #0f430f 55%, #0b320b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.35);
    color: #FFD86A; /* dorado */
    text-shadow: 0 1px 0 #000;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.tt-cabecera--xl {
    font-size: 18px;
}

.pgr.pgr-home i.fa {
    font-size: 26px;
    line-height: 32px;
    vertical-align: middle;
}

/* ---- LISTA: quitar hueco entre menú y título ---- */
.section-container.margen {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-container > main > .section-container {
    margin-top: 0 !important;
}

/* ---- Título de la lista: eliminar bordes redondeados ---- */
.list-title-bar,
.barra-titulo-lista,
.Cabecera {
    border-radius: 0 !important;
}

    .list-title-bar .list-title,
    .barra-titulo-lista .list-title,
    .Cabecera .list-title {
        border-radius: 0 !important;
    }

/* Botón PDF */
.pgr-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    transition: 0.15s ease;
    vertical-align: middle;
}

    .pgr-pdf i {
        font-size: 22px;
        line-height: 1;
        color: #e53935;
    }

    .pgr-pdf:hover {
        background: rgba(229,57,53,.10);
    }

        .pgr-pdf:hover i {
            color: #c62828;
        }

    .pgr-pdf:active {
        transform: translateY(1px);
    }

    .pgr-pdf i {
        font-size: 28px;
        line-height: 32px;
        vertical-align: middle;
        color: #cc1f1a
    }

    .pgr-pdf:hover i {
        opacity: .9;
        transform: scale(1.06)
    }

/* Botoncitos redondos de la barra */
.ListaOpciones .pgr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,0,0,.12);
    margin: 0 4px;
    transition: transform .08s ease, box-shadow .08s ease, opacity .08s;
    text-decoration: none;
}

    .ListaOpciones .pgr:hover {
        transform: scale(1.06);
        opacity: .95;
    }

    .ListaOpciones .pgr i {
        font-size: 20px;
        line-height: 1;
    }

/* Colores por acción */
.pgr-add i {
    color: #1e88e5;
}

.pgr-refresh i {
    color: #f9a825;
}

.pgr-excel i {
    color: #1d6f42;
}

.pgr-pdf i {
    color: #cc1f1a;
}

/* ===== Botones de acción en filas del grid ===== */
.pgr-rowbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    text-decoration: none;
    transition: all .15s ease-in-out;
    cursor: pointer;
}

    .pgr-rowbtn i {
        font-size: 28px;
        line-height: 1;
        transition: color .2s ease;
    }

/* Colores base */
.pgr-rowbtn--edit i {
    color: #1e88e5;
}

.pgr-rowbtn--del i {
    color: #d32f2f;
}

.pgr-rowbtn--mail i {
    color: #2e7d32;
}

/* Hover */
.pgr-rowbtn--edit:hover i {
    color: #1565c0;
}

.pgr-rowbtn--del:hover i {
    color: #b71c1c;
}

.pgr-rowbtn--mail:hover i {
    color: #1b5e20;
}

/* Estado deshabilitado */
.pgr-rowbtn.is-disabled {
    pointer-events: none;
    cursor: default;
}

.pgr-rowbtn.is-disabled i {
    color: #9e9e9e !important;
    cursor: default;
}

/* Botón de búsqueda coherente con la barra */
.pgr-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d8e6db;
    transition: all .15s ease-in-out;
}

    .pgr-search i {
        font-size: 18px;
        color: #1e88e5;
    }

    .pgr-search:hover {
        background: #f3faf5;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }

        .pgr-search:hover i {
            color: #1565c0;
        }

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 3px;
    transition: transform 0.2s ease;
}

    .btn-icon:hover {
        transform: scale(1.2);
    }

.text-primary {
    color: #007bff !important;
}

.text-danger {
    color: #dc3545 !important;
}

.swal2-front {
    z-index: 200000 !important;
}


/* === TAB DOCUMENTOS ADJUNTOS - ESTILO MEJORADO === */
.mGridDetalle tr:hover {
    background-color: #E8F5E9 !important;
    transition: background-color 0.3s ease;
}

iframe#iframePreviewDoc {
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.btn-login {
    padding: 6px 14px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

    .btn-login:hover {
        background-color: #198754 !important;
        color: white !important;
    }

#iframePreviewDoc {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    #iframePreviewDoc[style*="display: block"] {
        opacity: 1;
    }
/* ===== Overlay de carga general ===== */
.overlay-cargando {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.overlay-content {
    text-align: center;
    color: #244a24;
    font-weight: 600;
}

.gif-cargando {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
    animation: giro 1.2s linear infinite;
}

@keyframes giro {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   CORRECCIÓN DEFINITIVA DE ESPACIADOS ENTRE CABECERA Y CONTENIDO
   ========================================================================== */

/* ==========================================================================
   CORRECCIÓN VISUAL ESPECÍFICA - FRM DETALLE NUEVO SOCIO
   ========================================================================== */

body[id*="frmDetalleNuevoSocio"],
form[id*="frmDetalleNuevoSocio"] {
    background: linear-gradient(180deg, #98f090 0%, #8be385 100%) !important;
}

    /* Elimina solo el margen superior antes de la cabecera del formulario */
    body[id*="frmDetalleNuevoSocio"] .Cabecera--ribbon,
    body[id*="frmDetalleNuevoSocio"] .Cabecera {
        margin-top: 0 !important;
    }

    /* Quita cualquier hueco entre menú y cabecera */
    body[id*="frmDetalleNuevoSocio"] .main-container,
    body[id*="frmDetalleNuevoSocio"] .section-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: transparent !important;
    }

    /* Mantiene el tamaño, color y sombra de la cabecera igual que frmSolicitudes */
    body[id*="frmDetalleNuevoSocio"] .Cabecera--ribbon {
        background: linear-gradient(180deg, #1a5c25 0%, #0e3f18 100%) !important;
        border: 1px solid #0b3313 !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08) !important;
    }
/* ==========================================================================
   UNIFICACIÓN VISUAL DE CABECERAS (LISTA / DETALLE)
   ========================================================================== */

/* Mismo alto y espaciado para todas las cabeceras tipo ribbon */
.Cabecera--ribbon,
.Cabecera {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    padding: 8px 0 !important;
    height: 44px !important; /* altura uniforme */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

    /* Título del formulario (texto dorado) */
    .Cabecera--ribbon .tt-cabecera,
    .Cabecera .tt-cabecera {
        display: inline-block !important;
        padding: 8px 18px !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #155815 0%, #0f430f 55%, #0b320b 100%) !important;
        border: 1px solid #083108 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.35) !important;
        color: #FFD86A !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        letter-spacing: .3px !important;
        text-transform: uppercase !important;
    }

/* Evitar desplazamiento vertical en el detalle */
body[id*="frmDetalleNuevoSocio"] .main-container,
body[id*="frmDetalleNuevoSocio"] .section-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 1️⃣ Subir tamaño de fuente del menú y títulos */
.main-nav a {
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

.Cabecera--ribbon .tt-cabecera,
.Cabecera .tt-cabecera {
    font-size: 18px !important;
    padding: 10px 24px !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* 2️⃣ Separar correctamente los botones inferiores */
.detalle-container .row:last-child {
    margin-bottom: 28px !important;
    padding-right: 28px !important;
}

    .detalle-container .row:last-child .col-12 {
        justify-content: flex-end !important;
        gap: 20px !important;
    }

/* ===== Ajuste visual de pestañas AjaxToolkit ===== */
.ajax__tab_xp .ajax__tab_header {
    padding: 0 !important;
    margin: 0 !important;
    border-spacing: 0 !important;
}

.ajax__tab_xp .ajax__tab_tab {
    padding: 6px 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 6px 6px 0 0 !important;
    background: #e6f5e4 !important;
    border: 1px solid #b2d8ae !important;
    color: #084c0f !important;
}

.ajax__tab_xp .ajax__tab_active {
    background: #c5e6c2 !important;
    border-bottom: 1px solid white !important;
    color: #062f08 !important;
}



/* ==========================================================================
   AJUSTE FINAL DE DISEÑO - FRM DETALLE NUEVO SOCIO
   (igual que frmDetalleUsuariosApp)
   ========================================================================== */

/* Contenedor principal del formulario */
body[id*="frmDetalleNuevoSocio"] .detalle-container {
    background: #ffffff !important;
    border: 2px solid #5ca760 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    padding: 24px 26px 30px 26px !important;
    margin: 0 auto 18px auto !important;
    width: 98% !important;
}

/* Cabecera ribbon: igual que frmDetalleUsuariosApp */
body[id*="frmDetalleNuevoSocio"] .Cabecera--ribbon {
    margin: 0 0 14px 0 !important;
    padding: 10px 0 !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #1b5e20 0%, #0d3d13 100%) !important;
    border: 1px solid #0b330f !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 6px rgba(0,0,0,.35) !important;
}

body[id*="frmDetalleNuevoSocio"] .tt-cabecera {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #ffda63 !important;
    text-shadow: 0 1px 1px #000 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    padding: 8px 22px !important;
    border-radius: 10px !important;
}

/* ===== Pestañas uniformes ===== */
body[id*="frmDetalleNuevoSocio"] .ajax__tab_xp .ajax__tab_header {
    margin-bottom: 0 !important;
}

body[id*="frmDetalleNuevoSocio"] .ajax__tab_xp .ajax__tab_tab {
    background: #e8f8e6 !important;
    border: 1px solid #b5d9b0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    border-radius: 8px 8px 0 0 !important;
    margin-right: 3px !important;
    color: #09430c !important;
    transition: all 0.15s ease-in-out;
}

    body[id*="frmDetalleNuevoSocio"] .ajax__tab_xp .ajax__tab_tab:hover {
        background: #d9f2d4 !important;
    }

body[id*="frmDetalleNuevoSocio"] .ajax__tab_xp .ajax__tab_active {
    background: #c6e8c3 !important;
    border-bottom: 1px solid #ffffff !important;
    color: #062f08 !important;
}

/* ===== Panel interior de las pestañas ===== */
body[id*="frmDetalleNuevoSocio"] .ajax__tab_body {
    background: #ffffff !important;
    border: 1px solid #b5d9b0 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 18px 24px 24px 24px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    min-height: 540px !important; /* 🔒 altura fija uniforme */
}

/* ===== Campos y filas ===== */
body[id*="frmDetalleNuevoSocio"] .form-field label {
    font-weight: 600 !important;
    color: #083108 !important;
    margin-bottom: 4px !important;
}

/* === CAMPOS DE TEXTO === */
._txt {
    flex: 1;
    border: 1px solid #cbdcc9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.96rem;
    background: #f6faf6;
    color: #244a24;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    ._txt:focus {
        outline: none;
        border-color: var(--HABECU-verde-medio);
        box-shadow: 0 0 3px var(--HABECU-verde-claro);
    }


body[id*="frmDetalleNuevoSocio"] ._txt,
body[id*="frmDetalleNuevoSocio"] ._ddl,
body[id*="frmDetalleNuevoSocio"] ._txtBlock {
    border: 1px solid #b5d9b0 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    transition: border-color .15s ease;
}

    body[id*="frmDetalleNuevoSocio"] ._txt:focus,
    body[id*="frmDetalleNuevoSocio"] ._ddl:focus {
        outline: none !important;
        border-color: #4caf50 !important;
        box-shadow: 0 0 0 2px rgba(76,175,80,.15) !important;
    }

/* ===== Botones inferiores ===== */
body[id*="frmDetalleNuevoSocio"] .btn-HABECU--ok {
    background: linear-gradient(180deg, #4caf50, #2e7d32) !important;
    border: 1px solid #1b5e20 !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    text-shadow: 0 -1px 0 #174d17 !important;
}

body[id*="frmDetalleNuevoSocio"] .btn-HABECU--cancel {
    background: linear-gradient(180deg, #b0b0b0, #888) !important;
    border: 1px solid #555 !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
}

body[id*="frmDetalleNuevoSocio"] .btn-HABECU--ok:hover {
    filter: brightness(1.08);
}

body[id*="frmDetalleNuevoSocio"] .btn-HABECU--cancel:hover {
    filter: brightness(1.1);
}

/* ===== Separadores y espaciados ===== */
body[id*="frmDetalleNuevoSocio"] .separator {
    margin: 18px 0 !important;
    border-top: 1px solid #cfe9cc !important;
}

/* ===== Altura uniforme de pestañas (independiente del contenido) ===== */
body[id*="frmDetalleNuevoSocio"] .ajax__tab_panel {
    min-height: 540px !important;
}

/* ===== Mejora visual de fieldsets ===== */
body[id*="frmDetalleNuevoSocio"] fieldset {
    border: 1px solid #b5d9b0 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    background: #fcfffc !important;
    margin-bottom: 16px !important;
}

body[id*="frmDetalleNuevoSocio"] legend {
    font-weight: 700 !important;
    color: #084c0f !important;
    padding: 0 6px !important;
    font-size: 14px !important;
}

abbr.req {
    color: red;
    font-weight: bold;
    text-decoration: none;
}

/* ===== Popup Institucional HABECU ===== */
.popup-habecu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-habecu-contenido {
    background: #fff;
    text-align: center;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    font-family: 'Segoe UI', Arial, sans-serif;
    border-top: 5px solid #006400; /* verde Guardia Civil */
    border-bottom: 3px solid gold; /* dorado HABECU */
}

.popup-habecu-logo {
    width: 90px;
    margin-bottom: 15px;
}

.popup-habecu h2 {
    font-size: 20px;
    color: #003300;
    margin-bottom: 10px;
    font-weight: 700;
}

.popup-habecu p {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 25px;
}

.popup-habecu-btn {
    background-color: #006400;
    color: #fff;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .popup-habecu-btn:hover {
        background-color: #008000;
        transform: scale(1.04);
    }

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
