﻿:root {
    --color-institucional: #009878;
    --color-institucional-dark: #007a61;
    --bg-suave: #f4f7f6;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Centrado absoluto pero flexible */
.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f5f4; /* Gris muy claro */
}

.login-card {
    width: 100%;
    max-width: 600px; /* Ancho ideal tipo W3Schools */
}

    .login-card header {
        background-color: var(--color-institucional-dark) !important;
        color: white
    }

/* Efecto de foco en el input */
.w3-input:focus {
    border-bottom: 2px solid #4CAF50 !important; /* Verde UTCAM */
    outline: none;
}

/* Animación suave para el botón */
#btnIngresar {
    transition: 0.3s;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: var(--color-institucional-dark) !important;
    color: var(--bg-suave) !important
}

    #btnIngresar:hover {
        background-color: var(--color-institucional) !important;
        color: var(--bg-suave) !important
    }
/* Centrado profesional con Flexbox */
.modal-flex {
    display: none; /* Se cambia a 'flex' vía JS o W3.CSS */
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.6) !important;
    padding-top: 0 !important; /* Quitamos el espacio superior de W3.CSS */
}

/* Para que cuando W3.CSS ponga display:block, tu Flex lo sobreescriba */
.w3-modal[style*="display: block"] {
    display: flex !important;
}

.modal-content-pro {
    width: 90%;
    max-width: 500px;
    min-width: 450px;
    border-radius: 12px; /* Bordes redondeados modernos */
    overflow: hidden; /* Para que el header respete los bordes redondeados */
    margin: 0 !important;
}

.titulo-fluido {
    /* clamp(tamaño_mínimo, tamaño_variable, tamaño_máximo) */
    font-size: clamp(1.1rem, 4vw, 1.75rem);
    line-height: 1.3;
    font-weight: bold;
    margin: 20px 0;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
