html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    /*box-shadow: none;*/
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    position: relative;
}

html {
  position: relative;
  min-height: 100%;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    /*background: url('/images/fondo.jpg') center / 1000% 100% no-repeat fixed;
    background-size: contain;*/


    background-image: url('/images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    margin: 0;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

/*Botones menú ventana modal de saludo*/
.menu-card-pro {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8e8ef;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

    .menu-card-pro::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--accent);
        border-radius: 0 4px 4px 0;
    }

    .menu-card-pro:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border-color: var(--accent);
        background: var(--accent-light);
    }

.menu-card-pro-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .menu-card-pro-icon img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

.menu-card-pro-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.menu-card-pro-arrow {
    font-size: 1.1rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

.menu-card-pro:hover .menu-card-pro-arrow {
    opacity: 1;
    transform: translateX(0);
}   

/* --- Login Box --- */
.login-box {
    text-align: center;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    border: 1px solid rgba(49, 114, 23, 0.2);
    width: 400px;

    position: absolute;
    top: 10%;                   /* Lo pega al borde superior */
    left: 50%;                /* Lo mueve a la mitad de la pantalla */
    transform: translateX(-50%); /* Lo centra perfectamente quitando su propio ancho */
}

.login-title {
    color: #317217;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.login-subtitle {
    color: rgba(49, 114, 23, 0.7);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* --- Input con botón de flecha (estilo Windows) --- */
*.input-group-windows {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-windows input {
    width: 100%;
    padding: 0.65rem 3rem 0.65rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(49, 114, 23, 0.4);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

    .input-group-windows input::placeholder {
        color: rgba(49, 114, 23, 0.6);
    }

        .input-group-windows input:focus {
            border-color: #4cc2ff;
            background: rgba(255, 255, 255, 0.22);
        }

.btn-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4cc2ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

    .btn-arrow:hover {
        background: #2ba8e8;
    }

    .btn-arrow:active {
        transform: translateY(-50%) scale(0.92);
    }

#btnConfiguracion:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #d6d6d6;
    color: #888;
    border: 1px solid #c0c0c0;
}

#btnConfiguracion.deshabilitado {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar{
    position:fixed;
    top:0;
    left:-250px;
    width:250px;
    height:100%;
    background:#0d6efd;
    padding-top:60px;
    transition:.3s;
    z-index:1000;
}

.sidebar.mostrar{
    left:0;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:15px 20px;
}

.sidebar a:hover{
    background:#084298;
}

#contenido{
    padding:20px;
}

.deshabilitado{
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}