﻿html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: whitesmoke;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    padding: 1rem 1.25rem;
    gap: 1rem;
    box-sizing: border-box;
}

.login-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    width: 100%;
    gap: 1.25rem;
    box-sizing: border-box;
}

.card-panel {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: rgba(100, 100, 100, 0.16) 0px 6px 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.login-izq {
    flex: 0 0 calc(60% - 0.625rem);
    max-width: calc(60% - 0.625rem);
    padding: 0.75rem;
    display: flex;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

#galeria {
    width: 100%;
    height: 100%;
}

.brand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.75rem 1.25rem 1.75rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
    color: #ffffff;
    pointer-events: none;
}

.brand-tit {
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 0.2rem 0;
    letter-spacing: -0.4px;
}

.brand-subtit {
    font-size: 0.92rem;
    color: #e2e8f0;
    margin: 0;
}

.login-der {
    flex: 0 0 calc(40% - 0.625rem);
    max-width: calc(40% - 0.625rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.75rem;
}

.login-form-container {
    width: 100%;
    max-width: 100%;
}

.brand-logo-box {
    margin-bottom: 2.35rem;
}

.brand-logo {
    width: 25%;
    max-width: 210px;
    height: auto;
}

.login-card-tit {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.2rem 0;
}

.login-card-subtit {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1.35rem 0;
}

.form-group {
    margin-bottom: 2rem;
}

    .form-group.margin-top-md {
        margin-top: 1.35rem;
        display: flex;
        justify-content: flex-end;
    }

#flogin input.dx-texteditor-input {
    font-size: 15px;
}

#btnLogin {
    border-radius: 24px !important;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.login-acciones {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.86rem;
}

.link-restablecer,
.link-registro {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .link-restablecer:hover,
    .link-registro:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

.separador-links {
    color: #cbd5e1;
}


.sistema-info-section {
    position: relative;
    flex: 0 0 140px;
    height: 140px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.botones-modulos-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 42px);
    gap: 0.65rem 0.85rem;
    width: 100%;
    align-content: center;
}

.btn-modulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 42px;
    padding: 0 0.75rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .btn-modulo i {
        font-size: 15px;
        color: #58a216;
    }

    .btn-modulo:hover {
        transform: translateY(-2px);
        border-color: #58a216;
        box-shadow: 0 4px 10px rgba(88, 162, 22, 0.16);
        background-color: #f7faf3;
    }

.detalle-modulo-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    padding: 0.75rem 1.35rem;
    border-left: 4px solid #58a216;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

    .detalle-modulo-overlay.abierto {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f1f5f9;
}

.detalle-titulo-grupo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detalle-badge {
    background-color: #f0fdf4;
    color: #58a216;
    border: 1px solid #bbf7d0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detalle-header h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-cerrar-detalle {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

    .btn-cerrar-detalle:hover {
        background-color: #fee2e2;
        border-color: #fca5a5;
        color: #dc2626;
    }

.detalle-body {
    flex: 1;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    overflow: hidden;
    padding-top: 0.3rem;
}

.detalle-texto {
    flex: 1;
    min-width: 0;
}

.detalle-desc {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.35;
    margin: 0 0 0.3rem 0;
}

.detalle-lista {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.35;
}

    .detalle-lista li::marker {
        color: #58a216;
    }

.detalle-visual {
    flex: 0 0 190px;
}

.visual-box {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

    .visual-box i {
        font-size: 22px;
        color: #58a216;
    }

    .visual-box span {
        font-size: 0.72rem;
        font-weight: 600;
        color: #334155;
    }

@media (max-width: 992px) {
    html, body {
        overflow-y: auto;
    }

    .page-container {
        height: auto;
        min-height: 100vh;
    }

    .login-wrapper {
        flex-direction: column;
    }

    .login-izq {
        flex: none;
        max-width: 100%;
        height: 200px;
    }

    .login-der {
        flex: none;
        max-width: 100%;
        padding: 1.5rem;
    }

    .sistema-info-section {
        flex: none;
        height: auto;
        min-height: 260px;
    }

    .botones-modulos-bar {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 54px);
    }

    .detalle-visual {
        display: none;
    }
}

.conexion-page .conexion-wrapper {
    height: 100%;
    flex: 1 1 auto;
}

.conexion-der {
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 1.25rem 1.5rem !important;
    gap: 1rem;
}

.conexion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.conexion-logo {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}

.conexion-tit {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.conexion-subtit {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0.15rem 0 0 0;
}

.conexion-grid-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
